【问题标题】:How to modify the size of the space before a chapter title in LaTeX?如何在 LaTeX 中修改章节标题前的空格大小?
【发布时间】:2011-01-19 06:33:31
【问题描述】:

我一直在 Zenwalk 上使用 tetex,现在我使用 texlive 编译我的报告,行为有点不同。

我希望我的参考书目像以前一样放在一个页面中,我只需要更改参考书目章节标题之前的空格。

你知道我该怎么做吗?

谢谢

【问题讨论】:

  • 我们说的是前一段文本和章节标题顶部之间的垂直空间?没有发现任何有希望的东西。这:dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/… 有一些与参考书目相关的帮助,但不包含您想要的长度名称。

标签: latex bibliography


【解决方案1】:

如果您只想减少参考页面的上边距空间,您可以 在\bibliography{} 之前设置\vspace*{} 命令。这将强制调整参考页面。 例如:

\newpage
\vspace*{-2cm}
\bibliographystyle{/..../bst-files/econometrica_v2}
\bibliography{/home/.../econometrics}

【讨论】:

    【解决方案2】:

    最简单的方法是使用titlesec package它提供了用于定义分段标题外观的宏。

    hacker 的解决方案是根据自己的喜好重新定义 book.cls 的宏。原来的样子是这样的:

    \def\@makechapterhead#1{%
      \vspace*{50\p@}%
      {\parindent \z@ \raggedright \normalfont
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
            \huge\bfseries \@chapapp\space \thechapter
            \par\nobreak
            \vskip 20\p@
          \fi
        \fi
        \interlinepenalty\@M
        \Huge \bfseries #1\par\nobreak
        \vskip 40\p@
      }}
    

    只需更改 vskips 的这些 vspace 对您来说可能就足够了。

    【讨论】:

      猜你喜欢
      • 2017-03-06
      • 2010-11-26
      • 1970-01-01
      • 2011-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多