Alex Rivera | Logout

Latex floating and text wrapped image

Asked 2009-08-14T23:34:34.570
19

I have a LaTeX document with an image in it. There is a section, four subsections, the latter 3 having just some text, and the first having a description environment with some stuff.

I want to have an image on the top right and have everything text wrap nicely around it.

The wrapfig package takes an entire column away (so text below the images gets wrapped to a fixed width even without the image there) and pushes the description environment past the left margin, and the floatflt package puts the image exactly where I want it, but no text gets wrapped.

I have the floatflt/wrapfig environment above the initial section (I get the best image placement this way) but moving it to various other places doesn't work either.

Are their any other ways to wrap the text around the image?

Some examples of fail can be seen here: http://drop.io/a3dbxte

Edit
Report

1 Answer

15

I had the exact same problem. Wrapfig expects a paragraph below it, so give it an empty one!

\begin{wrapfigure}{I}{0.5\textwidth}
\includegraphics[...]{...}
\end{wrapfigure}
\paragraph{}
\vspace*{-\parskip}

This gives an empty paragraph to make wrapfig comfortable, and doesn't alter your content at all (I added a negative vspace* to account for the \parskip of the paragraph).

answered 2012-04-04T21:51:04.133

Your Answer