代码之家  ›  专栏  ›  技术社区  ›  Bjarke Freund-Hansen najhi ullah

用乳胶笔比较喜欢文本重的页面上的数字

  •  3
  • Bjarke Freund-Hansen najhi ullah  · 技术社区  · 16 年前

    乳胶似乎更喜欢把数字放在一页上,把周围的文字放在另一页上。我能不能稍微改变一下平衡点,因为我喜欢用数字来分解文本,以避免过多的黑文本。

    例子:

    \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]
    

    所以LaTex通常做的是将两个半页的文本堆叠在一个页面上,并将数字堆叠在下一页上。我相信这真的给了我们一个不好的平衡,让读者感到厌烦。我能改变一下吗?

    我知道如何在 \begin{figure} 具有 [ht!] 但这通常并不重要。我想在LaTex中配置平衡算法,以自然地更喜欢带有组合数字和文本的页面。

    3 回复  |  直到 11 年前
        1
  •  8
  •   Rob Hyndman    16 年前

    试着在序言中加入以下内容。

    \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}
    

    你可以根据自己的喜好来玩这些数字。给出了不同参数的一些解释。 here .

        2
  •  1
  •   Alessandro Cuttin Your_Eye    16 年前

    尝试调整浮动位置:

    • \begin{figure}[tb] 对于与文本匹配良好的图(例如,图的文本高度的一半和文本的另一半)
    • \begin{figure}[p] 对于大到需要专用页的浮点。

    此外,您还可以设置一些“屏障”,以便使用包进行浮动定位。 placeins 或 afterpage .

        3
  •  0
  •   Alexey Malistov    16 年前

    尝试

    \makeatletter
    \@colnum 1 % Or 2. It is the max of the float insertions at the top of the page.
    \makeatother