TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the tikz package to draw some diagrams. In addition, I need the color package for some highlighting. As the wikibooks page of the color package states, it has to be used before the tikz package. I did this and am now ending up with a huge amount of

Package xcolor Warning: Incompatible color definition on line xxx

Where xxx stand for many many lines, I don't control.

Any ideas of fixing this?

A working example:


\lstdefinelanguage{constraints} {
    keywords = {undefined, terminate, peephole\-constraint, temporal\-constraint, condition, rationale, result, filter, sequence, link, isParent, contains, distance, state, startsWith},
    ndkeywords={FAIL, FAIL_FINAL, PASS, PASS_FINAL, source, origin, sourceType, originType, operation, parameters},

Text above.\\

temporal-constraint observe-value {
  rationale {
  sequence {
    a << b << terminate
  filter a {
    operation == 'observe'
  filter b {
    operation == 'value'
    &&  parameters.value != undefined
  link {
      a.parameters.name == b.parameters.name
    &&  isParent(a.origin, b.origin)

share|improve this question
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Jubobs Dec 17 '13 at 13:26
There you go, hope this helps! – Coxa Dec 17 '13 at 14:02
I don't see any difference between using color or xcolor except no warnings with xcolor. – Ignasi Dec 17 '13 at 14:11
That's it. Thank you very much. xcolor fixed it... – Coxa Dec 17 '13 at 14:21
up vote 15 down vote accepted

Changing this tiny line of code




fixed it, thanks @Ignasi

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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