This code, with line 52 not commented out, but line 53 commented out:
\documentclass{report}
% 07Examples.txt - New Early Babbish Gramamr
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{expex}
\usepackage{keyval}
\usepackage[letterpaper]{geometry}
\usepackage{amsmath}
\geometry{height=10in,top=0.625in,width=6.5in,left=0.75in,showframe}
\setcounter{secnumdepth}{3}
\setcounter{secnumdepth}{4}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{4}
\titleformat{\paragraph} [hang] {\normalfont\normalsize\bfseries}
{\theparagraph} {1em} {}
\definelingstyle{EarlyBabbish}{glspace=1.5em,everygla=\large,
everyglb=\large,aboveglbskip=-.2ex,everyglft=\large\bfseries}
\definelingstyle{subsub}{\large}
\definelingstyle{sub}{\normalsize}
\definelingstyle{sec}{\large}
\begin{document}
\lingset{exskip=0ex,sampleexno=50.10.10.10}
\setcounter{chapter}{6}
\chapter{Example Repository}
\renewcommand{\thechapter}{\arabic{chapter}}
\setcounter{section}{49}
\renewcommand{\thesection}{\arabic{section}}
\section[lingstyle=sec]{Examples Referenced Elsewhere}
\setcounter{subsection}{-1}
\subsection[lingstyle=sub]{Examples from Chapter 1, Phonology and Nouns}
\setcounter{subsubsection}{3}
\subsubsection[lingstyle=subsub]{Gloss of something}
\ex~[lingstyle=EarlyBabbish,exno=1]
\begingl
\gla luizcid dun- @ ua- @ glud- @ \O @ gan giumima //
\glb ART PFX PFX V SFX SFX N //
\glb TOP.ERG ATEL- NPST- be.old- ACT- VST.PTCP woman //
\glb[\it] {there was a} {being old} {} {} {} {} {woman who} //
%line 53 \glb[\it] $\underbrace{{there was a} {being old} {} {} {} {}%
% {woman who}}_\text{Ergative subject of verb muiddrin}$ //
\endgl
\xe
\end{document}
Typesets fine, with \glb
texts, including "there was a", "being old" and "woman who", aligned under the appropriate words on the \gla
line.
But when line 52 is commented out and line 53 uncommented, it places an underbrace below the "there was a", etc, but squishes all the text on that line together with no discernible space, and the underbrace encompasses this mashed together thing with no regard for the horizontal spacing implied by the preceding \glb
and \gla
macros.
I realize plopping the underbrace stuff in the middle of the text being typeset by \glb
probably gaks ExPex, but how else to accomplish this notation?
BTW I did read all of the questions relating to horizontal braces, and did not see one that mentioned this particular problem.
The following images illustrate the results of switching lines 52 and 53 off and on, as well how a page with a similar gloss is more or less intended to look as done with Libre Office writer. (I removed the special font crap, and a whole lot of other stuff, from the TeX version, to make the example simpler.)
Interlinear gloss without horizontal curly brace:
Interlinear gloss with horizontal curly brace (and gakked):
Line 50.1.4.1(1) is how the typeset version of "interlinear gloss with curly brace" should look (as done by Libre Office writer)
I abandoned Word and writer in favor of LaTeX, but am a newbie with LaTeX and have been floundering somewhat.