TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – egreg Oct 16 '11 at 21:47
wrapfig has an optional argument specifying the no. of lines to reserve, e.g. \begin{wrapfigure}[11]{i}[0pt]{0.5\textwidth} -- where 11 is the no. of lines. I usually just play with this number until I get the desired spacing. – prettygully Oct 16 '11 at 22:48

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


\usepackage{lipsum} % sample text


\caption{My caption}


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


enter image description here

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

share|improve this answer
Does anyone know how to change it globally, e.g., always one line less than it thinks... – Andy Nov 4 '14 at 13:57

An alternative to wrapfigure is provided by the (much older) picins package. It has a similar setup in terms of horizontal and vertical displacement. Here's a working minimal example:

enter image description here

\usepackage{picins}% http://ctan.org/pkg/picins
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
% Use [demo] option to graphicx if you don't have tiger.pdf
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{caption}% http://ctan.org/pkg/caption

\pichskip{15pt}% Horizontal gap between picture and text
    \captionof{figure}{This is a tiger.}


The image (or any <content>) is placed using \parpic[<options>][<position>]{<content>} (you're also able to specify some horizontal/vertical width/height and offset; see the picins documentation). <options> are for the image location in the paragraph (left l or right r), while <position> refers to alignment within the \parpic (left l, top t, bottom b or right r). There are also some other elementary framing and shadow commands available.

Horizontal image placement is modified using \parhskip{<len>}, while vertical number-of-lines is altered by \parskip{<n>}. I've seen that the vertical height of the \parpic does not adhere to the \parskip command when used with the caption package's \captionof command. However, you can manually add content below the figure to increase the gap between the caption and the paragraph text below it, if needed. Or, use the height parameter in \parpic(<width>,<height>)....

share|improve this answer
It should be noted that picins is not in TeX Live (it has a nonfree license). – egreg Oct 17 '11 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.