0

enter image description here

Please see the above image. There are four images,and I want to use figure environment of latex to construct these images(1,2,1). What should I do? Please help me.

Henri Menke
  • 109,596

1 Answers1

0

Use the subcaption package.

\documentclass{article}
\usepackage{graphicx,subcaption}
\begin{document}

\begin{figure}
  \centering
  \begin{subfigure}{2cm}
    \includegraphics[width=2cm]{example-image-a}
    \caption{First}
  \end{subfigure}
  \begin{subfigure}{2cm}
    \includegraphics[width=2cm]{example-image-b}
    \caption{Second}
  \end{subfigure}
  \begin{subfigure}{2cm}
    \includegraphics[width=2cm]{example-image-a}
    \caption{Third}
  \end{subfigure}
  \begin{subfigure}{2cm}
    \includegraphics[width=2cm]{example-image-b}
    \caption{Fourth}
  \end{subfigure}
  \caption{All figures}
\end{figure}

\end{document}

enter image description here

Henri Menke
  • 109,596