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.

When I use pdfLaTeX to compile this document:

\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{doublespace}
\usepackage{todonotes}
\begin{document}

\begin{figure}
\includegraphics[width=0.5\textwidth]{foo1.pdf}
\end{figure}
\end{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

update

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
add comment

1 Answer

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 Nov 16 '10 at 3:04
add comment

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.