![如何使子图跨越 IEEEtrans 样式的两列?](https://linux22.com/image/277204/%E5%A6%82%E4%BD%95%E4%BD%BF%E5%AD%90%E5%9B%BE%E8%B7%A8%E8%B6%8A%20IEEEtrans%20%E6%A0%B7%E5%BC%8F%E7%9A%84%E4%B8%A4%E5%88%97%EF%BC%9F.png)
我有三个图,我想将它们并排放置以便进行比较,我使用的是 IEEEtrans。我找到了方程如何跨越两列的解决方案,但没有找到连续图的解决方案,任何想法、评论都将不胜感激,谢谢。
答案1
您可以使用星号figure*
环境,无需任何[htpb]
说明符。尽量让您的图形声明更靠近您想要放在旁边的文本。
还请查看 Frank Mittelbach 对图形定位的精彩描述。
\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}