Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stanislaw/8b99534197c4351d29ec264d506dede4 to your computer and use it in GitHub Desktop.
Save stanislaw/8b99534197c4351d29ec264d506dede4 to your computer and use it in GitHub Desktop.
Eliminate white space around wrapfigure environments in LaTeX.
%% The typical answer for how to eliminate white space in wrapfigure doesn't work for me (I'm using a SIGGRAPH style sheet):
%% http://tex.stackexchange.com/questions/111393/too-much-space-around-wrap-figure
%% Instead, let's just offset the image.
%% The horizontal white space is \columnsep and the vertical white space is \intextsep.
%% Subtract them from the column width and offset the image accordingly.
%% How to move an image:
%% http://tex.stackexchange.com/questions/107340/how-to-shift-graphics-adjust-placement-of-figure-with-includegraphics
\begin{wrapfigure}[11]{R}{1in - .75\columnsep}
%\centering
\vspace{-\intextsep}
\hspace*{-.75\columnsep}\includegraphics[width=1in]{path/to/image}
\end{wrapfigure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment