[Tex/LaTex] Subfig label positioning

captionspositioningsubcaptionsubfloats

Can anyone tell me how to change the horizontal position of subfigure labels?

I have:

 \captionsetup[subfigure]{labelformat=simple,position=top}

Is there something like:

 {position=topleft}

to place the label in the top left corner of my subfigures?
Thanks

Best Answer

Here's one possible solution using the floatrow and subfig packages:

\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}}\quad%
  \sidesubfloat[]{\includegraphics{image2}\label{fig:sub2}}%
  \caption{Two subfigures with their caption beside}\label{fig:test}
\end{figure}

\end{document}

enter image description here