2

I find that when I add figure wrap floats to LyX documents, often they will be placed poorly such that they overrun the bottom of the page. This is always accompanied by some of the text on the next page wrapping around nothing, as if the float had continued on that page. Example:

screenshot of float overflow example

Can anyone tell me why this happens and how to avoid it? In the settings for the wrap float, I see 'Allow floating', so I presume the typesetting engine should be free to find a more suitable location. Note that this does not always happen, but in a document with several figures densely placed in the text, it is very likely to occur.

There is a similar question for which the suggested solution is to allow the wrap to float.

  • 2
    This is very similar to Images off the page in multicols environment. You would have to test whether there is enough space left on the page, and otherwise postpone the placement of the image. Alternatively, just move the wrapfigure to avoid this. – Werner Jun 21 '13 at 3:23
  • 1
    I think I understand the suggestion but not the reasoning. The whole point of a float (as I understand it) is that TeX is free to place it wherever it fits. If I wiggle things around just a little, it will happily place it on the next page instead. It seems there must be a simpler answer.. – Luke Jun 21 '13 at 3:28
1

The floating capabilities of wrapfig and relatives are restricted; in particular, placement near a page break is problematic. The wrapfig documentation mentions these facts:

The ability to float is somewhat restricted, and you will get best results by giving exact manual placement, but floating is more convenient while revising the document. Any changes to the formatting can ruin your manual positioning so you should adjust the placement just before printing a final copy. Here are some tips for good placement:

• The environment should be placed so as to not run over a page break...

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.