删除LaTeX中\ chapter之前的间距

ssn*_*ssn 8 latex

我正在使用书籍样式撰写研究报告,并想知道如何在章节标题之前删除顶部垂直空间.我需要这个'抽象'页面.我希望它比标准章节更接近顶部.

Her*_*itz 20

以下是一些使用titlesec包的示例代码,Stefan的建议.titleformat命令将所有内容保留为默认值,但您需要包含它(我认为)才能使titlespacing更改生效.第二个titlespacing命令设置回默认值,假设您只想为第一章更改间距:

\documentclass{book}

\usepackage{titlesec}

\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}

% this alters "before" spacing (the second length argument) to 0
\titlespacing*{\chapter}{0pt}{0pt}{40pt}

\begin{document}

\chapter{One}
 % this changes "before" spacing back to its default of 50pt
\titlespacing*{\chapter}{0pt}{50pt}{40pt}
First sentence of chapter.

\chapter{two}
First sentence of chapter.

\chapter{three}
First sentence of chapter.

\end{document}
Run Code Online (Sandbox Code Playgroud)


小智 9

一种简单的方法是使用titlesec包.其文档的附录9.2显示了标准类如何排版标题 - 根据自己的要求复制和修改这些命令并不困难.