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

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

Wrapped Figure at Top or Bottom of Page

Post by kimtieuphuong »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Wrapped Figure at Top or Bottom of Page

Post by kaiserkarl13 »

According to the wrapfig documentation, using the uppercase version of the placement specifier allows the environment to float. That is,

Code: Select all

\begin{wrapfigure}[12]{o}{2in}
...
\end{wrapfigure}
would produce a non-floating environment 12 lines deep and 2 in wide, whereas

Code: Select all

\begin{wrapfigure}[12]{O}{2in}
...
\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.
Post Reply