latex
1 绘图
双栏就是{figure*} 单栏就是{figure} 带*还是不带*的区别
双栏三图
latex
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[font=small]{caption}
% 导入上面的包
% 将图注显示为 "fig."
\captionsetup[figure]{name={Fig.},labelsep=period}
\begin{figure*}[htbp]
\centering
\begin{subfigure}[b]{0.33\textwidth}
\centering
\includegraphics[width=\textwidth]{figures1}
\caption{Subfigure 1 Name}
\label{fig:subfigure1}
\end{subfigure}%
\begin{subfigure}[b]{0.33\textwidth}
\centering
\includegraphics[width=\textwidth]{figures2}
\caption{Subfigure 2 Name}
\label{fig:subfigure2}
\end{subfigure}%
\begin{subfigure}[b]{0.33\textwidth}
\centering
\includegraphics[width=\textwidth]{figures3}
\caption{Subfigure 3 Name}
\label{fig:subfigure3}
\end{subfigure}%
\caption{picture name}
\label{fig:all_subfigures}
\end{figure*}
单栏两图
latex
\begin{figure}[htbp]
\centering
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=\textwidth]{figures1}
\caption{Subfigure 1 Name}
\label{fig:subfigure1}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering
\includegraphics[width=\textwidth]{figures2}
\caption{Subfigure 2 Name}
\label{fig:subfigure2}
\end{subfigure}%
\caption{picture name}
\label{fig:enter-label}
\end{figure}
单栏单图
latex
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{figures}
\caption{picture name}
\label{fig:enter-label}
\end{figure}
注
[htbp]的意思
para | explain |
---|---|
h | 当前位置 |
t | 页面顶部 |
b | 页面底部 |
p | 浮动 |