Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 14 down vote accepted

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

share|improve this answer
    
Wow, you saved my day! –  Andrea Aug 13 '10 at 12:08
1  
See this answer in case also the etex package is used. –  egreg Jan 7 '12 at 10:09
1  
"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.

share|improve this answer
    
"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

You can replace the definition of the \years command by something like the following:

\newcommand{\years}[1]{\makebox[0pt][l]{\hskip-.6in{\scriptsize #1}}}

If you need to introduce line breaks within the years, something slightly more complicated is needed. Then you might want to consider using \parbox and \raisebox in the definition of the \years command, but this shouldn't usually be necessary.

Since you are not using any floats anymore, LaTeX will stop complaining.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.