[Tex/LaTex] White space under wrapfigure caption

spacingwrapfigure

Wrapfigure environment has excessive whitespace BELOW the caption. Inserting negative vspace just shifts the position of the caption relative to the image, actually increasing the 2+ lines of pointless space that usually sit below it. Any ideas?

Best Answer

As @prettygully says, the wrapfigure environment takes an optional 1st argument called number of narrow lines; from the documentation:

enter image description here

Compare the following (default):

enter image description here

\documentclass{article}

\usepackage{lipsum} % sample text
\usepackage{wrapfig}

\begin{document}

\begin{wrapfigure}{r}{3cm}
\centering
\rule{20pt}{10pt}
\caption{My caption}
\end{wrapfigure}
\lipsum[1]

\end{document}

To this, with number of narrow lines set as 4:

...
\begin{wrapfigure}[4]{r}{3cm}
...

enter image description here

This is a little fiddly- perhaps someone knows of a way to change this globally.

Related Question