# Too many unprocessed floats

I'm trying to a large number of figures. The code is

\begin{figure}
\includegraphics[scale=0.5]{m2T4.pdf}
\caption{M2T, Problem Size 513}
\end{figure}


I'm not able to compile, I get the error

! LaTeX Error: Too many unprocessed floats.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.113 \includegraphics
[scale=0.5]{m2T4.pdf}
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
\@float@Hx ...ltovf \fi \global \setbox \@currbox
\color@vbox \normalcolor \...
l.113 \includegraphics
[scale=0.5]{m2T4.pdf}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
\vbox
l.113 \includegraphics
[scale=0.5]{m2T4.pdf}
A number should have been here; I inserted 0'.
(If you can't figure out why I needed to see a number,
look up weird error' in the index to The TeXbook.)
.5>, but at most version <1.4> allowed
<m2T4.pdf, id=1121, 538.28104pt x 212.1526pt>
File: m2T4.pdf Graphic file (type pdf)
<use m2T4.pdf>

-
you may want to take a look at the theory behind it at tex.stackexchange.com/questions/39017/… –  Frank Mittelbach Mar 2 '12 at 16:41
Thanks Frank !! –  pravinkenator Mar 3 '12 at 6:21

You can use the command \clearpage. This prints all floats that are not yet placed and starts a new page.

-
Thanks a lot it helped ! –  pravinkenator Mar 2 '12 at 15:53
works AWESOME!! –  Charlie Jul 10 '13 at 22:53
Hi, where is supposed I must put the \clearpage command. –  sgmart Jan 30 at 19:56
I got it! Thanks so much. –  sgmart Jan 30 at 20:00
where do you put \clearpage ? –  M.P. Feb 26 at 15:36
Try the morefloats` package. From the README: