# Too many unprocessed floats with marginpar

I'm updating my CV, which is written by modifying this template. I have always been very happy with the result, but now I'm getting a Too many unprocessed floats error.

For those who do not want to have a look at the template, it basically works like this. In the preamble I have a command

\newcommand{years}[1]{\marginpar{\scriptsize #1}}
...
\begin{document}
\reversemarginpar

which one then uses like

\section*{Seminars}
\years[2005]Blah blah...
\\
\years[2007]Blah blah blah..

The problem is, when I insert the 10th item, I get the Too many unprocessed floats error.

Inserting a clearpage is not an option, since it would just leave half page empty. Also, doing a major change to the CV, like switching to another template or using a CV class is not an option either. I have tried many different ways to write my CV; it always takes time to switch, and I need to compile it soon. Moreover I'm very happy with this template.

Is there a way to increase the number of floats that LaTeX can handle?

-

The package morefloats doubles the number of floats that can be handled.

-
Wow, you saved my day! –  Andrea Aug 13 '10 at 12:08
See this answer in case also the etex package is used. –  egreg Jan 7 '12 at 10:09
"The package morefloats doubles the number of floats" by default. You can also say \usepackage[maxfloats=25]{morefloats} or \usepackage[morefloats=7]{morefloats} to get 18+7=25 floats. maxfloats between 18 and 266, at least for a recent version: 2011/07/10 v1.0e. –  Stephen Jan 7 '12 at 10:11
Make that 256 instead of 266 (my mistake, sorry). –  Stephen May 7 '12 at 16:04

I did not know about the morefloats package, but I'll try using it to solve my problem.

To solve that problem there is another solution, but in theory not a very good one although it does work great:

Just use [H] instead of [htbp] as float specifier. What happens is that LaTeX stops freaking out with too many unprocessed floats.

-
"However, if your floats can’t be placed anywhere [e.g. because it is just too large for the page], extending the number of floats merely delays the arrival of the inevitable error message." (ctan.org/pkg/morefloats) –  Stephen Jan 7 '12 at 10:24