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.
Asked
Active
Viewed 71 times
1 Answers
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}
Henri Menke
- 109,596


subfigureis quite old. Better usesubcaption. – Henri Menke May 16 '17 at 04:18