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

Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions? Like

$longformula1 \/ longformula2 \/ longformula3$

was able to break only in points \/ (but not be forced to break on each) and all formulas 1,2,3 had fixed unstretched size.

An example - how my document does but shouldn't look like







\noindent text $t:\mathcal{T}_{\mathcal{F}}$ text $0\leq a\leq b$
teeeeeeeeeeext $\left\{ s_{i}\right\} :\mathcal{T_{F}^{\mathnormal{\ast|\omega}}}$

share|improve this question
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Mar 24 '13 at 20:58
you can use (if possible) ${longformula1}$ ${longformula2}$ ${longformula3}$ It will break only between the sub formulas. – Herbert Mar 24 '13 at 21:18
There's no way to make the output of your example document look nice, except hyphenating the long teeeeeeext. – Hendrik Vogt Mar 25 '13 at 7:59
@HendrikVogt I'm aware of it. I just tried to show, what is the problem. - Short lines + long words + inline formulas. – Number47 Mar 25 '13 at 8:32
up vote 4 down vote accepted

The requirement seems a little odd, but

\medmuskip=4mu %plus 2mu minus 4mu
\thickmuskip=5mu % plus 5mu

will remove all default stretchability

\binoppenalty=10000 %700
\relpenalty=10000 %500

will remove all default line break possibilities

then you can use


for some number between 0 and 4 to encourage line breaks at points where you want to allow them.

share|improve this answer
Well, I have pretty short lines, which makes half of formulas being stretched and broken, while most of them shouldn't be. – Number47 Mar 24 '13 at 21:43
@Number47 It is probably better to set the penalties but leave the stretch and shrink so the white space in math can help the white space in text adjust to help line breaking. – David Carlisle Mar 24 '13 at 21:49

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.