-
当前模板在目录中默认显示到subsection,有可能通过设置让某一章只显示到section吗? |
Beta Was this translation helpful? Give feedback.
Answered by
atxy-blip
Jan 25, 2025
Replies: 1 comment 1 reply
-
需要在这一章前后加两行命令: # 显示到 section 层级
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\chapter{foo}
...
# 恢复显示到 subsection 层级
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ret-1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需要在这一章前后加两行命令: