[texhax] Info amsmath package

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue May 31 00:20:23 CEST 2011


On Mon, May 30, 2011 at 08:31:01PM +0200, Nicola wrote:

> I'm Nick from Italy. I'm a Materials Engineering student and a latex
> user. I've two questions about the amsmath package.
> 
> 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?

Both have the disadvantage that spaces are not stretched or shrinked
like the other spaces in the same line.

 $\binoppenalty=10000 \reloppenalty=10000 formula $

(with or without amsmath)

> 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?

% preamble
\binoppenalty=10000
\relpenalty=10000

(with or without amsmath)

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list