GeneralMissing appendix letters in list of appendices

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nvx
Posts: 25
Joined: Mon Dec 17, 2007 7:49 pm

Missing appendix letters in list of appendices

Post by nvx »

Hello,

I am trying to put a separate list of appendices into a document, but so far I am not particularly satisfied with the results and hope someone here will be able to help me. I have found many threads dealing with this (e.g. http://www.latex-community.org/forum/vi ... 47&t=10764 or http://www.latex-community.org/forum/vi ... f=5&t=2349). Many of them suggest essentially the same thing, i.e.

Code: Select all

\documentclass{book}
\newcommand\listappendixname{List of Appendices}
\newcommand\appcaption[1]{%
  \addcontentsline{app}{chapter}{#1}
}
\makeatletter
\newcommand\listofappendices{%
  \chapter*{\listappendixname}\@starttoc{app}
}
\makeatother

\begin{document}
  \tableofcontents
  \listofappendices

  \chapter{Chapter one}
  \chapter{Chapter two}

  \appendix
  \chapter{Appendix one}\appcaption{Appendix one}
  ...(contents of appendix one)...

  \chapter{Appendix two}\appcaption{Appendix two}
  ...(contents of appendix two)...

\end{document}
This works, but only partially. Although appendices are listed in the ToC and we can place such a list anywhere we like, appendix "numbers" ("A", "B" etc.) are not displayed there. In other words, it produces:

Code: Select all

-------------------------------------
|                                   |
|   List of Appendices              |
|                                   |
|   Title of Appendix A             |
|   Title of Appendix B             |
|   ...                             |
|                                   |

|                                   |
|                                   |
|                                   |
-------------------------------------
instead of

Code: Select all

-------------------------------------
|                                   |
|   List of Appendices              |
|                                   |
|   A  Title of Appendix A          |
|   B  Title of Appendix B          |
|   ...                             |
|                                   |

|                                   |
|                                   |
|                                   |
-------------------------------------
My question therefore is: is it possible to typeset the list of appendices with "appendix letters" being present (=> "A Title of the First Appendix") or even with entries like "Appendix A Title of the First Appendix"? If so, what do I need to change in the LaTeX code?

Any help would be greatly appreciated.

nvx

Recommended reading 2024:

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

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

Post Reply