It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-5]
We could go on like this for some time. We eventually get $x = 15y + 4z + 3w + 2u - 5v$, which is unpleasant. In contrast, something like $x = 2y + 3z - 4w - 15u - 4v$ is no problem.
\end{document}
Is there a global way (or, failing that, a local way) of forbidding breaks over multiple pages while allowing breaks over multiple lines?
\nopagebreak
would help.)forbidding breaks.
\interlinepenalty
. A more involved solution would probably set a high\brokenpenalty
(you don't want page breaks at hyphens anyway, do you?), forbid line breaks in inline formulas in general and then re-insert break points using discretionary breaks so you get\brokenpenalty
between lines where a formula broke.