I have a document with two appendices, and I would like the appendices to appear in the table of contents but without the sections of each appendix appearing. For example, I would like the table of contents to contain something like the following:
Appendices ................ 100
A First Appendix ....... 101
B Second Appendix ...... 110
Bibliography .............. 130
I've tried toying with the appendix package, but haven't been able to get the result I'd like. Any help would be most appreciated. Just for comparison, right now my code is
\begin{appendices}
\chapter{First Appendix}
\chapter{Second Appendix}
\end{appendices}
Using \usepackage[toc,page]{appendix} the table of contents looks like
Appendices .............. 100
A First Appendix ........ 101
A.1 First section .... 101
A.2 Second section ... 102
B Second Appendix ....... 110
B.1 First section .... 110
B.2 Second section ... 113
Bibliography ............. 120
I apologize if this is a duplicate; I know there are several questions regarding appendices and the table of contents, but I didn't see any that were quite like my question.
Here is a complete example:
\documentclass{book}
\usepackage[toc,page]{appendix}
\begin{document}
\tableofcontents
\mainmatter
\chapter{First Chapter}
\begin{appendices}
\chapter{First appendix}
\section{First section}
\section{Second section}
\chapter{Second appendix}
\section{First section}
\section{Second section}
\end{appendices}
\bibliographystyle{amsalpha}
\addtotoc{Bibliography}{\bibliography{bibliography}}
\end{document}


bookmarkpackage. It's a new question, anyway. – egreg Nov 30 '15 at 14:40bookmarkpackage could be of help. But I asked a new question here. Maybe you could have look? – eins6180 Nov 30 '15 at 17:16\includepdf[pages=1-,pagecommand={\thispagestyle{plain}},addtotoc={1,chapter,1,Statement,p1}]{statement}line before the following line:\addtocontents{toc}{\endgroup}. Statement is displayed as aB1in the table of contents (CinsteadB1is expected). – patryk.beza Mar 08 '17 at 13:01chapter@@section section@@subsectionin the toc instead an the chapters are still on the same level as chapters before appendix. I use scrreprt. – sivizius May 10 '18 at 17:32scrbookis quite a different beast. This deserves a fresh question. – egreg May 10 '18 at 17:34