[Tex/LaTex] More than 26 appendices


For my thesis I have a document that contains more than 26 appendices. The appendices 1 up to 26 are are alphabetical numbered as A up to Z. However at the 27th appendix I get an error (although I though that LaTeX would automatically number the 27th appendix as AA):

! Undefined control sequence.
\GenericError ...
#4 \errhelp \@err@ ...
l.1133 ...{Elaborated interview team leader}

At line 1133 starts the 27th appendix. I was looking for the content of a generic error but are not getting anything wiser. I use sections in my appendix, because my documentclass is article which is more controlable in layout in my opinion:

\section{Elaborated interview team leader}\label{appendixaa}

Any idea how to solve this issue?

UPDATE 24/09/2013

I have done what Erreg suggested, but now the message is that appendix.tex could not be found:

My mainfile (thesis.tex):






In the map Sections, appendix.tex is the file with all appendices:


\section{ appendix a}\label{appendixa}

\section{appendix b}\label{appendixb}


\section{appendix z}\label{appendixz}

\section{appendix aa}\label{apendixaa}

\section{appendix ab}\label{apendixab}

\section{appendix ac}\label{apendixac}

This is what i have now:
thesis.text (main file):


%Enabled packages





appendix.text (in the subfolder Sections):


\setcounter{section}{24} % just to see the effect

\section{Twenty five}

\section{Twenty six}

\section{Twenty seven}

The error I get now is:

! LaTeX Error: Counter too large.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.33 \section{Twenty seven}

Above example is the same as Ergg provided. Any idea? I do not see the light anymore.

Best Answer

There is a package also for this, called alphalph.


\appto\appendix{% patch \appendix so \AlphAlph is used


\setcounter{chapter}{24} % just to see the effect

\chapter{Twenty five}

\chapter{Twenty six}

\chapter{Twenty seven}


Rather than the output, I'll show the relevant part of the terminal output:

Appendix Y.
Appendix Z.
[3] [4]
Appendix AA.

This assumes that the documentclass has chapters; if your document class is article or a similar one which has sections at the top level, use


as the text of the patch.

Related Question