The state=stop will only affect tikz when it uses the context color handling.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}
```
One of the relevant status variables is:
\c_colo_enabled
\ifcase\c_colo_enabled
yes
\else
no
\fi
assuming that _ is a character