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.pdfand save it toimage-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!]
\centeringThe width can be configured proportionally. The following example sets the width to 0.9 * \columnwidth:
\includegraphics[width=0.9\columnwidth]{img/image.pdf}If the figure seems too large, use scale instead of width as the option for \includegraphics:
\includegraphics[scale=0.5]{img/image.pdf}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.
\begin{figure*}[htbp!]
\centering
\includegraphics[width=\textwidth]{img/image.pdf}
\caption{Description.}
\label{fig:name}
\end{figure*}Use the
\textwidthoption instead of\columnwidthfor\resizebox.See the other explanations for the Figures in Column.
Sub-Figures
Use the following template to create sub-figures.
\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}The
subfigureenvironment requires thesubcaptionpackage.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