# Force floats to be typeset after their occurrence in the source text?

AFAIK a figure or table should always be placed after the first reference to it in the text.

So I always place the code for my figures and tables after the paragraph which contains the first reference \ref to them. When I then use the command \begin{figure}[t], it is possible that the figure is placed at the top of the same page where it is referenced, so IMHO that is against the rule mentioned above.

• Is there a way to force pdflatex to place the floats after the paragraph which precedes them in the source text?
(so in my example that would be at the top of the following page or later)
-

You could try with the flafter package:
\usepackage{flafter}

+1 I was just going to give the same answer :-) Note that the flafter package will make sure that the floats are not placed before their definition, e.g. the figure or table environment, not where it was first \ref-erenced. So you need to place this environments close to the first \ref to make it work. Also check out the TeX FAQ for this. – Martin Scharrer Apr 13 '11 at 11:48