我怎样才能完全抑制从一列(或一页)开始并在第二列(或一页)结束的连字符?

我怎样才能完全抑制从一列(或一页)开始并在第二列(或一页)结束的连字符?

在此处输入图片描述

在上面的例子中,单词“deterministic”的连字符从一列开始,到下一列结束。我怎样才能完全抑制这种行为?

笔记:我知道这\mbox{<text>}会强制文本保持在一行中,但文档的文本会随着编辑而改变,并且不同的单词可能会出现相同的问题。我想要设置一个参数或使用带有特定选项的包来检测并阻止这种情况发生。

我的MWE

\documentclass{IEEEtran}


\usepackage{blindtext}
\usepackage[autostyle, english = american]{csquotes}
\usepackage[inline]{enumitem}


\begin{document}


\blindtext
\blindtext
\blindtext

\vspace{11\baselineskip}


Aside from speed improvement over exhaustive search method, our fast screening method has the following \mbox{\emph{advantages}}:
\begin{enumerate*}[label=\arabic*)]
    \item it heavily relies vector-based analysis making it amenable to be understood by a typical power system operator or engineer,
    \item it is based on deterministic algorithm that does only relatively simple vector-based calculations. Thus, it does not require thorough expertise to write a code to implement it,
    \item valid in realistic power grid under different voltage levels.
\end{enumerate*}
While the \emph{disadvantage} is that interactions among magnitudes and angles are not taken into account, but rather we separate them since we regarded them as \enquote*{quasi-mutually exclusive.} Such assumption, however, does not seem to affect the accuracy of results as we demonstrate in this \mbox{Section with extensive numerical simulations}.

\end{document}

答案1

\brokenpenalty=10000

可能更好:使用widow-and-orphan在接下来的几天内会影响 ctan 的软件包(并且会有一篇文章解释它)。如果出现该问题,该软件包允许您生成警告,然后您可以决定采取什么适当的措施。

如果你现在想要包裹,它位于

https://github.com/FrankMittelbach/fmitex/tree/widows-and-orphans-1.0a/widows-and-orphans

强制 100% 遵守(通过上述设置)可能并不总能给您带来最佳结果。

更新

该软件包现在可在 CTAN 和 TeX Live 等发行版中使用。

相关内容