The horizontal gap between the contents of the wrapfig
environment and the surrounding paragraph text is \columnsep
(from the wrapfig
documentation, section 2 Sizing and optional overhang, p 3):
LaTeX will wrap surrounding text around the figure, leaving a gap of \intextsep
at
the top and bottom, and \columsep
at the side, by producing a series of shortened text
lines beside the figure. The indentation (shortening) of the text is the figure width plus
\columnsep
minus overhang (if any; see below).
Here's an example that shows the difference when setting \columnsep
to 0pt
, and leaving it as-is:
\documentclass{article}
\usepackage{wrapfig,graphicx,lipsum}% http://ctan.org/pkg/{wrapfig,graphicx,lipsum}
\begin{document}
\begingroup
\setlength{\columnsep}{0pt}%
\begin{wrapfigure}{r}{.98in}
\centering\includegraphics[width=\linewidth]{example-image-a}
\caption{Caption}\label{fig:looping1}
\end{wrapfigure}
\lipsum[1]
\endgroup
\begin{wrapfigure}{r}{.98in}
\centering\includegraphics[width=\linewidth]{example-image-a}
\caption{Caption}\label{fig:looping2}
\end{wrapfigure}
\lipsum[1]
\end{document}
Adjust this to your liking. Use scoping (\begingroup
...\endgroup
, or similar) to localize any changes.
Note that you can therefore also use \intextsep
as your vertical adjustment, rather than fixed values.