[OS X TeX] Avoiding page breaks
Toke Lindegaard Knudsen
toke_knudsen at brown.edu
Wed Apr 16 20:31:25 CEST 2008
On Apr 16, 2008, at 2:14 PM, Chris Goedde wrote:
> On Apr 16, 2008, at 11:57 AM, Toke Lindegaard Knudsen wrote:
>
>> -----
>> \newenvironment{versetxt}[2]
>> {
>> \begin{center}$\sim$ {\sc #2} $\sim$\end{center}\Nopagebreak%
>> ({#1}) \begin{large}\begin{bf}
>> }
>> {
>> \end{bf}\end{large}\\ \mbox{}
>> }
>> -----
>
> You might not care because you found another solution, but my testing
> shows that the code below works. The problem is that the center
> environment is allowing for a break before TeX ever encounters
> \Nopagebreak.
[snip]
That seems to work. Thanks, Chris! Actually, I prefer this solution,
as the minipage-environment solution tended to leave some pages with a
lot of empty space in the bottom.
Thanks! I appreciate it.
Sincerely,
Toke
More information about the macostex-archives
mailing list