您的位置:首页 > 其它

Latex IEEE论文模板插入子图

2017-04-06 23:20 3151 查看
Latex中插入子图的方法有很多种,但是当我们写论文的时候还是需要注意论文的模板当中建议我们采用什么方法。这里介绍IEEE论文模板中子图插入的方法。

IEEE论文模板里面明确要求了使用subfig宏包而不是subfigure来实现子图插入。下面这个例子说明了如何使用subfig插入子图.

\documentclass{IEEEtran}
\usepackage{lipsum}
\usepackage{graphicx}
\ifCLASSOPTIONcompsoc
\usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
\else
\usepackage[caption=false, font=footnotesize]{subfig}
\fi

\begin{document}

\section{A}
\lipsum

\section{B}
\lipsum[1-3]
\begin{figure}
\centering
\subfloat[a]{
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1a}\hfill
\subfloat{
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1b}\\
\subfloat[c]{
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1c}\hfill
\subfloat[d]{
\includegraphics[width=0.45\linewidth]{example-image}}
\label{1d}
\caption{(a), (b) Some examples from CIFAR-10 \cite{4}. The objects in
single-label images are usually roughly aligned.(c),(d) However, the
assumption of object alignment is not valid for multi-label
images. Also note the partial visibility and occlusion
between objects in the multi-label images.}
\label{fig1}
\end{figure}
\lipsum[1-5]
\end{document}


得到的效果如下图所示:



要想子图的下标不要显示成[b](a)a
,可以直接把
subfloat[a]
改成
subfloat[]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: