[fptex] Using color package with pdftex

Guy Worthington guyw@multiline.com.au
29 Nov 2001 11:01:04 +0800


With the following tex source code I get an error.

%--------------------------------------------------
\input miniltx
\makeatletter
\def\Gin@driver{pdftex.def}
\input color.sty
\resetatcatcode

\textcolor{red}{a little red}
\textcolor{blue}{a little blue}

\bye
%--------------------------------------------------

The log file is attached below:

--------------------------------------------------
c:/Documents and Settings/guyw/My Documents/TeX/OntoJava $ pdfetex trycolor
This is pdfeTeX, Version 3.14159-1.00a-pretest-20010806-2.1 (Web2c 7.3.3.1)
entering extended mode
(./trycolor.tex{c:/Local/TeX/texmf-var/pdftex/config/pdftex.cfg}
(c:/Local/TeX/texmf/tex/plain/plgraph/miniltx.tex)
(c:/Local/TeX/texmf/tex/latex/graphics/color.sty
(c:/Local/TeX/texmf-local/tex/latex/texlive/color.cfg)
(c:/Local/TeX/texmf-local/tex/latex/graphics/pdftex.def
(c:/Local/TeX/texmf/tex/context/base/supp-pdf.tex
(c:/Local/TeX/texmf/tex/context/base/supp-mis.tex
loading : Context Support Macros / Missing
)
loading : Context Support Macros / PDF
)))
! Undefined control sequence.
\color ->\if@inlabel 
                     \leavevmode \fi \@ldc@l@r 
\@textcolor #1#2#3->\protect \leavevmode {\color 
                                                 #1{#2}#3}
l.7 \textcolor{red}{a little red}
                                 
? 
--------------------------------------------------

If I comment out the line in pdftex.def which contains the \if@label
commmand, the file will run to completion.

(I think I'm using the latest pdftex.def, it has the following id:
\ProvidesFile{pdftex.def}[2001/09/01 v0.03h graphics/color for pdftex])