Graphics, Figures & Tablesimages in a wrong order

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
colino
Posts: 4
Joined: Tue May 21, 2013 12:59 pm

images in a wrong order

Post by colino »

Hi,
i'm a beginner with Latex, i have the following problem:

in source, i put images in an order but when i compile to pdf, this order disappear and images appear before or after the position i need
How can i solve the problem?

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

images in a wrong order

Post by Stefan Kottwitz »

Hi Colino,

welcome to the forum!

If you simply use \includegraphics, the image would appear exactly at the position where you used that command.

However, if you use a {figure} environment: this is a so called floating environment, LaTeX chooses a position for you which is the best regarding page layout and page breaking. If you don't want it, don't use it. The way of floating can be adjusted. You understand, that automatic positioning of figures can be very useful in big documents such as books - just imagine you absolutely positioned a figure, and insert something at the beginning, the figure hasn't space on a page any more, goes to the next page, leaving much empty space, affecting following pages and figures ... the LaTeX figure concept prevents this. One just has to understand it.

Have a look at LaTeX Resources for Beginners and read some introductions or a tutorial to understand the concept of floating figures.

Stefan
LaTeX.org admin
Post Reply