![Latex 中子圖中的子圖](https://rvso.com/image/327802/Latex%20%E4%B8%AD%E5%AD%90%E5%9C%96%E4%B8%AD%E7%9A%84%E5%AD%90%E5%9C%96.png)
我試圖將兩個單獨的圖像放在一個子圖中,以便它可以與另一個圖像組合以完成一個圖,即
(img-a) (img-b) (img-c) (img-d)
(a) (b)
Figure 1: A caption
我嘗試了幾種方法,但似乎從來沒有奏效。任何想法都會很棒。
答案1
您可以放入環境中的圖像數量沒有限制subcaption
:
\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{.4\textwidth}
\centering
\includegraphics[width=.4\textwidth]{example-image}\quad
\includegraphics[width=.4\textwidth]{example-image}
\caption{}
\end{subfigure}\quad
\begin{subfigure}[b]{.4\textwidth}
\centering
\includegraphics[width=.4\textwidth]{example-image}\quad
\includegraphics[width=.4\textwidth]{example-image}
\caption{}
\end{subfigure}
\caption{A caption}
\end{figure}
\end{document}