I am writing my thesis using the
book
class. I have three appendices A,B and C. In the ToC these appendices appear like this
Code: Select all
Appendices A – C 107-120
Code: Select all
Appendix A 107
Appendix B 115
Appendix C 120
Code: Select all
\renewcommand{\appendix}{%
\@appendixtrue
\settocdepth{chapter}
\pagebreak% force a page break, so that TOC will show a correct page number
\settocdepth{chapter}
\setcounter{chapter}{0}%
\setcounter{section}{0}%
%\setcounter{tocdepth}{0}
\gdef\@chapapp{\MakeUppercase{\appendixname}}%
\gdef\thechapter{\@Alph\c@chapter}
\phantomsection
\label{apppg1}
% add to TOC
%\phantomsection
%\addtocontents{toc}{\protect\addvspace{\@twolinespacing}}
%\addcontentsline{toc}{nonmainmatterchapter}{\appendicesname}
%added
%\addtocontents{toc}{\protect\addvspace{\@twolinespacing}}
\addtocontents{toc}{\protect\vspace{\@twolinespacing}}
%\addtocontents{toc}{\protect\noindent\MakeUppercase{\bf\appendicesname}}
%\addtocontents{toc}{\protect\addvspace{\@twolinespacing}}%
}