Latex 设置目录深度

导言区添加: \setcounter{tocdepth}{2} \setcounter{secnumdepth}{3} tocdepth:设置在 ToC 的显示

导言区添加:

\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}

tocdepth:设置在 ToC 的显示的章节深度

secnumdepth:设置章节的编号深度

两者可选的设置值如下:

nummean
-1part
0chapter
1section
2subsection
3subsubsection
4paragraph
5subparagraph