I am using the report class to produce a document divided into chapters, and after some chapters I have an appendix. I am using the command appendix to generate them.
The problem is that I get the appendix only numbered as "A". Name of the apppendix, but I would also like to have the chapter on it: say, "3.A", "3.B", etc. (in both the apendix page itself and table of contents which uses hyperref)
The code is:
Code: Select all
\renewcommand\appendix{\par
\footnotesize
\numberwithin{equation}{section}
\def\section@prefix{\footnotesize\appendixname\ }%
\def\section@numbersep{:}%
\setcounter{section}{0}%
\gdef\thesection{\@Alph\c@section}
\renewcommand*{\theHsection}{\Alph{section}}
}
Code: Select all
\gdef{\thechapter\thesection{\@Alph\c@section}}

What am I doing wrong?
Thanks very much!
Marcos