Graphics, Figures & TablesAbsolute positioning of figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
CJFugate
Posts: 12
Joined: Thu Aug 23, 2012 11:47 pm

Absolute positioning of figure

Post by CJFugate »

I've only used floats to postion my figures. One of my figures looks something like this is my document -

This is a sentence at the very top of the page in my document
***************************************************************
* *
* Figure *
***************************************************************
which was cut in half by the figure and continues below the figure.

I would like to push the figure to the top of the page so it doesn't cut that sentence in half. Is there an easy way to do that?

Thanks!

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Absolute positioning of figure

Post by localghost »

In order not to part the sentence you should leave a blank line before and after the float environment. And appropriate placement parameters will do the rest.

Code: Select all

Preceding Text.

\begin{figure}[!ht]
% figure content
\end{figure}

Following Text.
Further reading:

Thorsten
Post Reply