我的意思是,我想要这样的东西:
.... bla blabla, the equation is:
\begin{equation}
...
\end{equation}
我想最终将文本和方程式渲染在一起,即没有分页符,没有数字/其他任何中断。他们必须是不可分割的。
我怎样才能做到这一点?
我的意思是,我想要这样的东西:
.... bla blabla, the equation is:
\begin{equation}
...
\end{equation}
我想最终将文本和方程式渲染在一起,即没有分页符,没有数字/其他任何中断。他们必须是不可分割的。
我怎样才能做到这一点?
确保它们属于同一段落:
.... bla blabla, the equation is:
%
\begin{equation}
...
\end{equation}
百分号在这里很重要,因为它可以防止段落结束。由于\predisplaypenalty
默认为 10000,因此文本的最后一行将始终与方程式在同一页上。
您可能可以将tex.stackexchange.com中提出的解决方案用于列表。
基本上,不要\par
在文本和方程式之间使用 a,而是使用\par
防止分页符的自定义。