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}}}$

  • 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
  • 1
    you can use (if possible) ${longformula1}$ ${longformula2}$ ${longformula3}$ It will break only between the sub formulas. – user2478 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

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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