I am trying to add appendices to the table of contents but it recognises it as chapters and hence calls them as chapters in the table of contents.
Code: Select all
\def\appendix{\par\setcounter{chapter}{0}\setcounter{section}{0}\def\@chapapp{APPENDIX}\def\thechapter{\Alph{chapter}}}
In the class file under the table of contents, I tried to add a section for appendices asking it to understand the difference between chapter and appendix by using chapapp (this has been defined before). The code I used is
Code: Select all
\def\l@chapapp#1#2{\pagebreak[3]\vskip 1.0em plus 1pt % space above chapter line\@tempdima 1.5em % width of box holding chapter number\begingroup\parindent \z@ \rightskip \@pnumwidth\parfillskip -\@pnumwidth\bfseries % Boldface.\leavevmode % TeX command to enter horizontal mode.APPENDIX#1\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill\hbox to\@pnumwidth{\hfil #2}\par\endgroup}
Any help regarding this would be greatly appreciated.
Thanks