众所周知,latex最多只有\subsubsection,即最多三层深度的section,但是如果想要用四层深度的话,得自己定义command:

\newcommand{\subsubsubsection}[1]{\paragraph{#1}\mbox{}\\}
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4} % how many sectioning levels to show in ToC

如上,在导言区加上上述命令,就可以。

另外还有很多其他的方法也能实现相同的效果,参见:
How to add an extra level of sections with headings below \subsubsection
笔者从其中挑了一个最简单的。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐