我希望我的图形采用以下布局:
这是我现在的代码:
\begin{figure}
\begin{subfigure}[t]{0.49\textwidth}
\raisebox{-\height}{\includegraphics[width=\textwidth]{example-image-a}}
\label{fig:a}
\caption{}
\end{subfigure}
\begin{subfigure}[b]{0.49\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-b}
\caption{}
\label{fig:interference}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.49\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-c}
\caption{}
\label{fig:Bragg}
\end{subfigure}
\end{figure}
我该如何修改它以适合我想要的布局?
答案1
前两个subfigure
s 在 中minipage
,第三个在它的右边:
\documentclass{article}
\usepackage[demo]{graphicx} % in real document remove "demo"
\usepackage[skip=0.5ex,
belowskip=1ex]{subcaption}
\begin{document}
\begin{figure}
\begin{minipage}{0.48\linewidth}
\begin{subfigure}{\linewidth}
\includegraphics[width=\textwidth]{example-image-a}
\caption{}
\label{fig:a}
\end{subfigure}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=\textwidth]{example-image-b}
\caption{}
\label{fig:interference}
\end{subfigure}
\end{minipage}%
\hfill
\begin{subfigure}{0.48\linewidth}
\centering
\includegraphics[width=\textwidth]{example-image-c}
\caption{}
\label{fig:Bragg}
\end{subfigure}
\end{figure}
\end{document}
答案2
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\begin{minipage}[c]{.45\linewidth}
\centering
\includegraphics[width=\linewidth]{imagefile}
\subcaption{A subfigure}\label{fig:1a}
\vspace{5mm}
\includegraphics[width=\linewidth]{imagefile}
\subcaption{Another subfigure}\label{fig:1b}
\end{minipage}\hfill
\begin{minipage}[c]{.45\linewidth}
\centering
\includegraphics[width=\linewidth]{imagefile}
\subcaption{Another subfigure}\label{fig:1c}
\end{minipage}
\caption{A figure}\label{fig:1}
\end{figure}
\end{document}