Graphics, Figures & Tablesgraphicx: figure pushed to next page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gregalan
Posts: 2
Joined: Thu Jul 19, 2018 4:03 pm

graphicx: figure pushed to next page

Post by gregalan »

Quick question: When I use the code

\includegraphics[width=14cm,height=8cm]{Figure1}

the figure is inserted nicely into the text and fits well inside the page. However, if I use

\begin{figure}[!ht]
\includegraphics[width=14cm,height=8cm]{Figure1}
\end{figure}

the figure is pushed to the next page. Rescaling to a smaller size makes no difference. I'd like to use begin-end syntax so I can have figure labels, but am just giving the bare bones here. Any thoughts?

Thanks, Gregalan

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

gregalan
Posts: 2
Joined: Thu Jul 19, 2018 4:03 pm

graphicx: figure pushed to next page

Post by gregalan »

I think I know what's happening. I was using an APA style shell, which I think pushes figures to the end of a document. Sorry to waste space.

Gregalan
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

graphicx: figure pushed to next page

Post by Stefan Kottwitz »

Hi Gregalan,

welcome to the forum!

Thanks for posting your solution. Posting a problem and the solution is always good since people can find it when searching for the same issue. Here is enough space. ;)

In this case it can be pushed to the next page since bottom placement is not allowed, only here and top (ht). Try [!htbp] for most flexible placement of figures.

Stefan
LaTeX.org admin
Post Reply