Two suggestions for page breaking, beginning with a "magic" one that should
work in many cases:
a) Download
http://www-uilots.let.uu.nl/~alexis.dimitriadis/personal/latex/cgloss.sty
and include it AFTER gb4e. This replaces the \\ separating the translation
line with a \\*, which at least discourages page breaks.
b) But controlling page breaks, in general, does not work very well in latex
. See
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk for the full
story. So use needspace.sty and manually request 3 lines at the beginning of
any problematic example (or 5 lines if your example does not fit on one
line, etc). Scroll down the source of needspace.sty to find the description
of how to use it.
Question 2: Automatic small font.
If you want EVERYTHING in an exe environment to be in \small size, put the
following in your preamble:
\makeatletter
\g@addto@macro{\ex}{\small}
(If you only want the two gloss lines to be small, look at the gb4e
documentation)
Alexis
----- Original Message -----
From: "James Crippen" <jcrippen-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
To: "Ling-TeX" <ling-tex-6miFZF/5cTBuMpJDpNschA@xxxxxxxxxxxxxxxx>
Sent: Saturday, December 16, 2006 2:53 AM
Subject: Ling-TeX: Preventing page breaks in examples
I use gb4e for examples with glosses in my papers. I've had some
trouble with the translation line being separated from the rest of the
example by a page break. Is there any magic incantation that I can use
to explicitly prevent a page break in the middle of an example? Or do
I have to rely on rewording the surrounding text to do so?
Also, I always set my examples with \small so they take up less space.
Is there a convenient way to wrap this around or embed it into the exe
environment on a per-document basis?
Thanks,
James