[NTG-context] ConText, TikZ and definecolor: undefined control sequence

Marius mariausol at gmail.com
Thu Oct 28 11:44:32 CEST 2010


Here is the fixed script.

On 27 October 2010 23:08, Michael Murphy <michael.murphy at uni-ulm.de> wrote:
> On 27/10/2010 19:18, Marius wrote:
>>
>> Hello,
>> I had the same problem, so I desided to define colors by hand.
>>
>> \definecolor [lightgray] [h=D3D3D3]
>>
>> \usemodule[tikz]
>>
>> \unprotect
>> \pgfutil at definecolor{black}{gray}{0}
>> \pgfutil at definecolor{gray}{gray}{0.5}
>> \pgfutil at definecolor{lightgray}{gray}{0.9}
>> \pgfutil at definecolor{white}{gray}{1}
>> \protect
>
> Yes, this is what I've resorted to. But it would be nice to define things
> properly.
>
>> If you want to fix script, you need to change line:
>>
>> local cv = colors.value(attributes)
>>
>> into
>>
>> local cv = attributes.colors.values
>>
>> Just guess, untested.
>
> Nope, doesn't work. Using
>
> local colors = colors or { }
>
> gets me a little further, but then complains that 'value' is a nil value. I
> don't know enough Lua to fix this either. Strangely, it seems to work on
> some older MkIV versions of ConTeXt...
>
> Michael.
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colorfix.tex
Type: application/x-tex
Size: 1190 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101028/7074ef28/attachment.tex>


More information about the ntg-context mailing list