How can I make that the appendices list (numbered with \chapter{}
) not appear in ToC, but appears the title "Appendices" instead. I'm using the book
documentclass, and the default \appendix
command to begin the appendices.
In ToC, I have this:
1. CHAPTER ...
1.1 Section ...
A. Appendix A ...
A.1 Section ...
B. Appendix B ...
B.1 Section ...
I need this:
1. CHAPTER ...
1.1 Section ...
Appendices ...
But, I also need the Appendix A and B numbered in document.
Some solutions raise change the tocdepth
counter after the declaration of the start of the appendices, but can interfere with other lists (LoT, LoF) and the package hyperref and PDF bookmarks.
Here a MWE:
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{hyperref}
\hypersetup{hidelinks}
\begin{document}
\tableofcontents
\listoftables
\blinddocument
\begin{table}\centering
\begin{tabular}{|c|c|c|}
\hline
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\hline
\end{tabular}
\caption{Test}
\end{table}
\appendix
\blinddocument
\blinddocument
\end{document}
The solution should not affect the other lists and PDF bookmarks.
Best Answer
This approach by the »appendix« package and the decreased counter
tocdepth
written to the ToC results in a ToC entry for the appendices without disabling the numbering of the single appendix chapters in the document.According to the mentioned demands I can only offer a quick hack of the involved macros that write content to the ToC and the LoT.
The critical parts are commented to prevent corresponding entries.