如何修改LaTeX中章节标题前的空格大小?

发布于 2024-08-22 12:13:11 字数 138 浏览 5 评论 0原文

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

我希望我的参考书目像以前一样适合一页,我只需要更改参考书目章节标题之前的空格即可。

你知道我该如何处理吗?

谢谢

I have been working with tetex on Zenwalk and now that I compile my report with texlive, the behavior is a bit different.

I would like my bibliography to fit in one page like before and I just need to change the space before the title of the bibliographie chapter.

Do you know how I can manage that?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

秋心╮凉 2024-08-29 12:13:11

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

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

If you just want to reduce the top margin space of the reference page you can
set a \vspace*{} command before your \bibliography{}. This will force the reference page to be adjusted.
Eg:

\newpage
\vspace*{-2cm}
\bibliographystyle{/..../bst-files/econometrica_v2}
\bibliography{/home/.../econometrics}
累赘 2024-08-29 12:13:11

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

黑客的解决方案是根据您的喜好重新定义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的vspaces可能对你来说就足够了。

The easiest is to use the titlesec package. It provides macros for defining the appearance of sectioning titles.

The hacker solution is to redefine the macro from book.cls to your liking. The original looks like so:

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

Just changing those vspaces of vskips might be enough for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文