[Tex/LaTex] Subfigure: error “Missing number, treated as zero”


\begin{figure} \center
    \end{subfigure} %

    \caption{my caption}

I get an error

! Missing number, treated as zero.
<to be read again>

What's wrong?

Best Answer

This is how you should be using it.

\centering     %%% not \center
\subfigure[Figure A]{\label{fig:a}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure B]{\label{fig:b}\includegraphics[width=60mm]{example-image-b}}
\caption{my caption}

enter image description here

Note: subfigure is outdated and new one is subfig which introduces subfloat command. You may consider using subfig instead of subfigure.