Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created July 31, 2012 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ashwin/3214225 to your computer and use it in GitHub Desktop.
Save ashwin/3214225 to your computer and use it in GitHub Desktop.
Sub-figures using subfloat in LaTeX
% 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
Copy link

Can you please tell how to control captions of subfigures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment