在下面的例子中,我如何更改(例如,增加)标签和浮动之间的间距?我尝试调整 capbesidesep 参数,但似乎没有效果。谢谢,问候,Jorge。
例子:
\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}
答案1
您可以修改\labelsep
以更改标签和图像之间的空间:
\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}
答案2
我将其放入了\sidesubfloat[]
1 厘米的水平空间\hspace{1cm}
。这对您来说是一个方便的解决方案吗?我希望我已经回答了您的问题。
\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}