[XeTeX] tikz incompatible with xcolor's option dvipsnames ?

Manuel Souto Pico m.soutopico at gmail.com
Fri Aug 3 21:54:57 CEST 2007


Hi,

There seems to be an incompatibility between the lines

\usepackage[usenames,dvipsnames]{xcolor}

and

\usepackage{tikz}

I could get colors like RedBrick until I started using the package
tikz. Does this happen to everyone?

I compile my document with TeXShop with the command XeLaTeX-xdvipdfmx.
A simplified document in which this problem happens is here:

%!TEX TS-program = xelatex (percetange, admiration, etc.)
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper,10pt,oneside]{report}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz}  % incompatible with %\usepackage[usenames,dvipsnames]{color}
\newcommand\target[1]{\fcolorbox{red}{white}{#1}} % red!50
%%% FONTS
\usepackage{fontspec}% provides font selecting commands
\usepackage{xunicode}% provides unicode character macros
\usepackage{xltxtra} % provides some fixes/extras
\setromanfont{Palatino}%Times Roman}

\begin{document}
\target{red box}		
\end{document}

and the console's message is:

This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
entering extended mode
(./prova_tikz_color.tex
LaTeX2e <2005/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/local/teTeX/share/texmf.local/tex/latex/base/report.cls
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.local/tex/late! Undefined control sequence.
<argument> ...v \@temptokena \expandafter {\@@col
                                                  }\csname color@\@@cls \exp...
l.20 ...olor{named}{Yellow}        {cmyk}{0,0,1,0}

? x/base/size10.clo))
(/usr/local/teTeX/share/texmf.tetex/tex/latex/xcolor/xcolor.sty
(/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/color.cfg)
(/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/xetex.def)
(/usr/local/teTeX/share/texmf.local/tex/latex/graphics/dvipsnam.def
! Undefined control sequence.
<argument> ...v \@temptokena \expandafter {\@@col
                                                  }\csname color@\@@cls \exp...
l.19 ...amed}{GreenYellow}   {cmyk}{0.15,0,0.69,0}

?

I'd be grateful for any comments.

King regards, Manuel


More information about the XeTeX mailing list