Figures

Image Format

Before including figures, make sure the followings:

  • Export all images to PDF format. Converting image files (e.g., PNG) to PDF does not render well; you must export the vectorized images to PDF.

  • Crop white margins around the image. If you use Mac OS or Linux, you can simply type the following command in a terminal, which will crop image.pdf and save it to image-crop.pdf:

    $ pdfcrop image.pdf image-crop.pdf

Figures in Column

Use the following template to include figures in column:

\begin{figure}[htbp!]
\centering
\includegraphics[width=\columnwidth]{img/image.pdf}
\caption{Description.}
\label{fig:name}
\end{figure}

Use the following options for all figures:

\begin{figure}[htbp!]
\centering

The width can be configured proportionally. The following example sets the width to 0.9 * \columnwidth:

If the figure seems too large, use scale instead of width as the option for \includegraphics:

Make sure the label starts with the prefix fig:.

Figures in Page

Use the following template to include tables that expand to the full page.

  • Use the \textwidth option instead of \columnwidth for \resizebox.

  • See the other explanations for the Figures in Column.

Sub-Figures

Use the following template to create sub-figures.

  • The subfigure environment requires the subcaption package.

  • Put \vspace{0.5em} at the end of every sub-figure except for the very last one.

  • See Figures in Page to create sub-tables that expand to the full page.

Last updated