[XeTeX] Unknown option `xetex' for package `color'

Bruno Voisin bvoisin at mac.com
Sun Mar 13 03:41:59 CET 2005


Le 12 mars 05, à 18:14, Paolo Matteucci a écrit :

> after a while I hadn't touched XeTeX, yesterday I installed release 
> 0.93 and (before that) the latest version of TeX Live 2004 (stable).
>
> All the XeTeX sample files seem to work fine except [the ones I don't 
> have all the fonts for -obviously- and] PicFileLSample.ltx, which 
> returns the error above (the log file is attached).
>
> Now, I'm sure this is something trivial to do with my 
> installation/cofiguration and kind of remember that a similar problem 
> occurred to someone else in the past, but was unable to find the 
> relevant messages in the archive, so I thought I'd be lazy and ask 
> you.  ;-)

There's something wrong in your installation: at no point in your .log 
file has the directory /usr/local/teTeX/share/texmf.local, where most 
of XeTeX support files are installed, been searched. Running "sudo 
texhash" in Terminal might fix this, but that still doesn't explain why 
the problem has occurred. Possibly an incompatibility between the 
designs of TL2003, TL2004 and XeTeX. A lot of care has gone into the 
installers scripts to take care of all issues, but bugs may remain. I 
would recommend backing up your additions to texmf.local, if any, 
uninstalling the TeX i-Package, verifying that the directory 
/usr/local/teTeX has been removed completely, then reinstalling TeX and 
finally XeTeX. Probably an overkill, but who knows... (Addendum: see 
below first)

As to the error message, it follows:

> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.sty
> Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.cfg
> File: color.cfg 2005/02/03 v1.3 color configuration of teTeX/TeXLive
> )
>
> ! LaTeX Error: Unknown option `xetex' for package `color'.

which indicates XeLaTeX has used the standard version of the graphics 
package inside /usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/ 
instead of using the modified version inside 
/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/.

Wait: I'm thinking of something else. Do you have a customized version 
of texmf.cnf inside ~/Library/texmf/, or did you modify the one in 
/usr/local/teTeX/? The design of the XeTeX directories has changed with 
the latest releases. texmf.cnf (by default /usr/local/teTeX/texmf.cnf), 
if properly installed, should contain the lines:

> % XeTeX
> TEXINPUTS.xelatex =	.;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}//
> TEXINPUTS.xetex   =	.;$TEXMF/{xetex,tex}/{xetex,plain,generic,}//

Appended below is the content of PicFileLSample.log in my case.

Hope this helps,

Bruno Voisin

> This is XeTeX, Version 3.141592-2.2-0.93 (Web2C 7.5.3) (format=xelatex 
> 2005.3.10)  13 MAR 2005 03:37
> entering extended mode
> **PicFileLSample.ltx
> (./PicFileLSample.ltx
> LaTeX2e <2003/12/01>
> Babel <v3.8d> and hyphenation patterns for american, british, french, 
> german, n
> german, dutch, italian, norsk, portuges, spanish, swedish, 
> nohyphenation, loade
> d.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size12.clo
> File: size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
> )
> \c at part=\count79
> \c at section=\count80
> \c at subsection=\count81
> \c at subsubsection=\count82
> \c at paragraph=\count83
> \c at subparagraph=\count84
> \c at figure=\count85
> \c at table=\count86
> \abovecaptionskip=\skip41
> \belowcaptionskip=\skip42
> \bibindent=\dimen102
> )
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty
> Package: amsmath 2000/07/18 v2.13 AMS math features
> \@mathmargin=\skip43
>
> For additional information on amsmath, use the `?' option.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty
> Package: amstext 2000/06/29 v2.01
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty
> File: amsgen.sty 1999/11/30 v2.0
> \@emptytoks=\toks14
> \ex@=\dimen103
> ))
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty
> Package: amsbsy 1999/11/29 v1.2d
> \pmbraise@=\dimen104
> )
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty
> Package: amsopn 1999/12/14 v2.01 operator names
> )
> \inf at bad=\count87
> LaTeX Info: Redefining \frac on input line 211.
> \uproot@=\count88
> \leftroot@=\count89
> LaTeX Info: Redefining \overline on input line 307.
> \classnum@=\count90
> \DOTSCASE@=\count91
> LaTeX Info: Redefining \ldots on input line 379.
> LaTeX Info: Redefining \dots on input line 382.
> LaTeX Info: Redefining \cdots on input line 467.
> \Mathstrutbox@=\box26
> \strutbox@=\box27
> \big at size=\dimen105
> LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
> LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
> \macc at depth=\count92
> \c at MaxMatrixCols=\count93
> \dotsspace@=\muskip10
> \c at parentequation=\count94
> \dspbrk at lvl=\count95
> \tag at help=\toks15
> \row@=\count96
> \column@=\count97
> \maxfields@=\count98
> \andhelp@=\toks16
> \eqnshift@=\dimen106
> \alignsep@=\dimen107
> \tagshift@=\dimen108
> \tagwidth@=\dimen109
> \totwidth@=\dimen110
> \lineht@=\dimen111
> \@envbody=\toks17
> \multlinegap=\skip44
> \multlinetaggap=\skip45
> \mathdisplay at stack=\toks18
> LaTeX Info: Redefining \[ on input line 2666.
> LaTeX Info: Redefining \] on input line 2667.
> )
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amssymb.sty
> Package: amssymb 2002/01/22 v2.2d
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amsfonts.sty
> Package: amsfonts 2001/10/25 v2.2f
> \symAMSa=\mathgroup4
> \symAMSb=\mathgroup5
> LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version 
> `bold'
> (Font)                  U/euf/m/n --> U/euf/b/n on input line 132.
> ))
> \c at theorem=\count99
> \c at definition=\count100
>
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/color.sty
> Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
>
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/color.cfg
> File: color.cfg 2005/02/25 v1.3a color configuration of teTeX/TeXLive, 
> extended
>  for XeTeX
> )
> Package color Info: Driver file: xetex.def on input line 127.
>
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/xetex.def
> File: xetex.def 2004/05/09 v0.7 LaTeX color/graphics driver for XeTeX 
> (RRM)
>
> ...supports rotation and scaling
> ) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvipsnam.def
> File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> ))
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty
> Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty
> Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
> \KV at toks@=\toks19
> )
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/graphics.sty
> Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty
> Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
> )
> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/graphics.cfg
> File: graphics.cfg 2005/02/25 v1.3a graphics configuration of 
> teTeX/TeXLive, ex
> tended for XeTeX
> )
> Package graphics Info: Driver file: xetex.def on input line 82.
> )
> \Gin at req@height=\dimen112
> \Gin at req@width=\dimen113
> )
> No file PicFileLSample.aux.
> \openout1 = `PicFileLSample.aux'.
>
> LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 
> 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 
> 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 
> 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 73.
> LaTeX Font Info:    ... okay on input line 73.
> LaTeX Font Info:    Try loading font information for U+msa on input 
> line 75.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsa.fd
> File: umsa.fd 2002/01/19 v2.2g AMS font definitions
> )
> LaTeX Font Info:    Try loading font information for U+msb on input 
> line 75.
>
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsb.fd
> File: umsb.fd 2002/01/19 v2.2g AMS font definitions
> ) [1
>
> ]
> File: xetex.jpg Graphic file (type QTm)
>
> <use  "xetex.jpg">
> File: xetex.jpg Graphic file (type QTm)
>  <use  "xetex.jpg"> [2]
> File: xetex.jpg Graphic file (type QTm)
>  <use  "xetex.jpg">
> File: xetex.jpg Graphic file (type QTm)
>
> <use  "xetex.jpg">
> File: xetex.jpg Graphic file (type QTm)
>  <use  "xetex.jpg"> [3] (./PicFileLSample.aux) )
> Here is how much of TeX's memory you used:
>  1675 strings out of 95770
>  20328 string characters out of 1189088
>  2064874 words of memory out of 4519677
>  4761 multiletter control sequences out of 10000+50000
>  11382 words of font info for 48 fonts, out of 2000000 for 2000
>  66 hyphenation exceptions out of 1000
>  27i,8n,24p,230b,189s stack positions out of 
> 5000i,500n,6000p,200000b,40000s
>
> Output written on PicFileLSample.pdf (3 pages).



More information about the XeTeX mailing list