[texhax] Color typing in TeXShop

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu May 26 17:04:56 CEST 2011


On Wed, May 25, 2011 at 04:20:04PM -0700, Aldo da Rosa wrote:

> In a coming book, I need some text in color. However, every time I type in
> the preamble \usepackage{color}, I get the error message "Undefined
> control sequence".

The error message also tells you the control sequence.
Example:

\documentclass{article}
\newcommand*{\test}{\foo}
\begin{document}
\foo
\test
\end{document}

| ! Undefined control sequence.
| l.4 \foo
|         
| ? 
| ! Undefined control sequence.
| \test ->\foo 
|              
| l.5 \test
|          
| ? 

Check the .log file.

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list