LaTex subfigure example
This is an example that shows how to use the LaTex subfigure package.
Using sub-figures in your LaTex document
Include the subfigure package
\usepackage{subfigure}
Adding sub-figures
\begin{figure}[ht]
\centering
\subfigure[Subfigure 1 caption]{
\includegraphics[scale =1] {subfigure1.eps}
\label{fig:subfig1}
}
\subfigure[Subfigure 2 caption]{
\includegraphics[scale =1] {subfigure2.eps}
\label{fig:subfig2}
}
\subfigure[Subfigure 3 caption]{
\includegraphics[scale =1] {subfigure3.eps}
\label{fig:subfig3}
}
\label{myfigure}
\caption{Global figure caption}
\end{figure}
Referring to sub-figures
In the text, you can refer to subfigures as follows \ref{fig:subfig1}, \ref{fig:subfig2} \ref{fig:subfig3}.

Comment
Excelente explicación. De todas maneras sobra un paréntesis de llave (el último).
Muy útil!
Saludos
thank you for pointing it out! :)
Hi,
When you write caption of the subfigure, same caption will appear in title in the 'list of figure' also. This is annoying if the caption is long and that makes the title long. Is there way to short the title only (it can be done using minipage but I want to use subfigure).
Thanks.
The \label{} command must be placed after the \caption{}.