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.

I am working off a template. I recently updated my TeXLive from 2009 to 2012. One issue I am having is with the following like

\usepackage[usenames,dvipsnames]{color}

When I use this I get now numerous errors. Errors that didn't exist when I use xeLaTeX in TeXLive 2009. The errors look like:

) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/share/texmf/tex/latex/tipa/t3enc.def
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))

! LaTeX Error: Option clash for package color.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

If I change the package name color to xcolor it fixes the issue. Why is this?

MWE:

% compile with xelatex
\documentclass[11pt]{article}
\usepackage{fancyhdr}                   % url not needed if hyperref used
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage[usenames,dvipsnames]{color}
\usepackage{hyperref}                   % added to generate the error message
\begin{document}
\texttt{\href{mailto:bob@gmail.com}{bob@gmail.com}}
\end{document}
share|improve this question

closed as too localized by Stefan Kottwitz Feb 2 '13 at 15:08

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
This question is very similar to When to use the xcolor package instead of the color package?. Please take a look at it as the information there might help you. If so, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find answers quickly. –  doncherry Jan 11 '13 at 3:04
    
That questions answers one of my questions. I still would like to learn if possible why it fails with color but works fine with xcolor. –  Bobdul Jan 11 '13 at 3:11
1  
@Bobdul can you provide a complete MWE for folks to play with? –  cmhughes Jan 11 '13 at 3:36
    
@cmhughes please see OP. I added it there for formatting –  Bobdul Jan 11 '13 at 3:48
1  
Probably, one of the packages implicitly loads color package before you load it explicitly and that creates an option clash. –  percusse Jan 11 '13 at 3:59
show 1 more comment

Browse other questions tagged or ask your own question.