[Univ of Cambridge] [Dept of Engineering]

Hints about tables and figures in LaTeX

Moving tables and figures in LaTeX

(from the TeX Users Group FAQ)

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"; this means that the limited set of registers in which LaTeX stores floating items is full. 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).

by Donald Arseneau, Piet van Oostrum et al from comp.text.tex

More tables and graphics on a page

By default, LaTeX only allows up to 3 floats taking up to 0.7 of the page to be on a text page. There are no such limits on figures placed on a `float page' (a page with floats but no regular text), but LaTeX will not create a float page unless it can cover half of it with floats. This behaviour can be changed by placing lines like the following before \begin{document}
\renewcommand\floatpagefraction{.9}
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.9}
\renewcommand\textfraction{.1}   
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
The following variables control the vertical spacing with figures
\floatsep     separation between floats on a page with text
\intextsep    separation between floats and the text
plus the hidden parameters for float pages:
\@fptop       space at top of float page
\@fpbot       space at bottom of float page
\@fpsep       space between floats on a float page
The vertical space between a graphic and the caption below it is \abovecaptionskip (10pt default) and the vertical space below a caption is \belowcaptionskip (0pt).
[LaTeX] [Help]

Updated on 18th November, 1997
tpl@eng.cam.ac.uk