Skip to content

Instantly share code, notes, and snippets.

@joaopcnogueira
Forked from ashwin/subfloat.tex
Last active June 28, 2018 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaopcnogueira/f01b980fb2d03aa4f05037aa18ef7f39 to your computer and use it in GitHub Desktop.
Save joaopcnogueira/f01b980fb2d03aa4f05037aa18ef7f39 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[caption of the figure goes here]
{
\includegraphics[scale=.5]{fig-1.pdf}
\label{fig:foo-1}
}
\subfloat[caption of the figure goes here]
{
\includegraphics[scale=.5]{fig-2.pdf}
\label{fig:foo-2}
}
\caption{ Two foo figures. }
\label{fig:foo}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment