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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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: 10360
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