如何使子图跨越 IEEEtrans 样式的两列?

如何使子图跨越 IEEEtrans 样式的两列?

我有三个图,我想将它们并排放置以便进行比较,我使用的是 IEEEtrans。我找到了方程如何跨越两列的解决方案,但没有找到连续图的解决方案,任何想法、评论都将不胜感激,谢谢。

答案1

您可以使用星号figure*环境,无需任何[htpb]说明符。尽量让您的图形声明更靠近您想要放在旁边的文本。

还请查看 Frank Mittelbach 对图形定位的精彩描述。

如何影响 LaTeX 中图形和表格等浮动环境的位置?

\documentclass[final]{IEEEtran}%
\usepackage{subcaption}
\usepackage{kantlipsum} %<- For dummy text
\usepackage{mwe} %<- For dummy images

% Remove the trailing whitespace from citations
\usepackage[noadjust]{cite}

% Training subcaption package to comply with
% IEEE standards. We can ignore the warning
% generated by caption.sty which is due to 
% the redefinition of \@makecaption
\DeclareCaptionLabelSeparator{periodspace}{.\quad}
\captionsetup{font=footnotesize,labelsep=periodspace,singlelinecheck=false}
\captionsetup[sub]{font=footnotesize,singlelinecheck=true}

\title{The research}
\author{The researcher}

\begin{document}
\maketitle
\begin{abstract}
\kant[1]
\end{abstract}

\kant[1-5]

\begin{figure*}%
\centering
\begin{subfigure}{.4\columnwidth}
\includegraphics[width=\columnwidth]{example-image-a}%
\caption{cap a}%
\label{subfiga}%
\end{subfigure}\hfill%
\begin{subfigure}{.4\columnwidth}
\includegraphics[width=\columnwidth]{example-image-b}%
\caption{cap b}%
\label{subfigb}%
\end{subfigure}\hfill%
\begin{subfigure}{.4\columnwidth}
\includegraphics[width=\columnwidth]{example-image-c}%
\caption{cap c}%
\label{subfigc}%
\end{subfigure}%
\caption{The proper caption}
\label{figabc}
\end{figure*}

\kant[6-10]
\end{document}

在此处输入图片描述

相关内容