我有两行 5 个子图。第一行有两个子图,第二行有三个子图。因此,组织应该如图所示。由于两行之间不对称,我无法做到。你能帮帮我吗?谢谢!
答案1
一种可能性是使用subcaption
:
代码:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.333\textwidth}
\centering
\includegraphics[width=.8\linewidth]{example-image-a}
\caption{}
\end{subfigure}%
\begin{subfigure}{0.333\textwidth}
\centering
\includegraphics[width=.8\linewidth]{example-image-a}
\caption{}
\end{subfigure}\par\medskip
\begin{subfigure}{0.333\textwidth}
\centering
\includegraphics[width=.8\linewidth]{example-image-a}
\caption{}
\end{subfigure}%
\begin{subfigure}{0.333\textwidth}
\centering
\includegraphics[width=.8\linewidth]{example-image-a}
\caption{}
\end{subfigure}%
\begin{subfigure}{0.333\textwidth}
\centering
\includegraphics[width=.8\linewidth]{example-image-a}
\caption{}
\end{subfigure}
\caption{the general caption}
\label{fig:fivesubfig}
\end{figure}
\end{document}