[OS X TeX] Controlling white space in wrapfig ~OT

Bob Kerstetter bkerstetter at mac.com
Fri Jun 25 13:00:40 EDT 2004


Hello,

This may be somewhat offtopic, but possibly of interest because it  
relates to wrapping images.

When using...

\begin{wrapfigure}[]{R}[0pt]{0pt}\includegraphics[]{filesname}\end{wrapf 
igure}

...there is a lot of white space both above and below the wrapped image.

The white space can be controlled on the bottom of the wrapped image by  
"hard-coding" the number of lines (N) to wrap...

\begin{wrapfigure}[N]...

But there is still too much space above the image. (Beside, who wants  
to count lines?)

After corresponding with the author of wrapfig.sty I have come up with  
this (mostly coded by the wrapfig.sty author):

\newenvironment{compactwrapfigure}
     {\setlength{\intextsep}{.5\intextsep}%
      \wrapfloat{figure}}
     {\endwrapfloat}

Cutting \intextsep in half by using {.5\intextsep} reduces the white  
space some below, but little, if any, above the image. Making it even  
smaller as in {.2\intextsep} again reduces the space below the image  
and does nothing above the image.

 From the wrapfig.sty document, \intextsep appears to be the controlling  
factor both above and below the image, but there must be others.

Thanks for any suggestions.

Bob



-----------------------------------------------------
Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the MacOSX-TeX mailing list