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

How I can configure inline formula breaks globally without changing original formulas? What package can help me? I saw this post, but the trick with comma does not work.


The formulas look like

\( (B_{r+1,1}, C_{r+1,1}), \dots , (B_{r+1,m_{r+s}}, C_{r+1,m_{r+s}}), \dots , (B_{r+s,1}, C_{r+s,1}), \dots , (B_{r+s,m_{r+s}}, C_{r+s,m_{r+s}}) \)
share|improve this question
You might want to give us some clues as to what your inline formulae look like. There is very little customisation possible. TeX never breaks inline formulae inside { } groups so if you have lots of grouped terms, aome change to the original markup may be necessary, otherwise it should already break at infix operators without needing to be configured. – David Carlisle Oct 27 '12 at 21:06
Welcome to TeX.SE. – Peter Grill Oct 27 '12 at 21:57
Related Question: Writing an equation in a new line. – Peter Grill Oct 27 '12 at 21:58
up vote 4 down vote accepted

enter image description here

You would need to play with the values a bit to get it looking nicer, but basically you need to add a \penalty (\linebreak[0] in LaTeX) to add additional break points and then add stretchable glue elsewhere so that the formula can stretch to get a breakpoint at the end of the line.

\def\dots{\hspace{0pt plus .7em}\olddots\hspace{0pt plus 7em}}
\penalty0 %
\hspace{0pt plus .2em}%

\noindent X\dotfill X

\noindent aaa \( (B_{r+1,1}, C_{r+1,1}), \dots , (B_{r+1,m_{r+s}}, C_{r+1,m_{r+s}}), \dots , (B_{r+s,1}, C_{r+s,1}), \dots , (B_{r+s,m_{r+s}}, C_{r+s,m_{r+s}}) \) bbb

share|improve this answer

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.