[Tex/LaTex] How to make a subfigure span the two columns in IEEEtrans style

floatsieeetran

I have three figures that I want to put side by side for the sake of comparison, I am using IEEEtrans. I found solutions for how an equation spans the two columns but not for contiguous figures, any ideas comments will be appreciated, thank you.

Best Answer

You can use the starred figure* environment without any [htpb] specifiers. Try to keep your figure declaration closer to the text you want to put next to.

Also check the wonderful description from Frank Mittelbach about figure positioning.

How to influence the position of float environments like figure and table in 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}

enter image description here