Created
July 31, 2012 06:23
-
-
Save ashwin/3214225 to your computer and use it in GitHub Desktop.
Sub-figures using subfloat in LaTeX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Package for subfloat | |
\usepackage{subfig} | |
% Figure with two sub-figures | |
\begin{figure} | |
\centering | |
\subfloat[] | |
{ | |
\includegraphics[scale=.5]{fig-1.pdf} | |
\label{fig:foo-1} | |
} | |
\subfloat[] | |
{ | |
\includegraphics[scale=.5]{fig-2.pdf} | |
\label{fig:foo-2} | |
} | |
\caption{ Two foo figures. } | |
\label{fig:foo} | |
\end{figure} |
@shami2017 you can add the captions within the brackets, like this way:
\subfloat[YOUR CAPTION HERE]
{
\includegraphics[scale=.5]{fig-1.pdf}
\label{fig:foo-1}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please tell how to control captions of subfigures?