TransWikia.com

How to place figures side by side in latex and their captions as a and b, with another common caption as figure 1...?

TeX - LaTeX Asked by Aswathy M on August 11, 2021

I’m following International Journal of Computational Methods (IJCM) format.
subfigure, subfloat, subcaption are not working here since this journal template uses older incompatible formats like psfig etc.
If subfigure, subfloat, subcaption etc. are used, the font size etc. are changing.

minipage I tried, the caption for the figures placed at that time are getting as fig.1 and fig.2 (I have to get them as a and b), with the common caption fig.3 which I have to obtain as fig.1.

One Answer

As suggested in the comments, just use a tabular with the numbering manually inserted; this is a fairly good solution as there's no mention of the subfigure numbering to have the main figure number included.

The example below was taken from the ws-ijcm class source:

enter image description here

begin{figure}[th]
  centering
  begin{tabular}{ c @{quad} c }
    includegraphics[width=10em]{example-image-a} &
      includegraphics[width=10em]{example-image-b} 
    small (a) &
      small (b)
  end{tabular}
  vspace*{8pt}
  caption{A schematic illustration of dissociative recombination. The
  direct mechanism, 4m$^2_pi$ is initiated when the molecular ion
  S$_{mathrm{L}}$ captures an electron with kinetic energy.label{one}}
end{figure}

Referencing the main figure would use the regular Fig.~ref{one} approach, while subfigures can be referenced in a similar way: Fig.~ref{one}(a) (for example).

Answered by Werner on August 11, 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