# How can I reduce padding after figure?

\documentclass{mwrep}

\usepackage[draft]{graphicx}
\usepackage{hyperref}
\usepackage[all]{hypcap}

\makeatletter
\makeatother
I use figures with captions.

\begin{document}

\listoffigures

\chapter{foo}

First paragraph (previous).

\begin{figure}[h]
\includegraphics{a.jpg}
\caption{Opis}
\end{figure}

Second paragraph (following).

\end{document}


How can I change vertical space (padding?) between caption and following paragraph? Also, I want to change (increase a little) space between previous paragraph and top of image.

• I recommend using more than just [h] for positioning. See Keeping tables/figures close to where they are mentioned. Jul 17, 2011 at 20:08
• [!htbp] puts image on the center of new page and I don't want that. [h] puts image at the same place as in source code and if it doesn't fit, at the top of next page. I like this behaviour. Why should I change that? Jul 17, 2011 at 20:15
• In that case use [ht]. Jul 17, 2011 at 20:17
• OK, thank you :). Can you give me example when edding this t would be necessary? In my document it doesn't change anything but I believe at some cases it will be helpful :). Jul 17, 2011 at 20:18
• If you only allow h, you might get an overfull page if there's not enough space left. LaTeX is clever enough to change to ht for you, but it's better to write ht since you mean ht. See also h float specifier changed to ht warning when not attempting to specify a float. Jul 17, 2011 at 20:30

You could change \belowcaptionskip, for example:

\setlength{\belowcaptionskip}{-10pt}


For further customizations I recommend using the caption package. It provides a lot of features and is very well documented. If you're using the caption package, you can set the spacing as:

\captionsetup{belowskip=0pt}

• Thanks to yours and Mikael's answer I was able to set caption spacing to my needs. But still I don't know how can I increase space between paragraph and figure that is below it. Jul 17, 2011 at 20:28
• You can raise the length \intextsep by \addtolength or \setlength. Jul 17, 2011 at 20:32
• Where should this command go? Inside the figure environment?
– Royi
Jun 4, 2017 at 21:05
• Yes. You can place it right before the \caption{} line. For eg: \begin{figure} \centering\includegraphics[]{my_figure.png} \setlength{\belowcaptionskip}{-8pt} \caption{my_caption} \label{my_label} \end{figure} Nov 18, 2017 at 18:14
• How can I apply this setting to just one figure? The above solution seems to affect all figures. Jun 28, 2019 at 18:41

You can modify the following lengths, which affect all floats.;

• \floatsep: space left between floats (12.0pt plus 2.0pt minus 2.0pt).
• \textfloatsep: space between last top float or first bottom float and the text (20.0pt plus 2.0pt minus 4.0pt).
• \intextsep : space left on top and bottom of an in-text float (12.0pt plus 2.0pt minus 2.0pt).
• \dbltextfloatsep is \textfloatsep for 2 column output (20.0pt plus 2.0pt minus 4.0pt).
• \dblfloatsep is \floatsep for 2 column output (12.0pt plus 2.0pt minus 2.0pt).
• \abovecaptionskip: space above caption (10.0pt).
• \belowcaptionskip: space below caption (0.0pt).

Source

• +1, but it would be handy if you added the default values of these lengths to your answer. Jul 17, 2011 at 20:11
• @lockstep: Done, (at least for article class). Jul 17, 2011 at 22:04
• \addtolength{\textfloatsep}{-0.2in} is the correct answer as you rightfully mentioned.
– Amir
Nov 2, 2018 at 19:17
• That's the answer! just for pure beginner like me, to use them put \setlength{\textfloatsep}{2.0pt plus 2.0pt minus 2.0pt} before \begin{document} will take effect. Plus, for two column document, if the figure cross two columns (\begin{figure*}[!t]), \dbltextfloatsep works. For figure fit in single column (\begin{figure}[h!]), \intextsep works. For figures fit in single column but stick at the bottom (\begin{figure}[b!]), \textfloatsep works. Mar 28, 2021 at 21:16