Skip to content

Instantly share code, notes, and snippets.

@swaroopjcse
Created May 23, 2015 19:14
Show Gist options
  • Save swaroopjcse/21898c1c6da9d48954a8 to your computer and use it in GitHub Desktop.
Save swaroopjcse/21898c1c6da9d48954a8 to your computer and use it in GitHub Desktop.
Placing figures side-by-side without using any fancy packages. Code based on Sec.1 of http://ftp.math.purdue.edu/mirrors/ctan.org/obsolete/macros/latex/contrib/subfigure/subfigure.pdf
\begin{figure}
\centering
\parbox{.4\textwidth}{%
\includegraphics{img/SE-Discussion}
\caption{First.}%
\label{fig:2figsA}
}%
\qquad
\begin{minipage}{.4\textwidth}%
\includegraphics{img/SE-Discussion2}
\caption{Second.}%
\label{fig:2figsB}%
\end{minipage}%
\end{figure}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment