Skip to content

Instantly share code, notes, and snippets.

@cgarbin
Last active December 10, 2018 12:47
Show Gist options
  • Save cgarbin/4b84f4358f4fa9e835f11bda11cf2c0a to your computer and use it in GitHub Desktop.
Save cgarbin/4b84f4358f4fa9e835f11bda11cf2c0a to your computer and use it in GitHub Desktop.
Showing images side-by-side in Latex
\begin{figure}
\centering
\begin{subfigure}[t]{0.45\columnwidth}
\centering
\includegraphics[width=\linewidth]{figures/figures_other/MnistExamples.png}
\caption{Generic} \label{fig:timing1}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.45\columnwidth}
\centering
\includegraphics[width=\linewidth]{figures/figures_other/cifar10.jpeg}
\caption{Competitors} \label{fig:timing2}
\end{subfigure}
\caption{Some general caption of all the figures. In (\subref{fig:timing1}) you can see a green square....}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment