2015-03-10 12:24 GMT+01:00 Hans Hagen <pragma@wxs.nl>:
On 3/10/2015 12:10 PM, Norbert Melzer wrote:
I've posted the same question on TE already:
http://tex.stackexchange.com/questions/232158/tikz-is-colored-despite-having-setupcolorsstate-stop

Text of the question:

In the following MWE I get a red square, but I want it to be gray, as in
the also provided LaTeX-document:

```tex
% ConTeXt MWE
\setupcolors[state=stop]
\usemodule[tikz]

\starttext
\tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
\stoptext
```

```
% LaTeX-document wich does what I want
\PassOptionsToPackage{gray}{xcolor}
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikz{\draw[color=red,fill] (0,0) rectangle (1,1)}
\end{document}
```

The state=stop will only affect tikz when it uses the context color handling.

How can I convince TikZ to use ConTeXts colorhandling?
 
One of the relevant status variables is:

\c_colo_enabled

\ifcase\c_colo_enabled
  yes
\else
  no
\fi

assuming that _ is a character

I don't understand what you exactly want to tell me with this. I assume you don't mean to copy-paste that literally into my env-file, but what to do exactly with that snippet?