I am writing a math expression, $P = \omega \tau$, in the middle of my text, and LaTeX splits it such that "P =" is on one line and "\omega \tau" is on the next line. I would like the whole expression to be on the same line. Is there any way to do this in LaTeX? I tried hyphenation, but that only works for words...
Thanks in advance!
Asked
Active
Viewed 747 times
1
MattAllegro
- 1,546
kga
- 71
1 Answers
2
You can use {}: ${P = \omega \tau}$, but then overfull hboxes can appear.
Przemysław Scherwentke
- 37,268
\nolinebreakafter=in the cases you don't want a break. Enclosing the formula in braces is not the best way, because this freezes spacing, disallowing it to participate in stretching/shrinking spaces for justification. – egreg Dec 13 '15 at 11:09