- 导言区的声明
\usepackage[subfigure]{tocloft} %必须这么写,否则会报错
\renewcommand{\cftchapleader}{\cftdotfill{0.6}} %设置chapter条目的引导点间距
\renewcommand{\cftsecleader}{\cftdotfill{0.6}}
\renewcommand{\cftsubsecleader}{\cftdotfill{0.6}}
\renewcommand{\cftchapfont}{\hts} %设置chapter条目的字体
\renewcommand{\cftsecfont}{\stxs} %设置section条目的字体
\renewcommand{\cftsubsecfont}{\stxs} %设置subsection条目的字体
具体更详尽的声明方法可以在刘海洋–《latex入门》中找到。
- 正文区的使用
\centering\tableofcontents %输出目录