默认情况下,“ \subsubsection
”标题没有编号,它也不会显示在“目录”中。为了编号并在目录中显示子分类,我们需要使用“ ” 在LaTeX文档的前导中定义“ tocdepth
”和“ secnumdepth
” 的计数器值\setcounter
。
这里是LaTeX示例文档代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
\documentclass{report}
\setcounter{tocdepth}{3} \setcounter{secnumdepth}{3}
% For dummy lipsum text
\usepackage{lipsum}
\begin{document}
\tableofcontents \clearpage
\chapter{Introduction} \lipsum[1]
\section{Overview} \lipsum[2]
\section{My Section}
\subsection{My Sub Section}
\subsubsection{My Sub Sub Section}
\end{document} |
希望这可以帮助。
谢谢。