LaTeX Error: Too many unprocessed floats
Figures and tables are queued faster than LaTeX can place them, often behind one that cannot be placed. Relax placements, shrink it, or add \clearpage.
Help centre › LaTeX errors › Floats and layout · Error: the build stops or the output is wrong
What the log says
! LaTeX Error: Too many unprocessed floats.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.13 \tenplots\tenplots\tenplots\tenplotsWhat it means
LaTeX holds floats that it has not yet placed in a queue of limited size. Floats of one type are placed in order, so when one figure cannot be placed, every figure after it waits too. When the queue is full, LaTeX stops with this error. The cause is usually one float that cannot go anywhere, or a long run of floats with little text between them.
Causes and fixes
Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.
1. One float cannot be placed, and all later ones wait behind it
A figure taller than the page, or one restricted to [t] that is taller than the top area allows (by default 70% of the page), never fits and blocks the queue. Make it smaller than the text height and give it more choices with [htbp] (or [p] for a page of its own).
\documentclass{article}
\usepackage{lipsum}
% a small figure followed by text, sixty times
\newcommand\plot{\begin{figure}[t]\centering
\rule{4cm}{2cm}\caption{A plot.}\end{figure}\lipsum[1-3]}
\newcommand\tenplots{\plot\plot\plot\plot\plot\plot\plot\plot\plot\plot}
\begin{document}
\begin{figure}[t]
\centering
\rule{4cm}{1.1\textheight}
\caption{A figure too tall for the page.}
\end{figure}
\tenplots\tenplots\tenplots\tenplots\tenplots\tenplots
\end{document}\documentclass{article}
\usepackage{lipsum}
% a small figure followed by text, sixty times
\newcommand\plot{\begin{figure}[t]\centering
\rule{4cm}{2cm}\caption{A plot.}\end{figure}\lipsum[1-3]}
\newcommand\tenplots{\plot\plot\plot\plot\plot\plot\plot\plot\plot\plot}
\begin{document}
\begin{figure}[htbp]
\centering
\rule{4cm}{0.8\textheight}
\caption{A figure that fits on the page.}
\end{figure}
\tenplots\tenplots\tenplots\tenplots\tenplots\tenplots
\end{document}2. Many floats in a row with little text between them
An appendix of thirty figures, each with [h] or [t], fills the queue before pages fill. Put \clearpage every few figures (it places all waiting floats), or load the placeins package and use \FloatBarrier at the end of each section.
3. The queue really is too small
If every float can be placed and there are simply many at once, enlarge the queue with \extrafloats{100} in the preamble (or the morefloats package on older installations).
In Manulyx
The editor shows the error with an explanation; the line it points to is where the queue overflowed, so look for the first float above it that has not appeared in the PDF.
Write in Manulyx for free · Journal templates
More in floats and layout
- LaTeX Error: There's no line here to endA line break (\\ or \newline) comes where no line has started, typically after a blank line. Use \vspace or \medskip for vertical space.
- LaTeX Error: Not in outer par modeA figure, table or \marginpar is inside a box, minipage, table cell or another float. Floats must be in the main text; put the box inside the float.
- Overfull \hbox (<n>pt too wide) in paragraph at lines <a>--<b>A line sticks out into the margin because TeX found no acceptable place to break it: a long URL or word, or an image or equation wider than the column.
- Underfull \hbox (badness <n>) in paragraph at lines <a>--<b>A line had to be stretched more than TeX likes, leaving wide gaps between words. Usually caused by \\ or \linebreak in running text.
- LaTeX Warning: Float too large for page by <n>pt on input line <n>.A figure or table is taller than the text area, so it overprints the footer or runs off the page. Scale it to fit, or split a long table.
- Dimension too large.A length went past TeX's limit of about 16383pt (5.75 m). Usually a TikZ plot with large coordinates or a scale factor gone wrong.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors