Graphics, Figures & Tables ⇒ Images appear in random places!?
Images appear in random places!?
I insert pictures via the menu bar into my text, when I render to pdf I get one or two images in the right position, but then other ones just disappear and pop up pages later completely arbitrary as it seems. When I compile I do not get any error messages.
Has anybody got any idea how this can happen? Very frustrating. Here is how I embedd them. This one works once, then I do it again a few lines later and it doesnt. Makes no sense!
\begin{figure}[hp]
\centering
\includegraphics[scale=0.50]{D:/MSc/Project/images/AI/images/gaussian.jpg}
\label{fig:gaussian_blur}
\end{figure}
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
Images appear in random places!?
The placement commands are (copied from lshort):
h = here at the very place in the text where it occurred. This is useful mainly for small floats.
t = at the top of a page
b = at the bottom of a page
p = on a special page containing only floats.
! = without considering most of the internal parameters, which could stop this float from being placed. (Basically tells it to try harder to place it where you next say to.)
If you list more than one, it tries one, and if I can't do it, it then tries the next option. So \begin{figure}[!hb] will try really hard to place it here, and if that doesn't work, it'll then try to place it at the bottom of the page, and so on.
Re: Images appear in random places!?
However I still have a strange issue with the centering othe images - they seem to be centered in most cases but not if I am in a subsection and two /begin{enumerate} down, i.e.
Section 1 - image centers fine
Section\Subsection 1.1 - image centers fine
Section\Subsection 1.1\Item 1 - image centers fine
Section\Subsection 1.1\Item 1\Item a - image is leftbound?
How do I always get it to be at the center of the page, no matter what section i am in?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Images appear in random places!?
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10