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.

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?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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
add comment

1 Answer

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

or as an alternative:

\documentclass{article}
...

\usepackage{colortbl}
\usepackage{xcolor}
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.