LaTeX - How to keep parts in the table of contents

こ雲淡風輕ζ 提交于 2019-12-11 06:51:02

问题


I want to create section without numbers using the command \section*{Section Name}, but doing this omits them from the table of contents. The same thing happens using \part*{Part Name}. Is there a way to omit the section number and keep the section title in the table of contents?


回答1:


You can add a line to the toc with this command:

\addcontentsline{toc}{chapter}{Your Title}


来源:https://stackoverflow.com/questions/2459298/latex-how-to-keep-parts-in-the-table-of-contents

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!