[Tex/LaTex] subfloat figures in two row with labels top left corner

subcaptionsubfloats

I want to put two subfigures in two rows but with labels(captions) in top left corner of each subfigure. like this but in two rows not side by side preferebly some vertical space between them.
Subfig label positioning

Best Answer

Replace the \quad by just \\[<required_skip_length>] in this example:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{floatrow}
\usepackage{subfig}

\begin{document}

\floatsetup[figure]{style=plain,subcapbesideposition=top}
\begin{figure}
  \sidesubfloat[]{\includegraphics{image1}\label{fig:sub1}} \\[\baselineskip]%
  \sidesubfloat[]{\includegraphics{image2}\label{fig:sub2}}%
  \caption{Two subfigures with their caption beside}\label{fig:test}
\end{figure}

\end{document}

You can control the vertical space as you wish.

enter image description here