我有兩行 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}