TransWikia.com

How to insert two pictures side by side in IEEE access format in two columns paper?

TeX - LaTeX Asked by Tania islam on January 27, 2021

How can I insert two pictures in side by side format for the IEEE access format paper? I tried the following code by the pictures are two far away from each other.

begin{figure*}[htp]
  
centering
 
 subfigure[random caption 1]{includegraphics[scale=0.38]{image1}}quad
  
subfigure[random caption 2]{includegraphics[scale=0.38]{image2}}

end{figure*}

One Answer

Edit: added are options which preserve original IEEE Access layout for figures and tables.

Try the following:

documentclass{IEEEaccess}
usepackage{graphicx}
usepackage[font={sf,scriptsize},           % new
            labelfont={bf,color=accessblue},% new
            caption=false]                  % new
           {subfig} 
begin{document}
Figure[t!]{example-image-duck}     % for one image per figure
           {Test figure label{fig:test}} 

begin{figure*} % for sub figures over two columns in 
centering
subfloat[random caption 1]{includegraphics[width=0.8columnwidth]{example-image-duck}}
hfil
subfloat[random caption 2]{includegraphics[width=0.8columnwidth]{example-image-duck}}
caption{My figure over two column}
label{fig:figure2}
end{figure*}
EOD
end{document}

enter image description here

  • please, always provide complete small document (MWE: Minimal Working Example), which we can test as it is
  • as mentioned in @Elad Den comment, you should remove empty line between images
  • don't use obsolete package subfigure, instead of it use subfig and its environment subfloat
  • for image size is better to determine images width than scale it, for example as is done in the above MWE

Correct answer by Zarko on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP