My question is:
How to adjust the gap between figure and caption within the same subfloat
Not the gap between two subfloat.
For the following example:
\begin{figure}
\centering
\subfloat[A]{\includegraphics[ scale=0.5]{images/a.jpg}}
\vspace{-10pt}
\subfloat[B]{\includegraphics[scale=0.5]{images/b.jpg}}
\vspace{-10pt}
\caption{}\label{fig:online_test}
\end{figure}
I got the following figure:
The sub-caption of (a) is too close to the sub-figure B. I hope the caption (a) to stay closer to sub-figure A. How can I adjust the space between the caption and figure within a subfloat
?
Thank you all for helping me and I would prefer a solution for subfloat
, instead of using other packages. But I would also appreciate a solution of using other packages.
I know my question looks similar to this question. But please make it clear. I'm asking for how to adjust the gap between figure and caption within a subfloat
, not the gap between two subfloat
. That is, the gap between the caption "a" and the figure "A"
Thank you.
Best Answer
your have more problems:
\fbox{...}
likeand see, if the frame is tied width image
gives the following result:
subfloat[...]{...}
and caption is determined with option\package[skip=1ex]{caption}
. this set vertical space determined byskip
globally. if you like to change only for this image, than please add after\begin{figure}