Graphics, Figures & TablesFixing image position, [h] doesn't work

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
texter
Posts: 1
Joined: Thu Apr 20, 2017 9:44 pm

Fixing image position, [h] doesn't work

Post by texter »

Hi all,

Here's the usual code

Code: Select all

\begin{figure} [H]
\centering
\includegraphics[scale=0.45]{ncurve.jpg}
\caption{tata}
\label{fig:ts}
\end{figure}
including the

Code: Select all

float
package

But the result is the image at any other place, followed by [H]. What's happening? Thank you

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

Stefan Kottwitz
Site Admin
Posts: 10329
Joined: Mon Mar 10, 2008 9:44 pm

Fixing image position, [h] doesn't work

Post by Stefan Kottwitz »

Welcome to the forum!

Simply remove the space before [H]. Because of the space, the table does not see it it option.

Stefan
LaTeX.org admin
Post Reply