答案1
report
将目录设置为\chapter*
。以下是打印章节标题的视图- 它由特定于tarred s 的\chapter*
宏完成:\@makeschapterhead
s
chapter
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
50pt
标题前和标题后均设置了空格40pt
。标题本身使用\Huge\bfseries
。以下是article
使用tocloft
:
\documentclass{article}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\Huge\bfseries}% Similar to \chapter* in report
\setlength{\cftbeforetoctitleskip}{50pt}% Similar to \chapter* in report
\setlength{\cftaftertoctitleskip}{40pt}% Similar to \chapter* in report
\begin{document}
\tableofcontents
\section{section1}
\subsection{subsection1.1}
\subsection{subsection1.2}
\end{document}