Graphics, Figures & TablesAutomatic figures layout

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
edwin
Posts: 1
Joined: Thu Jan 08, 2009 6:22 pm

Automatic figures layout

Post by edwin »

Hi. Is there any way to do the following:

- there is a file with all figures 'all-figures.tex'
- there is a main file of the article 'article.tex'
- 'article.tex' includes 'all-figures.tex' in the end

If everything is left in that way, then all figures will appear in the last pages.
The question is:
Can I include 'all-figures.tex' in the beginning of the article and force latex to place figures only after first reference to them in the text?

I have read about all possbile policies for floats layout but I have not found anything smart like this.

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

corderin
Posts: 77
Joined: Sun Dec 14, 2008 2:27 pm

Re: Automatic figures layout

Post by corderin »

Using the float package (\usepackage{float}), you can place the figure exactly where want with the command [H] instead of the usually used [h], [t], or [p].

But I guess you won´t manage to do what you want. I would cut and paste the figure environment exactly where you want and use the [H].

:-)
Post Reply