14

Possible Duplicate:
Option clash with xcolor and TikZ

The following is my MWE:

\documentclass{article}

\usepackage{tikz}

\usepackage[table]{xcolor}

\begin{document}
Hi!
\end{document}

The document compiles fine if I just remove the xcolor package. If I include it (as shown in the MWE) I get the error Option clash for package xcolor. How should I resolve this issue? What might be the options settings that will remove the conflict?

Shashank Sawant
  • 6,557
  • 11
  • 37
  • 49
  • 2
    Solved the problem by moving xcolor before tikz. Ref: http://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips – Shashank Sawant Oct 01 '12 at 18:56
  • 1
    By commenting out your packages one by one, compiling, and checking if the error persists, I turned your "MWE" into a true minimal working example. Please do this yourself before posting a question. – doncherry Oct 01 '12 at 18:59

1 Answers1

31
\PassOptionsToPackage{table}{xcolor}
\documentclass{article}
...
\usepackage{tikz}

or as an alternative:

\documentclass{article}
...

\usepackage{colortbl}
\usepackage{tikz}