Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

目录显示与章节编号 #82

Closed
Rui-Alexander-Sun opened this issue Apr 19, 2023 · 2 comments
Closed

目录显示与章节编号 #82

Rui-Alexander-Sun opened this issue Apr 19, 2023 · 2 comments

Comments

@Rui-Alexander-Sun
Copy link

Rui-Alexander-Sun commented Apr 19, 2023

有时我们希望某些章节(例如摘要或结语)不编号,但又显示在目录当中,可以在相关位置:
\chapter*{结语}
\addcontentsline{toc}{chapter}{结语}

其中第一行 * 的作用是不编号,第二行的作用是把这一章节添加进目录中,所以如果希望既不编号也不添加进目录,可以删去第二行

参考自:
https://zhuanlan.zhihu.com/p/24501131

@wu-kan
Copy link
Member

wu-kan commented Apr 19, 2023

感谢,不过这类tips可以发在 discussions 里面,免得close了issue之后大伙看不到😄

@Rui-Alexander-Sun
Copy link
Author

感谢,不过这类tips可以发在 discussions 里面,免得close了issue之后大伙看不到😄

好滴,因为我对Github不是很熟,所以就发在了这里哈哈。我去发在discussion~

@wu-kan wu-kan closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants