arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Figures

hashtag
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:

hashtag
Figures in Column

Use the following template to include figures in column:

Use the following options for all figures:

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:.

hashtag
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 .

hashtag
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 to create sub-tables that expand to the full page.
Figures in Column
$ pdfcrop image.pdf image-crop.pdf
\begin{figure}[htbp!]
\centering
\includegraphics[width=\columnwidth]{img/image.pdf}
\caption{Description.}
\label{fig:name}
\end{figure}
\begin{figure}[htbp!]
\centering
\includegraphics[width=0.9\columnwidth]{img/image.pdf}
\includegraphics[scale=0.5]{img/image.pdf}
\begin{figure*}[htbp!]
\centering
\includegraphics[width=\textwidth]{img/image.pdf}
\caption{Description.}
\label{fig:name}
\end{figure*}
\begin{figure}[htbp!]
\centering

\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=\columnwidth]{img/image.pdf}
\caption{Sub-figure 1.}
\label{tab:name-1}
\end{subfigure}

\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=\columnwidth]{img/image.pdf}
\caption{Sub-figure 1.}
\label{tab:name-1}
\end{subfigure}

\caption{Description.}
\label{tab:name}
\end{figure}
Figures in Page