LaTeX forum ⇒ Graphics, Figures & TablesTwo figures side by side in IEEE double column document with separate captions

Information and discussion about graphics, figures & tables in LaTeX documents.
bomberb17
Posts: 7
Joined: Sun Feb 10, 2019 8:52 pm

Two figures side by side in IEEE double column document with separate captions

Postby bomberb17 » Thu Nov 28, 2019 5:20 pm

Hello, I want to put 2 figures side by side in an IEEE double column document. I want them to have separate captions, i.e. Fig 1 and Fig 2. The error I'm getting is "Package floatrow Error: Caption(s) lost. \caption{Caption 1}". I need the floatrow however for other part of the document! Here's a MWE, can someone help?:

\documentclass[conference]{IEEEtran}
\usepackage{floatrow}
\usepackage{graphicx}

\begin{document}
%
\title{}
\author{}
\maketitle             

\begin{figure*}
	\centering
	\begin{minipage}{.45\columnwidth}
		\centering
		\includegraphics[width=\textwidth]{example-image-a}
		\caption{Caption 1}
		\label{label1}
	\end{minipage}%
	\begin{minipage}{.45\columnwidth}
		\centering
		\includegraphics[width=\textwidth]{example-image-a}
		\caption{Caption 2}
		\label{label2}
	\end{minipage}
\end{figure*}

\end{document}

bomberb17
Posts: 7
Joined: Sun Feb 10, 2019 8:52 pm

Postby bomberb17 » Thu Nov 28, 2019 5:57 pm

Solved by adding \RawFloats in the figure environment.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 8 guests