TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the acmsmall template and my inline formulas are being broken at equal signs and arrows; how can I prevent them from being typeset like that globally (i.e. without having to put tildes everywhere)?


share|improve this question
Possible duplicate: tex.stackexchange.com/questions/10850/… – diabonas Mar 25 '11 at 14:49
@diabonas: Good that you found that question. But here it's about avoiding these line breaks globally. The answers to that other question don't address this. – Hendrik Vogt Mar 25 '11 at 14:52
I added globally to the title, so that is clearer – NoWhereMan Mar 25 '11 at 15:14
up vote 33 down vote accepted

Increase the penalty for line breaks at relation symbols and binary operators:


If you simply include these commands in your preamble (between \documentclass{...} and \begin{document}), it will prevent line breaks in most cases, but in extreme situations, they can still be broken. If you set


equations will never be broken - this may, however, destroy your layout!

share|improve this answer
wonderful, that seems to have done the trick, thank you! – NoWhereMan Mar 25 '11 at 15:07

\mbox{$equation$} is not an answer, unfortunately: the spacing in the equation doesn't grow or shrink together with the other spaces in the line. The "correct" answer is

$LHS=\nobreak RHS$

TeX will choose another break point, if there is one, or warn about an Overfull \hbox

Diabonas's answer shows how to avoid such breaks globally, and correctly warns about the dangers of doing so.

share|improve this answer
thanks, diabonas' answer worked great. – NoWhereMan Mar 25 '11 at 15:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.