在我的 LaTeX 报告中,我想用一个小的垂直空白来分隔段落。我通过输入
End of the old paragraph. \newline
New paragraph goes here.
在大多数情况下,这种方法都行得通。然而,在某一章中,这种方法产生了非常大的垂直空白。
本章内容如下:
\begin{figure}[ht]
% Figure with subfigures
\end{figure}
First paragraph. \newline
Second paragraph. \newline
Third paragraph. \newline
Fourth paragraph.
但是,这会导致出现大得可笑的空白。我该如何解决这个问题?我觉得这不是划分段落的最佳方法。什么是“最佳”方法?我不想在段落开头留空格。
答案1
您不必手动输入\newline
命令。LaTeX 和 TeX 相关系统会自动将空行视为段落的结尾。您有额外的空间,因为您强制换行,然后也分段落。
\documentclass{article}
\begin{document}
First paragraph.
Second paragraph.
Third paragraph.
Fourth paragraph.
\end{document}
分发:
某些文本行的效果更加明显
\documentclass{article}
\begin{document}
First paragraph. First paragraph. First paragraph. First paragraph. First paragraph. First paragraph. First paragraph. First paragraph.
Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph. Second paragraph.
Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph. Third paragraph.
Fourth paragraph.
\end{document}
您还可以手动指定要插入的额外跳过(适用于偶尔的空格,不是系统的),使用smallskip
medskip
或bigskip
即
\documentclass{article}
\begin{document}
First paragraph. \medskip
Second paragraph. \smallskip
Third paragraph. \bigskip
Fourth paragraph.
\end{document}
这使:
此外,正如 Steven B. Segletes 所建议的那样,你可以在序言中将 parskip 定义为一个特定的数额,即\parskip=1ex\relax