![如何用 floatrow 布局四个图形,其中两个垂直排列?](https://linux22.com/image/256460/%E5%A6%82%E4%BD%95%E7%94%A8%20floatrow%20%E5%B8%83%E5%B1%80%E5%9B%9B%E4%B8%AA%E5%9B%BE%E5%BD%A2%EF%BC%8C%E5%85%B6%E4%B8%AD%E4%B8%A4%E4%B8%AA%E5%9E%82%E7%9B%B4%E6%8E%92%E5%88%97%EF%BC%9F.png)
如何在我的文档中获得像下面这样的布局?
_____________ _____________ _______________
|Big Picture1| |Big Picture2| |Small Picture1|
| | | | |______________|
| | | | c) subfigure
| | | | _______________
| | | | |Small Picture2|
|____________| |____________| |______________|
a) subfigure b) subfigure d) subfigure
Fig. 1: four subfigures
我尝试了 floatrow 包,并分别获得了两个图形和两个子图形。但是我如何将它们合并为一个图形呢?
\begin{figure}
\ffigbox{
\begin{subfloatrow}[2]
\ffigbox[\FBwidth][][]{\caption{subcaption1}}
{\includegraphics[scale=0.4]{big_picture1}}
\ffigbox[\FBwidth][][]{\caption{subcaption2}}
{\includegraphics[scale=0.4]{big_picture2}}
\end{subfloatrow}
}{\caption{figure1}\label{label1}}
\end{figure}
\begin{figure}
\ffigbox{
\begin{subfloatrow}[1]
\ffigbox[\FBwidth][][]{\caption{subcaption3}}
{\includegraphics[scale=0.4]{small_picture1}}
\end{subfloatrow} \\
\begin{subfloatrow}[1]
\ffigbox[\FBwidth][][]{\caption{subcaption4}}
{\includegraphics[scale=0.4]{small_picture2}}
\end{subfloatrow}
}{\caption{figure2}\label{label2}}
\end{figure}
答案1
这是一种可能性;您可能需要根据实际需要调整一些长度:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{floatrow}
\usepackage{subfig}
\begin{document}
\begin{figure}
\ffigbox[][7.8cm]{%
\begin{subfloatrow}
\ffigbox[\FBwidth][]
{\caption{subfigure-a}}
{\includegraphics[width=3cm,height=6cm]{bigpicture1}}
\ffigbox[\FBwidth][]
{\caption{subfigure-b}}
{\includegraphics[width=3cm,height=6cm]{bigpicture2}}
\end{subfloatrow}\hspace*{\columnsep}%
\begin{subfloatrow}
\hsize0.7\hsize
\vbox to 6.3cm{%
\ffigbox[\FBwidth]
{\caption{subfigure-c}}
{\includegraphics[width=3cm,height=2cm]{smallpicture1}}\vss
\ffigbox[\FBwidth]
{\caption{subfigure-d}}
{\includegraphics[width=3cm,height=2cm]{smallpicture2}}
}%
\end{subfloatrow}
}{\caption{four subfigures}}
\end{figure}
\end{document}