latextableofcontents

How to make 'appendix' appear in toc in Latex?


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}

Solution

  • This is probably most easily achieved by using the appendix package, or the memoir class.

    If you don't want to use a prepackaged solution, you'll have to hack the sectioning commands. When I needed to do this for my dissertation, I cloned the report class, and edited until I made the margins lady happy. What you're looking for is the definition of the \addcontentsline macro.