GeneralAppendix problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
carol
Posts: 105
Joined: Wed Dec 24, 2008 7:25 pm

Appendix problem

Post by carol »

Hi,
To create appendices (Appendix A and Appendix B), I used the commands listed below. My problem is that the appendix A and the appendix B appear as "A" and "B" in the table of contents instead of "Appendix A" and "Appendix B". In the related appendix chapters however, the headers appear correctly.

How to precede the appendixname (A and B) by the word "Appendix" in the table of contents?


\usepackage[toc]{appendix}
\appendix
\addappheadtotoc
\input{AppendixA}
\input{AppendixB}

Here is how Appendices get displayed in the table of contents:

A
A.1 main A heading . . . . . . . . . . . . . . . . . . . . . . . . 174
A.1.1 section heading1 . . . . . . . . . . . . 174
A.1.2 section heading2 . . . . . . . . . . . . . 176
B
B.1 main B heading . . . . . . . . . . . . . . . . . . . . . . . . 178

Thanks

Carol

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Appendix problem

Post by kaiserkarl13 »

Try \usepackage[titletoc]{appendix} and then
\begin{appendices}...\end{appendices}
instead of \appendix.

(I think that's what you want, right?)
Post Reply