我把三幅图连在一起,其中一幅是独立的,下面有标题,另外两幅是子图,请看下图。
我尝试过minipage
与结合subfigure
,但没有成功。你能帮助我吗?
答案1
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\begin{minipage}[b]{.4\textwidth}
\centering
\includegraphics[width=1.5in]{example-image-a}
\caption{This is first figure}
\end{minipage}%
\hfill
\begin{minipage}[b]{.5\textwidth}
\subcaptionbox{}{\includegraphics[width = 1in]{example-image-b}}
\subcaptionbox{}{\includegraphics[width = 1in]{example-image}}
\caption{caption}
\end{minipage}
\end{figure}
\end{document}
还有一个使用选项subfig
:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
\begin{minipage}[b]{.4\linewidth}
\centering
\includegraphics[width=4cm]{example-image-a}
\caption{A figure}
\end{minipage}%
\begin{minipage}[b]{.6\linewidth}
\centering
\subfloat[subfigure]{\includegraphics[width=3cm]{example-image-b}}\quad
\subfloat[subfigure]{\includegraphics[width=3cm]{example-image-c}}
\caption{Another figure}
\end{minipage}
\end{figure}
\end{document}