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.
Post Reply
bomberb17
Posts: 12
Joined: Sun Feb 10, 2019 8:52 pm

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

Post by bomberb17 »

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?:

Code: Select all

\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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

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

Post by bomberb17 »

Solved by adding \RawFloats in the figure environment.
Post Reply