Created
October 31, 2012 04:08
-
-
Save mollietaylor/3984730 to your computer and use it in GitHub Desktop.
Subfigures in LaTeX
This file contains 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
\documentclass{article} | |
\usepackage{graphicx} | |
\usepackage{caption} | |
\usepackage{subcaption} | |
\begin{document} | |
\begin{figure} | |
\centering | |
\begin{subfigure}{0.4\textwidth} % width of left subfigure | |
\includegraphics[width=\textwidth]{rncalt.png} | |
\caption{RNC} % subcaption | |
\end{subfigure} | |
\vspace{1em} % here you can insert horizontal or vertical space | |
\begin{subfigure}{0.4\textwidth} % width of right subfigure | |
\includegraphics[width=\textwidth]{dncalt.png} | |
\caption{DNC} % subcaption | |
\end{subfigure} | |
\caption{Wordcloud of national conventions} % caption for whole figure | |
\end{figure} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code not works to me, but this one works => https://tex.stackexchange.com/questions/165728/latex-figure-numbering-as-part-a-b-c