2

I use the wrapfig package to have some text wrapping around a figure. I want the wrapfigure to float so I use the capital letter L to set the placement of the figure. When the figure is at the bottom of a page and that there is not enough space left, wrapfig decides to put the figure on the next page. But it puts it where the next paragraph starts. Is it possible to make wrapfig place the figure at the top of the next page?

enter image description here

\documentclass{article}
\usepackage{wrapfig}
\begin{document}
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test

\begin{wrapfigure}{L}{10cm}
\rule{10cm}{5cm}
\end{wrapfigure}
WRAP PAR BEGIN test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test SHOULD BE HERE test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test WRAP
PAR END

EFFECTIVE WRAP PAR test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test
test test test test test test test test test test test test test test

\end{document}
  • This is a documented limitation. The documentation also suggests that you ignore it until the final version, then manually place the figure where you want it. I assume manual placement means you observe where the page and line break takes place, then simply end the paragraph there with {\parskip=0pt\par} and start your figure after that with the rest of the paragraph. – Dan Nov 22 '13 at 22:16
  • @Dan Ok. But I'd like to know if there is a way to change this behaviour. I don't like the idea of manually placing floats in a document with several hundreds of pages. – cjorssen Nov 23 '13 at 13:26
  • Despite the so-called floaing options, wrapfigures are not really floats. It would be very difficult, perhaps even impossible, to make one automatically float to the position of a page break, but it might be theoretically possible to convert it to a normal float. The number of pages in your file seems irrelevant; what counts is the number of figures that require intervention. If you have too many to make the effort worth your while, you might consider avoiding wrapfigures. – Dan Nov 24 '13 at 1:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.