[Tex/LaTex] Placing figures side by side

subfloats

How to place figures side by side with two different captions and one common caption, while in the list of figures only common caption will show?

Best Answer

You could load the subcaption package and use two subfigure environments inside a figure environment. Each subfigure can be given its own \caption.

In the example below, I've given equal sizes (of 0.48\textwidth) to the subfigures; obviously, unequal sizes are also possible. The horizontal line below the figure is drawn purely to illustrate with width of the text block.

enter image description here

\documentclass{article}
\usepackage[demo]{graphicx} % omit "demo" for your real document
\usepackage{subcaption}
\begin{document}
\begin{figure}
  \begin{subfigure}{.48\textwidth}
    \includegraphics[width=\linewidth]{file1}
    \caption{Caption of first subfigure}
  \end{subfigure}
  \hspace{\fill}  % for some horizotal separation 
  \begin{subfigure}{.48\textwidth}
    \includegraphics[width=\linewidth]{file2}
    \caption{Caption of second subfigure}
  \end{subfigure}
  \caption{A float with two subfigures}
\end{figure}
\hrule  % just to illustrate width of text block
\end{document}