I am trying to obtain a pretty appendix and ToC, however I am experiencing a number of issues and it seems that I have to choose:
If I use the traditional code:
\documentclass{article}
\usepackage{booktabs,amsmath,caption,}
\begin{document}
\appendices
\appendixpage
\addappheadtotoc
\section{Abbreviations and symbols}
\end{document}
I obtain an table of contents where the appendix A, B and so on, are ranked as a section:
If I call appendix A for
\subsection{Abbreviations and symbols}
I obtain the right "rank", however, instead of being named A and B, it is now called .1 and .2 etc...
As an alternative I have used this other code, however although I obtain a nice looking TOC, my headers is wrongfully set as the section before the Appendix (which is because of my "newcommand" I believe)...
\documentclass{article}
\usepackage{booktabs,amsmath,caption}
\begin{document}
\appendix
\section*{Appendix}
\renewcommand{\thesubsection}{\Alph{subsection}}%consider {Appendix \Alph..}
\addappheadtotoc
\subsection{Abbreviations and symbols}
\end{document}
This last code is satisfactory when looking in ToC, but not when you look at the header...
Any one got a solution?
Link to similar problem (which is when writing report): Appendices' sections at subsection level in TOC
Thanks!
\markright{...}
to change the header, but i agree, that's a cop-out.titleps
you coulds define a sort of ‘appendix’ page style and ask to change the page style just before the\appendix
command, even patching this command with theetoolbox
(orxpatch
) package.