This was somewhat similar to what I am looking for, but not exactly: How to make appendices behave like sections in ToC
I would like for my appendices to do the following:
- One chapter in the ToC for all appendices
- Appendices behave like sections and are labeled A, B, C, etc.
- \ref command inserts the appendix label, not a number
- Appendices have their name and label in the page header, no need for chapter, section or other headings.
The resulting ToC would look like this:
Some Chapter 1
Some section 1
Some Chapter 2
Some section 2
Appendices
Appendix A - Some name
Appendix B - Some name 2
etc.
Currently I can only reproduce this behaviour by adding the content lines manually, using phantom sections to get the page numbers correct and manual naming for the ToC lines and headers. This leads to a problem that my labels and references use numbers instead of the letters defined for the counter. With the command below I would have to define the header for each appendix manually.
\refstepcounter{AppCounter}
\phantomsection\addcontentsline{toc}{section}{Appendix \Alph{AppCounter} - Some name}
\includegraphics ...
\label{app:appA}
The other problem with using appendix package is that I could not figure out how to have appendix labels without chapters/sections. And chapter/section commands add the text to the page, which is something I have no use for.
\addcontentsline{toc}{chapter}{Appendices}
in your .tex file just before the first appendix.\chapter
to produce the headings?