I am working on a figure like this,
\begin{figure}
\includegraphics[width=\textwidth]{a.png}
\includegraphics[width=\textwidth]{b.png}
\includegraphics[width=\textwidth]{c.png}
\end{figure}
and would like to draw a box around the figures. I tried
\begin{figure}
\fbox{%
\includegraphics[width=\textwidth]{a.png}
\includegraphics[width=\textwidth]{b.png}
\includegraphics[width=\textwidth]{c.png}
}
\end{figure}
but then all the figures appear on one line (and, therefore, out of the page). Is there a simple fix to this?
center
insidefigure
is not good practice, because it adds unwanted space. Better using\centering
instead of thecenter
environment. It's not relevant for your problem, though.