代码之家  ›  专栏  ›  技术社区  ›  Amandasaurus

乳胶-大量的部分(没有内容)运行的边缘页?

  •  0
  • Amandasaurus  · 技术社区  · 14 年前

    \documentclass{article}
    \begin{document}
    
    \section{1}
    \section{2}
    \section{3}
    \section{4}
    \section{5}
    \section{6}
    \section{7}
    \section{8}
    \section{9}
    \section{10}
    \section{11}
    \section{12}
    \section{13}
    \section{14}
    \section{15}
    \section{16}
    \section{17}
    \section{18}
    \section{19}
    \section{20}
    \section{21}
    \section{22}
    \section{23}
    \section{24}
    \section{25}
    \section{26}
    \section{27}
    \section{28}
    \section{29}
    \section{30}
    
    \end{document}
    

    有很多章节标题,但没有正文

    如您所见,它将所有的部分标题保留在一页上,不会将其分成两页。26岁以上的人都不见了。

    有没有办法让LaTeX将这些部分拆分到多个页面上?我不能轻易地改变身体的实际内容,因为它是自动生成的。不过,我可以修改序言。有没有办法通过修改序言来做到这一点?

    2 回复  |  直到 14 年前
        1
  •  1
  •   Stefan    14 年前

    在节标题后添加\mbox{}将允许分页符。您可以通过以下方式在前言中全面介绍:

    \makeatletter
    \g@addto@macro\@afterheading{\mbox{}}
    \makeatother
    

    \makeatletter
    \expandafter\def\expandafter\@afterheading\expandafter{\@afterheading\mbox{}}
    \makeatother
    

    expandafter example

        2
  •  0
  •   deinst    14 年前

    你应该可以用这个 sectsty 包裹