![Latex 中不包含附录章节的目录](https://linux22.com/image/253447/Latex%20%E4%B8%AD%E4%B8%8D%E5%8C%85%E5%90%AB%E9%99%84%E5%BD%95%E7%AB%A0%E8%8A%82%E7%9A%84%E7%9B%AE%E5%BD%95%20.png)
答案1
使用描述的技巧在 TeX Stack Exchange 上:
\addtocontents{toc}{\setcounter{tocdepth}{-1}}
\chapter{Preface}
\addtocontents{toc}{\setcounter{tocdepth}{2}}
使用描述的技巧在 TeX Stack Exchange 上:
\addtocontents{toc}{\setcounter{tocdepth}{-1}}
\chapter{Preface}
\addtocontents{toc}{\setcounter{tocdepth}{2}}