如何用 floatrow 布局四个图形,其中两个垂直排列?

如何用 floatrow 布局四个图形,其中两个垂直排列?

如何在我的文档中获得像下面这样的布局?

_____________  _____________  _______________
|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}

在此处输入图片描述

相关内容