I'm writing a PhD thesis, and my university requires that I list the appendices in a "List of Appendices" (LOA) that is separate from the main table of contents (TOC). I've successfully created a LOA using the tocloft
package. The problem is that the appendices are still also listed in the TOC.
One unsatisfactory workaround is to use the asterisk'ed forms of \chapter
and \section
in the appendices. Among other reasons, I don't like this because it removes the appendix letter from the appendices' title pages.
How can I keep the appendix numbers in the LOA, but remove them from the TOC?
I am using the appendices
, tocloft
and quotchap
packages.
Below is a minimal compilable example.
\documentclass[12pt,draft,letterpaper]{report}
\usepackage{quotchap}
\usepackage[titles]{tocloft}
\usepackage{appendix}
\newlistof{appendixchapter}{apx}{List of Appendices}
\newcommand{\appendixchapter}[1]{%
% These three lines are needed to list the appendix letter in the List Of
% Appendices even when using \chapter*
\refstepcounter{appendixchapter}%
\refstepcounter{chapter}%
\providecommand{\DOTIS}[1]{\DOCH \DOTI{#1}}
% '*' removes the appendix from the table of contents.
\chapter*{#1}
% Lists the appendix in the List of Appendices.
\addcontentsline{apx}{appendixchapter}{Appendix \protect\numberline{\theappendixchapter}#1}\par%
\vspace {-1.47cm}}
\renewcommand{\theappendixchapter}{\Alph{appendixchapter}}
\begin{document}
\tableofcontents
\listofappendixchapter\addcontentsline{toc}{section}{List of Appendices}
\chapter{My first chapter}
This is Chapter 1's body.
\appendixchapter{My first appendix}
This is Appendix A's body.
\appendixchapter{My second appendix}
This is Appendix B's body.
\end{document}