[OS X TeX] Avoiding page breaks

Toke Lindegaard Knudsen toke_knudsen at brown.edu
Wed Apr 16 12:57:04 EDT 2008

On Apr 16, 2008, at 12:49 PM, Toke Lindegaard Knudsen wrote:

> On Apr 16, 2008, at 12:44 PM, Chris Goedde wrote:
>> One thing I probably should have mentioned is that any white space 
>> can be used as an opportunity to break, so you might need to end 
>> lines with a % in order to prevent TeX from seeing the whitespace. I 
>> always use \Nopagebreak in macros or as part of an environment's 
>> definition, and I haven't seen it fail.
> I did not put a % at the end of the line, so that might be the reason 
> why it failed.  I can try again with this added later today.

I tried this:

    \begin{center}$\sim$ {\sc #2} $\sim$\end{center}\Nopagebreak%
      ({#1}) \begin{large}\begin{bf}
    \end{bf}\end{large}\\ \mbox{}

But it still breaks between the description and the main text.


More information about the MacOSX-TeX mailing list