[Tex/LaTex] Latex error, counter too large, Subfigures

counterssubfloats

I'm creating an appendix for a Master thesis and I have lots of pictures that I want to insert. I receive an error message that the counter reaches the letter (z) and I do not know how to solve this. I have far more pictures to insert, but then they cannot be labelled properly.

Does anyone have a solution to this?

Best Answer

Some details on @Werner's comment: if you use, say, the subfigure environment, these lines in your preamble should solve your problem:

\usepackage{alphalph}
\renewcommand*{\thesubfigure}{%
\alphalph{\value{subfigure}}%
}%

After z, you'll get aa,ab,\dots. from subcaption

If you prefer a numeric subfigure counter, just use something like:

\renewcommand*{\thesubfigure}{(\arabic{subfigure})}

or if you want to prefix with the main figure number:

\renewcommand*{\thesubfigure}{(\thefigure.\arabic{subfigure})}