LaTeX forum ⇒ Graphics, Figures & TablesWrapped Figure at Top or Bottom of Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 1
Joined: Mon Oct 22, 2018 3:48 pm

Wrapped Figure at Top or Bottom of Page

Postby kimtieuphuong » Mon Oct 22, 2018 3:51 pm

Is there a way to align wrapfigure at the top or bottom? I have an image, that takes about half of the width and one third of the length of the document and should be wrapped by the text. I don't want to define the wrapped text exactly, LaTeX should just take the best-fitting text (like [htb] with a regular figure).

Maybe there is also a general alternative to wrapfigure?

Thank you all in advance!

Posts: 612
Joined: Tue Mar 25, 2008 5:02 pm

Postby kaiserkarl13 » Sun Nov 11, 2018 9:09 am

According to the wrapfig documentation, using the uppercase version of the placement specifier allows the environment to float. That is,
  1. \begin{wrapfigure}[12]{o}{2in}
  2. ...
  3. \end{wrapfigure}

would produce a non-floating environment 12 lines deep and 2 in wide, whereas

  1. \begin{wrapfigure}[12]{O}{2in}
  2. ...
  3. \end{wrapfigure}

would float the same environment.

It doesn't necessarily float to the top or bottom of the page, though---just to a place where the float won't jump across pages or paragraphs. As the package author states in the documentation, the final copy of a formal document would almost always require some "manual" placement of wrapped figures.

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 13 guests