How to make word 'appendix' appear in the table of contents? Right now toc looks like this:
1 ……
2 ……
.
.
A …..
B …..
I would like it to be:
1 ……
2 ……
.
.
Appendix A …..
Appendix B …..
My latex source file structure is like this:
\begin{document}
\tableofcontents
\include{…}
\include{…}
\appendix
\include{…}
\include{…}
\end{document}
Best Answer
There's a couple of ways to solve this problem; unfortunately, I've only got a hack for you at this stage. One problem is that if we redefine the section number "A" to include the word "Appendix", it messes up the formatting of the table of contents. So instead, I've just defined a new sectioning command that prints the section without a number and inserts "Appendix X" manually.
Kind of ugly, but at least it works without having to change any markup
:)