[Tex/LaTex] Lots and lots of floats

floatsgraphics

I am working on a book on statistical graphics. Needless to say, it has many many figures/floats. I was (at least as a temporary measure) dumping them all at the end, but even this eventually failed and I had to use a \clearpage . This combination is not good, as it leads to 15 pages of text, 15 pages of floats and then more text.

Is there a way to automatically dump all floats at the end of each section or subsection?

Best Answer

Use the following instruction in the preamble:

\usepackage[section]{placeins}

This will prevent floats encountered in one section from being typeset after the next \section command is encountered.

Using this instruction doesn't "dump" all accumulated floats at the very end of the current section: some floats might get typeset before the end of the section.