subfigure numbering

327 views
Skip to first unread message

skintythe1andonly

unread,
May 17, 2008, 7:23:28 AM5/17/08
to LaTeX Users Group
Hi

I am having some problems with the numbering when using subfigure. I
want to use subfigure and add a caption to each of the figures to be
included, however I do not want to add a caption to the overall figure
afterwars like so

\begin{figure}
\centering

\subfigure[subfigure 1 caption]
{
\label{subfigure 1 label}
\includegraphics[width=0.45\columnwidth]{image 1}
}
\qquad
\subfigure[subfigure 2 caption]
{
\label{subfigure 2 label}
\includegraphics[width=0.45\columnwidth]{image}
}
\label{offset}
\end{figure}

This works fine the first time I do it....however the next time I
begin another figure, the numbering just continues on from where it
left off eg. 1(c) 1(d). If I add a caption to the overall figure the
numbering of the next figure does swtich to 2(a) 2(b). I do not feel
the need to add a caption to the overall figure, but am adding figures
individually aswell without the use of subfigure so i do need that
functionality

I have used a work around up until now but im sure there is a better
way. Anytime I use subfigure without a figure caption i have to add

\addtocounter{figure}{1}
\setcounter{subfigure}{0}

to get the numering of the next figure correct, there has to be a
better way.
Reply all
Reply to author
Forward
0 new messages