# How to resolve option clash for package xcolor? [duplicate]

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?

-

## marked as duplicate by doncherry, percusse, N.N., Gonzalo Medina, Heiko OberdiekOct 1 '12 at 19:33

Solved the problem by moving xcolor before tikz. Ref: en.wikibooks.org/wiki/LaTeX/… –  Shashank Sawant Oct 1 '12 at 18:56
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 1 '12 at 18:59

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


or as an alternative:

\documentclass{article}
...

\usepackage{colortbl}
\usepackage{xcolor}

-