在LaTeX中,喜欢文字较重的页面上的数字

Bja*_*sen 3 latex

LaTeX似乎倾向于将数字放在一起放在页面上,并将周围的文本放在单独的页面上.我可以以某种方式改变这种平衡,因为我更喜欢数字分解文本,以避免太黑的文本重页.

例:

\section{Some section}

[Half a page of text]

\begin{figure}
    [...]
    \caption{Figure text 1}
\end{figure}

[Half a page of text]

\begin{figure}
    [...]
    \caption{Figure text 2}
\end{figure}

[More text]
Run Code Online (Sandbox Code Playgroud)

所以LaTeX通常做的是将两页半页的文本堆叠在一起,以及下一页的数字.我相信这确实给了一个糟糕的平衡,让读者烦恼.所以我能以某种方式改变它吗?

我知道加上后缀的\begin{figure}使用[ht!],但往往并不重要.我想在LaTeX中配置平衡算法,以自然地选择具有组合图形和文本的页面.

Rob*_*man 8

尝试在序言中加入以下内容.

\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.85}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.7}
Run Code Online (Sandbox Code Playgroud)

您可以根据自己的喜好稍微使用这些数字.这里给出了对不同参数的一些解释.