[Tex/LaTex] vertical spacing between subfloat

spacingsubfloats

I am using subfig package. Is it possible to reduce the spacing between two sufloats one below the other? I couldn't find anything in the documentation.

Best Answer

You can use \\[<negativespace>] like \\[-2ex] after the last sub float in the current line.

Some example:

\documentclass{article}
\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htb]
 \subfloat[Some figure]{\includegraphics[width=0.48\textwidth]{example-image-a}}\hfill
 \subfloat[Some other figure]{\includegraphics[width=0.48\textwidth]{example-image-b}}\\[-2ex]  %%<-- in this line
 \subfloat[Some more]{\includegraphics[width=0.48\textwidth]{example-image-c}}\hfill
 \subfloat[Some less]{\includegraphics[width=0.48\textwidth]{example-image}}
 \caption{There are example figures}
\end{figure}
\end{document}

enter image description here

Related Question