I am trying to have multiple subfigures in rows with their respective subcation on the left side of them. I found a useful answer on the LaTeX forums using \parbox
, but the subcaptions are not vertically centered, even though I put c
as the position parameter. I guess it is because the first subcaption-parbox is not the same height dimension as the graphics-parbox. How can I achieve that?
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\captionsetup[subfigure]{slc=off,margin={1cm,0cm}}
\parbox[m]{0.4\textwidth}{\subcaption{A subfigure}}
\parbox[b]{0.5\textwidth}{\includegraphics[width=\hsize]{image1}}\\
\parbox[m]{0.4\textwidth}{\subcaption{Another subfigure}}
\parbox[b]{0.5\textwidth}{\includegraphics[width=\hsize]{image3}}\\
\parbox[m]{0.4\textwidth}{\subcaption{A third subfigure}}
\parbox[b]{0.5\textwidth}{\includegraphics[width=\hsize]{image3}}\\
\caption{A collection of subfigures}
\end{figure}
\end{document}
I am also open for other suggestions that doesn't include \parbox
.
Thanks in advance :)
floatrow
package can answer your question. Take a look at its manual pages 68 onward. I will see if I can make a MWE using that package a bit later on.