This is really interesting. In any editor or formatting language I ever used images and text would appear in the order in which you have entered them. Not so much in LaTeX. I have a following figure:
Blah blah blah:
\begin{figure}[htb]
\centering
\includegraphics[scale=0.8]{image.eps}
\caption{this is image}
\end{figure}
blah blag. Blah.
These are in the document headers:
\usepackage{graphicx}
\usepackage{grffile}
\usepackage[outdir=./]{epstopdf}
And the image jumps to the end of the end of my PDF, leaving the text like this:
Blah blah blah: blah blag. Blah.
Which looks stupid. The image looks stupid too, so alone at the end:
- Why does LaTeX do this and in which cases it's a good thing?
- How to prevent it when it's not a good thing?
\includegraphics
the moving of afigure
environment is unrelated to the image, the only purpose of that environment is to tell latex it can move it to help with page breaking. The[htb]
option you used restricts the places the float can be placed, so makes it more likely to go to the end[htb]
location specifiers and see if that helps.