[Tex/LaTex] how to compose many pictures tightly in LaTex as follow

graphics

I want to compose some pictures as the example picture. All small pictures need to be ranked alignedly, and the subcaption of each row should be near to the pictures.

1

Best Answer

You can use the subcaption package for this. It allows you to define some subfigures inside a figure environment. You can use it like this :

\documentclass{article}

\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}

\begin{figure}
    \centering
    \begin{subfigure}[b]{0.3\textwidth}
        \includegraphics[width=\textwidth]{picture_01}
        \caption{My first picture}
        \label{fig:pic01}
    \end{subfigure}%
    \begin{subfigure}[b]{0.3\textwidth}
        \includegraphics[width=\textwidth]{picture_02}
        \caption{My second picture}
        \label{fig:pic02}
    \end{subfigure}
    \begin{subfigure}[b]{0.3\textwidth}
        \includegraphics[width=\textwidth]{picture_03}
        \caption{My third picture}
        \label{fig:pic03}
    \end{subfigure}
    \caption{All of my pictures}
    \label{fig:pic_all}
\end{figure}

\end{document}