Created
December 12, 2020 20:12
-
-
Save LanternD/f7c536b1d88d711ef29d910ab68e9b3f to your computer and use it in GitHub Desktop.
LaTeX Figure Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Style 1 (default) | |
\begin{figure}[!t] | |
\centering | |
\includegraphics[width=0.5\columnwidth]{./fig1.pdf} | |
\caption{Figure caption here.} | |
\label{fig:fig_label} | |
\end{figure} | |
% Style 2: one figure with several subfigures | |
\begin{figure}[!t] | |
\centering | |
\subfloat[caption1 here.]{\includegraphics[width=0.29\columnwidth] {./pic1.jpg} | |
\label{fig:pic1_label}} | |
\hfil | |
\subfloat[caption2 here.]{\includegraphics[width=0.45\columnwidth] {./pic2.jpg} | |
\label{fig:pic2_label}} | |
\caption{caption for the whole figure} | |
\label{fig:whole_fig_label} | |
\end{figure} | |
% Style 3: Different (independent) figures occupying the whole column | |
\begin{figure*} | |
\begin{minipage}[c]{0.48\textwidth} | |
\centering | |
\includegraphics[width=\textwidth, trim={0cm 0.5cm 0 0}]{./first_fig.pdf} | |
\caption{first fig caption here.} | |
\label{fig:first_fig_label} | |
\end{minipage} | |
\hfill{} | |
\begin{minipage}[r]{0.5\textwidth} | |
\centering | |
\includegraphics[width=\textwidth]{./second_fig.pdf} | |
\caption{Second fig caption here.} | |
\label{fig:second_fig_label} | |
\end{minipage} | |
\end{figure*} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment