Latex多子图

Here are examples taken from the corresponding manual:

Example using the subfig package:

\usepackage{graphicx}   % 论文中加图片
\usepackage[caption=false,font=normalsize,labelfont=normalsize,textfont=normalsize]{subfig}   % 子图


\begin{figure}%
\centering
\subfloat[First.]{...}\qquad
\subfloat[Second figure.]{...}\\
\subfloat[Third.]{\label{3figs-c}...}%
\caption{Three sub-floats.}
\label{3figs}
\end{figure}

我的使用案例

\begin{figure*}%
\centering
\subfloat[CIFAR-10]{\label{fig:cifar-time}\includegraphics[width=0.45\textwidth]{figure/time/time_list_rep_cifar10.pdf}} \qquad
\subfloat[CelebA]{\label{fig:celeba-time}\includegraphics[width=0.45\textwidth]{figure/time/time_list_rep_celebA.pdf}}\\
\subfloat[ImageNet32]{\label{fig:imn32-time}\includegraphics[width=0.45\textwidth]{figure/time/time_list_rep_imagenet32.pdf}}  \qquad 
\subfloat[ImageNet64]{\label{fig:imn64-time}\includegraphics[width=0.45\textwidth]{figure/time/time_list_rep_imagenet64.pdf}} \\
\subfloat{\includegraphics[width=0.99\textwidth]{figure/time/legend.pdf}}
\caption{The box plot of inference time on all three datasets compared with original architecture. The two box plots on the left in each subfigure are the results of the training set and the two on the right are the results of the test set. In each set of comparisons, the left-hand side is our model, while the right-hand side is the original architecture.}
\label{fig:time}
\end{figure*}

在这里插入图片描述

Example using the subfloat package:

\begin{subfigures}
\label{fig:fig1a2}
%
\begin{figure}\centering
\fbox{fig. 1}
\caption{This is the first figure}\label{fig:fig1}
\end{figure}
%
\begin{figure}\centering
\fbox{fig. 2}
\caption{This is the second figure}\label{fig:fig2}
\end{figure}
%
\end{subfigures}

没看错,subfig包主要的命令为subfloat

\begin{figure*} 这个*表示双栏会合并成单栏显示图片(单栏模板就没有区别了)。为了方便更改模板,建议想要大图的使用带*的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

三只佩奇不结义

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值