## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ graphicx: figure pushed to next page Topic is solved

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

### graphicx: figure pushed to next page  Topic is solved

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

gregalan
Posts: 2
Joined: Thu Jul 19, 2018 4:03 pm
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

Stefan Kottwitz
Posts: 9281
Joined: Mon Mar 10, 2008 9:44 pm
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
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8912968635559082, "perplexity": 3169.7990352581487}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-09/segments/1550247496855.63/warc/CC-MAIN-20190220230820-20190221012820-00430.warc.gz"}