TikZ is colored despite having \setupcolors[state=stop]
I've posted the same question on TE already: http://tex.stackexchange.com/questions/232158/tikz-is-colored-despite-having... 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} ```
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...
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. One of the relevant status variables is: \c_colo_enabled \ifcase\c_colo_enabled yes \else no \fi assuming that _ is a character ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
2015-03-10 12:24 GMT+01:00 Hans Hagen
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?
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?
it shows away to test of color is enabled ... just an example of usage ... it's up to tikz folks to use it or not ... so nothing for you to do Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Norbert Melzer