How can I have a figure (with a caption) that has three subfigures (each with its own caption, say (a), (b) and (c)) with the following layout: There are two columns; the first column is a single subfigure, the second column consists of two subfigures stacked vertically:
Using subcaption
and minipage
s you can achieve this:
\documentclass[]{article}
\usepackage{subcaption}
\usepackage[]{graphicx}
\begin{document}
\begin{figure}% >>>
\centering
\begin{minipage}[t]{.45\linewidth}
\subcaptionbox{text1}
{\includegraphics[width=\linewidth]{example-image-duck}}%
\end{minipage}%
\hfill
\begin{minipage}[b]{.45\linewidth}
\subcaptionbox{text2}
{\includegraphics[width=.5\linewidth]{example-image-duck}}
\subcaptionbox{text3}
{\includegraphics[width=.5\linewidth]{example-image-duck}}%
\end{minipage}%
\caption
{%
Caption.%
\label{fig:caption}%
}%
\end{figure}% <<<
\end{document}
Using the subfig
package as though one has tried to read its manual:
\documentclass[]{article}
\usepackage{subfig}
\usepackage[]{graphicx}
\begin{document}
\begin{figure}% >>>
\centering
\begin{minipage}[t]{.45\linewidth}
\subfloat[text1]
{\includegraphics[width=\linewidth]{example-image-duck}}%
\end{minipage}%
\hfill
\begin{minipage}[b]{.45\linewidth}
\subfloat[text2]
{\includegraphics[width=.5\linewidth]{example-image-duck}}\\
\subfloat[text3]
{\includegraphics[width=.5\linewidth]{example-image-duck}}%
\end{minipage}%
\caption
{%
Caption.%
\label{fig:caption}%
}%
\end{figure}% <<<
\end{document}
Output is almost identical.
-
Thanks! it works. However, I was using the subfig package for some other figures and it is incompatible with subcaption. Is there a similar solution with subfig instead of subcaption? – Abolfazl Karimi Sep 20 '18 at 20:21
-