将未编号的章节显示在目录中 #84
Rui-Alexander-Sun
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
有时我们希望某些章节(例如摘要或结语)不编号,但又显示在目录当中,可以在相关位置:
\chapter*{结语}
\addcontentsline{toc}{chapter}{结语}
其中第一行 * 的作用是不编号,第二行的作用是把这一章节添加进目录中,所以如果希望既不编号也不添加进目录,可以删去第二行
参考自:
https://zhuanlan.zhihu.com/p/24501131
Beta Was this translation helpful? Give feedback.
All reactions