I am using gb4e for several hundred interlinear glosses in my dissertation. Several of the examples span more than one page, that is, the vernacular and gloss will be on one page, while the free translation appears at the top of the next page.
How can I keep all three elements together on the same page? I often have subexamples (a, b, c) that don't need to stay together. That is, 1a can be on one page, and 1b on the next, as long as vernacular-gloss-free translation for each subpart stay together.
In the MWE below, the free translation is at the top of page 2, while the vernacular and gloss are at the bottom of page 1.
\documentclass[11pt,letterpaper]{article}
\usepackage{lipsum}
\usepackage{gb4e}
\noautomath
\begin{document}
\lipsum[1-4]
\begin{exe}
\ex \gll wuz x̃ũch it-ak xohish-em\\
1\textsc{sg.prn} bread eat-\textsc{inf} want.\textsc{prs}-1\textsc{sg}\\
\glt `I want to eat bread.'
\end{exe}
\end{document}
A solution was proposed to a similar question (Prevent page break after first line of example), but it requires me to manually look for what could be dozens of orphans throughout my dissertation (and doesn't work when applied to my example, since it still strands the FT). I would prefer a more elegant solution that takes care of the problem automatically.
cglossdoesn't fix the problem (I still have orphans) in this case. It also introduces another problem: my dissertation is double-spaced, andcglosskeeps a double space between the vernacular and the gloss, but it remain single-spaced between the gloss and the free translation. – ToddAO Oct 29 '14 at 02:18cglossexplicitly states:Modified \glt to keep translation on the same page as the text. I don't have a solution, but it would perhaps be a good idea to e-mail the author ofcglosswith a MWE illustrating this problem. – Sverre Oct 29 '14 at 12:43gb4etoexpexa few years ago because it always keeps gloss lines together, gives you the option of "preamble" lines, and allows for much more fine-grained control over formatting. I realize that deciding to switch packages would likely need to wait until after you finish your dissertation (converting examples between the two isn't horrible but it's not trivial either), but it still might be something to look into. – Jason Zentz Nov 09 '14 at 01:28