I'm trying to align 3 subfigures in a 2-by-2 table, where the second column is a multirow spanning the two rows.
Usually \multirow
vertically centers its contents, but that's not happening with the subfigure.
Here's the code to generate the previous image.
\documentclass[]{article}
\usepackage[margin=1in]{geometry}
\usepackage[subrefformat=parens,labelformat=parens]{subcaption} %% provides subfigure
\usepackage{tabularx} %% tabularx and multirow so that we can do nice subfigure layouts
\usepackage{multirow}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}
\begin{tabular}{c|c}
\begin{subfigure}{0.3\linewidth}
\begin{center}
\includegraphics[width=1.9in, height=1.9in]{logo}
\caption{}
\end{center}
\end{subfigure} & \multirow{2}{.5\textwidth}{
\begin{subfigure}{0.3\linewidth}
\begin{center}
\includegraphics[width=3.9in, height=3.9in]{logo}
\caption{}
\end{center}
\end{subfigure}
} \\
\cline{1-1}
\begin{subfigure}{0.3\linewidth}
\begin{center}
\includegraphics[width=1.9in, height=1.9in]{logo}
\caption{}
\end{center}
\end{subfigure} & \\
\end{tabular}
\end{figure}
\end{document}
Best Answer
That-a-way? You can reference the subfigures adding a label in the first argument of
\subcaptionbox
which is to contain the caption text and the label: \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[margin=1in, showframe]{geometry} \usepackage{caption} \usepackage[subrefformat=parens,labelformat=parens]{subcaption} %% provides subfigure \usepackage{multirow} \usepackage{cleveref} \usepackage[demo]{graphicx}