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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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