Skip to content

Instantly share code, notes, and snippets.

@ckirsch
Created March 1, 2013 05:30
Show Gist options
  • Save ckirsch/5062654 to your computer and use it in GitHub Desktop.
Save ckirsch/5062654 to your computer and use it in GitHub Desktop.
Multiple subfigures in LaTeX using the subcaption package.
...
\usepackage{subcaption}
...
\begin{figure}
\begin{center}
\begin{subfigure}[t]{0.48\textwidth}
\centering
\includegraphics[width=0.38\textwidth]{image-a}
\caption{Subfigure A caption}
\label{fig:image-a}
\end{subfigure}
\quad
\begin{subfigure}[t]{0.48\textwidth}
\centering
\includegraphics[width=0.38\textwidth]{image-b}
\caption{Subfigure B caption}
\label{fig:image-b}
\end{subfigure}
\end{center}
\caption{Figure caption}
\label{fig:all}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment