[Tex/LaTex] Insert set of images in latex

graphicssubfloats

I have a processus that I would represent it by a set of images like the below image. How can do this using the subfigure package?

enter image description here

Best Answer

This arrangement doesn't require anything special. Here's such an arrangement inside a figure that doesn't use any sub-figure package. Elements are not referenceable though (that can be changed, if needed):

enter image description here

\documentclass{article}
\usepackage{graphicx,array}
\newcommand{\subfigANDtitle}[2][.2\linewidth]{%
  \begin{tabular}{@{}>{\centering\arraybackslash}p{#1}@{}} #2 \end{tabular}}
\begin{document}

\begin{figure}
  \centering
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}

  This is a long title A.

  \medskip

  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}

  This is a long title B.

  \medskip

  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}\hfill
  \includegraphics[width=.2\textwidth]{example-image}

  This is a long title C.

  \medskip

  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title A} \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title B} \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title C} \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title D}

  \medskip

  \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title A} \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title B}
  \hfill\mbox{}

  \medskip

  \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title C} \hfill
  \subfigANDtitle{\includegraphics[width=.2\textwidth]{example-image} \\ title D}
  \hfill\mbox{}
\end{figure}

\end{document}