I would like the subfigures of my figure to be arranged like so:
,---, ,---,
| | '---'
| | (b)
| | ,---,
'---' '---'
(a) (c)
I would like the bottom two images to be aligned vertically and the right two images to be aligned horizontally.
I've been trying combinations of subfigure and minipage, but to no avail:
\documentclass{article}
\usepackage{graphicx,caption,subcaption}
\usepackage{lipsum}
\begin{document}
\begin{figure}
\centering
\begin{minipage}[t]{.45\columnwidth}
\begin{subfigure}[t]{\columnwidth}
\includegraphics[width=.9\columnwidth,height=\columnwidth]{example-image-a}
\caption{}
\end{subfigure}
\end{minipage}
\begin{minipage}[t]{.45\columnwidth}
\begin{subfigure}[t]{\columnwidth}
\centering
\includegraphics[width=.9\columnwidth,height=.5\columnwidth]{example-image-b}
\caption{}
\end{subfigure}
\begin{subfigure}[b]{\columnwidth}
\includegraphics[width=.9\columnwidth,height=.5\columnwidth]{example-image-c}
\caption{}
\end{subfigure}
\end{minipage}
\end{figure}
\end{document}
Produces:
,---,
| |
| |
| | ,---,
'---' '---'
(a) (b)
,---,
'---'
(c)
Best Answer
Two solutions, one with a measure, the second leaving the task to TeX.
The first solution consists in first measuring the height of the big figure, together with its subcaption (whence the
[b]
positioning).The right half is set in a
minipage
whose height is prescribed to be the same as the left box:The
<inner alignment>
here iss
, meaning that only explicit skips are used for spacing items; in this case it's the\vfill
between the two subfigures. The<outer alignment>
is the same as the left subfigure, that isb
.The
<height>
is set to\ht\arrangebox
, which is the height of the saved box. The box is then used for typesetting the left subfigure.The second solution is more esoteric, as it relies on knowledge of some basic TeX constructs, in particular
\valign
. I'll make it into a LaTeX environment.You pass to
subcolumns
the width of each column. Subfigures in the same column are separated with\nextsubfigure
; with\nextsubcolumn
the next column is started.The advantage is that one can have as many columns and subfigures as one wants. For instance two in the first column and three in the second or whatever.