TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I use pdfLaTeX to compile this document:



I get the following error:

[Loading MPS to PDF converter (version 2006.09.02).] ) ! Too many }'s. \color@endbox ->\color@endgroup \egroup l.10 \end{figure} ?

Can anyone tell me how I can avoid this?

P.S. I removed the complete stdout, which can be found by looking at previous edits; I can re-post if it contains pertinent information


The error does not seem to be that I did not use graphicx, when I got rid of files from previous. compilations, the error when graphicx is not included is:

No file foo.aux. ! Undefined control sequence. \includegraphics l.8 \includegraphics [width=0.5\textwidth]{foo1.pdf}

I have changed the example file to include what is required to make the compilation fail when the document is run from a directory that is empty of files (like foo.aux) produced by previous pdflatex compilations

share|improve this question
up vote 12 down vote accepted

You did not load the graphicx package, though you're using \includegraphics. That's why the compilation should fail.

Regarding doublespace, this package is obsolete, it has serious bugs as the description on CTAN says. Better use setspace instead.

share|improve this answer
setspace solved the issue. – David LeBauer Nov 16 '10 at 3:04

Your Answer


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.