请问下如何实现section添加标号但不加入目录

发布于 2021-05-17 16:17:12

请问下如何实现section添加标号但不加入目录,比方说我想隐藏附录中的章节34b2b72c54a8b14d58965a189005a68b.png

查看更多

关注者
0
被浏览
1.5k
LaTeXStudio
LaTeXStudio 2021-05-17
这家伙很懒,什么也没写!

你要这样定义也折腾定义半天,找宏包更好解决,这个宏包 tocvsec2 可以随处定义加入目录的级别,下面的代码自己测试下:

\documentclass[a4paper,12pt,titlepage,oneside,final]{book}
\usepackage[english]{babel}
\usepackage{tocvsec2}
\begin{document}
\tableofcontents

\appendix
\settocdepth{part}
\chapter{Name of appendix A}


\section{Name of the first section}
\section{Name of the second section}

\chapter{Name of appendix B}


\section{Name of the first section}
\section{Name of the second section}
\end{document}
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览