## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Wrapped Figure at Top or Bottom of Page

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

### Wrapped Figure at Top or Bottom of Page

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!

kaiserkarl13
Posts: 612
Joined: Tue Mar 25, 2008 5:02 pm
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.