[texhax] Info amsmath package
Donald Arseneau
asnd at triumf.ca
Tue May 31 09:39:31 CEST 2011
Martin Heller <mr_heller at yahoo.dk> writes:
> On 2011-05-30 20:31, Nicola wrote:
>
> > In my experience, in inline equations, to avoid that an equation breaks
> > at the end of the line, you can use curly brackets (i.e. ${ formula }$)
> > or the command \mbox (i.e. \mbox{$ formula $}).
> >
> > 1. Which of the two is the most correct?
>
> If you use ${ formula }$ the space in the formula will not stretch and
> shrink. For this reason \mbox{$ formula $} is preferable.
Actually they both prevent flexibility, and so are equivalent.
Use nolbreaks.sty and \nolbreaks{$formula$} for a better
solution.
> > 2. Is there a way to set this command as default, for example in the
> > preamble, so that it is valid for all the inline equations in a given
> > document?
That is a lot easier, but you are likely to need some of those
breaks to get justified paragraphs
\relpenalty=10000
\binoppenalty=10000
Donald Arseneau asnd at triumf.ca
More information about the texhax
mailing list