[texhax] Disable formula break across lines?

Lars Madsen daleif at imf.au.dk
Thu Feb 17 09:32:14 CET 2005


Joseph Turian :

> Hi,
>
> [NB I posted this in comp.text.tex, but I realized this may be a more
> appropriate forum for the question.]
>
> I have a formula like this: $a - b$ in running text.
>
> I don't want this formula to be broken across lines, i.e. $a -
> b$, when it is rendered.
>
> If I use $a~-~b$, this increases the amount of whitespace to an
> aesthetically unappealing extent.
>
> So it seems like I have two options, but I am not sure which is better.
>  1. $a-b$.
>     But does this disable breaking the formula across lines?
>
>  2. \mbox{$a - b$}.
>     But does this increase the amount of whitespace around the formula?
>
> Thanks!
>
>   Joseph
>

use a \nobreak to disencourage a break

$a-\nobreak b$ might do the trick, the \mbox should work as well, there 
are no more whitesapce around the formula.

-- 

/daleif

``You cannot help men permanently by doing for them 
what they could and should do for themselves. ''
  -- Abraham Lincoln



More information about the texhax mailing list