Created
May 17, 2016 04:39
-
-
Save yig/70bd3293fb7b452f5807967a40fe0c2e to your computer and use it in GitHub Desktop.
Eliminate white space around wrapfigure environments in LaTeX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 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} |
@yig, do you have a solution for captions?
I found an old solution I'd even commented on in the past:
https://tex.stackexchange.com/a/106146/13600
Thanks a lot! I spent around 3 hours searching and finally found solution. It works!
Wow, this is very helpful!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This trick won't widen a caption, if your inset figure has one.