Advertisement

Latex IEEE论文模板插入子图

阅读量:

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[b]{
        \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}

得到的效果如下图所示:
subfig

要想子图的下标不要显示成**(a)a** ,可以直接把subfloat[a]改成subfloat[]

全部评论 (0)

还没有任何评论哟~