Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

Moving tables and figures in LaTeX

Tables and figures have a tendency to surprise, by floating away from where they were specified to appear. This is in fact perfectly ordinary document design; any professional typesetting package will float figures and tables to where they’ll fit without violating the certain typographic rules. Even if you use the placement specifier ”h” (for ‘here’), the figure or table will not be printed ‘here’ if doing so would break the rules; the rules themselves are pretty simple, and are given on page 198, section C.9 of the LaTeX manual. In the worst case, LaTeX’s rules can cause the floating items to pile up to the extent that you get an error message saying “Too many unprocessed floats”. What follows is a simple checklist of things to do to solve these problems (the checklist talks throughout about figures, but applies equally well to tables, or to “non-standard” floats defined by the float or other packages).

afterpage.sty
Distributed as part of macros/latex/required/tools (or browse the directory); catalogue entry
endfloat.sty
macros/latex/contrib/endfloat (or browse the directory); catalogue entry
etex.sty
macros/latex/contrib/etex-pkg (or browse the directory); catalogue entry
flafter.sty
Part of the LaTeX distribution
float.sty
macros/latex/contrib/float (or browse the directory); catalogue entry
morefloats.sty
macros/latex/contrib/morefloats (or browse the directory); catalogue entry
placeins.sty
macros/latex/contrib/placeins (or browse the directory); catalogue entry


Go to previous question, or next question

Go to FAQ home.

URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floats

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.27, released on 2013-06-07.