Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the message

> % no need for x colors (users can load it if needed)
> ...
> %\pgfutil@definecolor{gray}{gray}{0.5}

If I add

> \csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}

to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.

Cheers,
Henri

On 07/12/2016 02:29 PM, Hans Hagen wrote:
> On 7/12/2016 1:53 PM, Henri Menke wrote:
>> Dear list,
>>
>> I wanted to draw some nice pictures using TikZ and pgfplots, but then I
>> noticed that the colors of the ticks in my pgfplots graph were unusually
>> bright and it looked very weird.   So I set up a test
>>
>>> \usemodule[tikz]
>>> \starttext
>>> \starttikzpicture
>>>   \draw[help lines,very thick] (0,0) -- (1,0);
>>> \stoptikzpicture
>>>
>>> \externalfigure[test-crop]
>>> \stoptext
>>
>> where I produced test-crop.pdf from the following plain TeX sample,
>> which I also typeset with LuaTeX 0.95 (to make sure it's not a LuaTeX
>> regression).
>>
>>> \input luatex85.sty
>>> \input tikz
>>> \tikzpicture
>>>   \draw[help lines,very thick] (0,0) -- (1,0);
>>> \endtikzpicture
>>> \bye
>>
>> Attached you find the output of the ConTeXt example and you can see that
>> the color of the upper line (the one produced with TikZ inside ConTeXt)
>> has a much brighter color than the one produced with plain TeX.
>>
>> I'm using ConTeXt MkIV distributed with TL 2016.
>>
>> How can I adjust the colors in ConTeXt to match the ones produced by
>> plain TeX?  I need the adjustment in that direction, because I also have
>> old images produced with plain TeX/LaTeX that I'd like to seamlessly
>> integrate in my ConTeXt documents.
> 
> you need to figure out the default definitions in tikz then (i suppose
> 'help lines' is related to some color)
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 
> If your question is of interest to others as well, please add an entry
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to