为什么乳胶会垂直拉伸整个页面的小部分?

为什么乳胶会垂直拉伸整个页面的小部分?

我正在写我的学士论文,其中有几个小部分解释转换,如下所示

\subsubsection*{Assignment}

This document only explains non-compound assignments. The other kind, i.e \texttt{a += b},
is supported by the language too, but is not yet implemented. 

\begin{itemize}
\item If the first is an \texttt{auto} variable, no conversion takes place when assigning
      the right hand side to the variable designated by the left hand side. 
\item Otherwise, an assignment conversion takes place converting the given value to the type
      of the designated variable. 
\item Assignment requires an lvalue as the left hand side, and yields an lvalue result. 
\end{itemize}

\subsubsection*{Multiplication}
% ...

但是 latex 渲染起来非常丑陋,项目之间留有很大空隙。我认为它这样做是为了适合整个页面。我该如何告诉它不要这样做?我这样做对吗?

答案1

LaTeX 默认使用\flushbottom双面文档book。奇数页和偶数页强制对齐。在单面文档(默认article情况report下)中,LaTeX 使用\raggedbottom,多余的空格将消失。参见。classes文档。

如果遇到太多不良分页符,可以使用\raggedbottom。但是,最好避免文档中出现大框。使用浮动,而不是直接放置大表格和图形。对于列表和章节标题,这通常不是太严重,请确保为每个章节放置足够的文本。

答案2

然后,同一页上的内容无法以良好的方式排版,例如大图像或方程式,无法进行分页。但是,写入序言

\raggedbottom

允许页面底部参差不齐

答案3

用 结束您的部分/段落\vfill
这将“吃掉”文本后的所有垂直空白,使文本正常间隔。但是,您将得到一个(可能很大的)没有任何内容的区域,因此请谨慎使用。在某些情况下,它可以很好地工作。

相关内容