我正在使用书籍样式撰写研究报告,并想知道如何在章节标题之前删除顶部垂直空间.我需要这个'抽象'页面.我希望它比标准章节更接近顶部.
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)
| 归档时间: |
|
| 查看次数: |
45789 次 |
| 最近记录: |