[Tex/LaTex] Counter too long subfigure

counterssubfloats

I'm trying to make a igure with more than 26 subfigures, therefore, the counter of the alphabet is not enough since it goes only to the z. I tried as suggested in other posts to use the package alphalph like this:

\documentclass[smallextended]{svjour3}
\usepackage{graphics,graphicx,color} 
\usepackage{subfigure}
\usepackage{alphalph}
\usepackage{psfrag,epsfig}
\renewcommand{\thesubfigure}{\alphalph{subfigure}}

\begin{document}
\begin{figure}
\centering
\subfigure[]{\includegraphics[width=0.23\columnwidth]{figures/Segmentation/Pedestrians_trck.eps}\label{fig:a_trck}}
\subfigure[]{\includegraphics[width=0.23\columnwidth]{figures/Segmentation/Pedestrians_segm.eps}\label{fig:a_segm}}
\subfigure[]{\includegraphics[width=0.23\columnwidth]{figures/Segmentation/Pedestrians_SOBS.eps}\label{fig:a_SOBS}}

%and so on until 32 subfigures

\caption{Segmentation performance}
\label{fig:pedestrians}
\end{figure}
\end{document}

However, I get this error for the other figures in the document (which are not with automatic enumeration): "Missing number treated as zero".

The other figures are declared as:

\begin{figure}[!h]
\centering
\subfigure[\scriptsize{distribution with heavy tails}]{\includegraphics[width=.48\columnwidth]{Figures/Theory/PDF1n}\label{fig:PDF1}}
 \subfigure[\scriptsize{distribution with light tails}]{\label{fig:PDF2}
 \includegraphics[width=.48\columnwidth]{Figures/Theory/PDF2n}}
\caption{\scriptsize{Kernel bandwidth selection strategy}}.
\end{figure}

Best Answer

\alphalph needs a counter value as argument. However package subfigure is obsolete, use subfig instead:

\documentclass[smallextended]{svjour3}
\usepackage[demo]{graphicx}%  delete [demo] after testing
\usepackage{subfig}
\usepackage{alphalph}
\renewcommand\thesubfigure{\alphalph{\value{subfigure}}}

\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=0.23\columnwidth]  {figures/Segmentation/Pedestrians_trck.eps}\label{fig:a_trck}}
\subfloat[]{\includegraphics[width=0.23\columnwidth]{figures/Segmentation/Pedestrians_segm.eps}\label{fig:a_segm}}
\subfloat[]{\includegraphics[width=0.23\columnwidth]{figures/Segmentation/Pedestrians_SOBS.eps}\label{fig:a_SOBS}}

\caption{Segmentation performance}
\label{fig:pedestrians}
\end{figure}
\end{document}