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}.


References



Labels: Wireless Internet Security Coding Network Monitoring

Comment

Pablo Dominguez, 2011/01/13 08:35

Excelente explicación. De todas maneras sobra un paréntesis de llave (el último).

Muy útil!

Saludos

CodeAlias, 2011/02/21 06:35

thank you for pointing it out! :)

Manoj, 2011/04/15 13:32

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.

Gòl·lum, 2011/07/12 04:32

The \label{} command must be placed after the \caption{}.

Enter your comment (wiki syntax is allowed):
RYSTS

Wireless Internet Security Performance RADIUS server Wireless Internet Security Performance RADIUS server