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?

  • \usepackage{endfloat}
    – user2478
    Oct 15, 2013 at 20:24
  • That gave me an !Undefined control sequence error for \@makechapterhead...ent 0pt \vss \chaptitlesize
    – Peter Flom
    Oct 15, 2013 at 20:34
  • 1
    Left in the floats as many options as possible (e.g. [htbp!]), increase the default number of floats allowed in top/bottom/per page, decrease the % of text allowed. Please see tex.stackexchange.com/questions/39017/…
    – Fran
    Oct 12, 2014 at 21:15

1 Answer 1


Use the following instruction in the preamble:


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.

  • 1
    Thanks. What do I have to do in the main part of text? Also, I tried with [subsection] and it said that option is not defined in placeins
    – Peter Flom
    Oct 15, 2013 at 20:30
  • 1
    @PeterFlom - You're right about the subsection option not working; I'll correct that in my answer. If the package is loaded with the section option, there's nothing you need to do further. You could, if you wanted, still insert \FloatBarrier commands wherever you saw fit. (FloatBarrier is a command provided by the placeins package.)
    – Mico
    Oct 15, 2013 at 20:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .