Saturday, March 24, 2012

Subfigure in Latex

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

No comments:

Post a Comment