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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[conference]{IEEEtran}
  2. \usepackage{floatrow}
  3. \usepackage{graphicx}
  4.  
  5. \begin{document}
  6. %
  7. \title{}
  8. \author{}
  9. \maketitle
  10.  
  11. \begin{figure*}
  12. \centering
  13. \begin{minipage}{.45\columnwidth}
  14. \centering
  15. \includegraphics[width=\textwidth]{example-image-a}
  16. \caption{Caption 1}
  17. \label{label1}
  18. \end{minipage}%
  19. \begin{minipage}{.45\columnwidth}
  20. \centering
  21. \includegraphics[width=\textwidth]{example-image-a}
  22. \caption{Caption 2}
  23. \label{label2}
  24. \end{minipage}
  25. \end{figure*}
  26.  
  27. \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 9 guests