我被要求不要拆分句子,以便它们在两页上。有没有一种方法可以全局自动防止句子被拆分成两页?它应该看起来像是一个新段落。当然,我可以手动在每个拆分的句子前输入一个空行,但这很不方便,因为每次在该句子前插入新文本时都必须进行调整。
编辑:示例代码:
\documentclass{article}
\usepackage{lipsum}% MWE only
\begin{document}
%\raggedbottom
%\interlinepenalty=10000
%This is the current text:
\lipsum[1-5]
Here is a new paragraph with a sentence that is split. This is the sentence which should be completely on the next page. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split.
\lipsum[6-7]
\clearpage
%The layout which is asked for could be produced with the following commands. However, I would like to have it automated because there are a lot of these split sentences and in addition, I would have to always recheck all these sentences if I enter new text above.
\lipsum[1-5]
Here is a new paragraph with a sentence that is split.
\noindent This is the sentence which should be completely on the next page. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split.
\lipsum[6-7]
\clearpage
% or:
\lipsum[1-5]
Here is a new paragraph with a sentence that is split. \linebreak This is the sentence which should be completely on the next page. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split.
\lipsum[6-7]
\clearpage
%or
\lipsum[1-5]
Here is a new paragraph with a sentence that is split. \clearpage \noindent This is the sentence which should be completely on the next page. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split. Here is a new paragraph with a sentence that is split.
\lipsum[6-7]
\end{document}
答案1
这将防止段落被分割到各个页面。
\documentclass{article}
\usepackage{lipsum}% MWE only
\begin{document}
\raggedbottom
\interlinepenalty=10000
\lipsum[1-20]
\end{document}