2

In the example below, how can I change (say, increase) the spacing between the labels and the floats? I tried tweaking the capbesidesep parameter, but it seems to have no effect. Thanks and regards, Jorge.

Example:

\documentclass{article}
\usepackage{floatrow}

\newlength\mysep \setlength\mysep{1cm}
\DeclareFloatSeparators{mysep}{\hskip\mysep}
\floatsetup[figure]{style=plain,subcapbesideposition=top,capbesidesep=mysep}


\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\sidesubfloat[]{\includegraphics[scale=0.25]{example-image-a}}
\\
\vspace{1cm}
\sidesubfloat[]{\includegraphics[scale=0.25]{example-image-b}}
\end{figure}
\end{document}

Output: enter image description here

2

You could modify \labelsep to change the space between the label and the image:

\documentclass{article}
\usepackage{floatrow}

\floatsetup[figure]{style=plain,subcapbesideposition=top}
\setlength{\labelsep}{3cm}


\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\sidesubfloat[]{\includegraphics[scale=0.25]{example-image-a}}
\\
\vspace{1cm}
\sidesubfloat[]{\includegraphics[scale=0.25]{example-image-b}}
\end{figure}
\end{document}

enter image description here

  • Thanks so much, this seems to do the trick :) Do you know why the capbesidesep parameter doesn't work? – dontpanic Aug 3 '18 at 19:58
  • 1
    @dontpanic With capbesidesep you can modify the distance between the caption of the whole figure and the image. It seems not to be used for labels of subfigures. – user36296 Aug 3 '18 at 21:33
  • oh! I see! thanks for the clarification! :) – dontpanic Aug 3 '18 at 22:43
  • @dontpanic You're welcome! – user36296 Aug 4 '18 at 13:41
1

I have put into \sidesubfloat[] an horizontal space of 1 cm \hspace{1cm}. Could it be a convenient solution for you? I hope I have answered your question.

enter image description here

\documentclass{article}
\usepackage{floatrow}

\newlength\mysep \setlength\mysep{1cm}
\DeclareFloatSeparators{mysep}{\hskip\mysep}
\floatsetup[figure]{style=plain,subcapbesideposition=top,capbesidesep=mysep}


\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\sidesubfloat[]{\hspace{1cm}\includegraphics[scale=0.25]{example-image-a}}
\\
\vspace{1cm}
\sidesubfloat[]{\includegraphics[scale=0.25]{example-image-b}}
\end{figure}
\end{document}
  • Grazie mille, Sebastiano, ma cercavo qualcosa di più generico. Grazie cmq! – dontpanic Aug 3 '18 at 20:01
  • I admit with such sincerity that I am not as good as other users. You absolutely do not have to thank me. I was pleased to answer your question. The best of luck. – Sebastiano Aug 3 '18 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.