From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63009 Path: news.gmane.org!not-for-mail From: Marius Newsgroups: gmane.comp.tex.context Subject: Re: ConText, TikZ and definecolor: undefined control sequence Date: Thu, 28 Oct 2010 12:44:32 +0300 Message-ID: References: <1288088447.2222.4.camel@silver-fox> <4CC886AF.2010005@uni-ulm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf3054a4afca630b0493aa32f3 X-Trace: dough.gmane.org 1288259124 30986 80.91.229.12 (28 Oct 2010 09:45:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 09:45:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 28 11:45:21 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBP2v-0006Sl-5f for gctc-ntg-context-518@m.gmane.org; Thu, 28 Oct 2010 11:45:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD772CA7A5; Thu, 28 Oct 2010 11:45:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Sojc699khCTR; Thu, 28 Oct 2010 11:45:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F22C2CA781; Thu, 28 Oct 2010 11:45:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C8F6CA781 for ; Thu, 28 Oct 2010 11:45:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id l8I0D2qWhyoM for ; Thu, 28 Oct 2010 11:45:14 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 295ADC9A7C for ; Thu, 28 Oct 2010 11:45:14 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9S9jDsQ023980 for ; Thu, 28 Oct 2010 11:45:13 +0200 Original-Received: by fxm2 with SMTP id 2so1798785fxm.14 for ; Thu, 28 Oct 2010 02:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=PZVflrLJ7qX7U+ctM3OI4FUpQm78eZvD1agxmOcDSY8=; b=CJdSbCK88g/iECs9n9Z86B+1+Y8cZtfmhRU3/6pkWdnuLIFWYYcPQcQ+XKGa8gwaKq nqaKAlcerVSC0IARAE1Jis03DB/KLJp7bUomNal+8y2GEst5Anqlz8+Z/xPhxmlSNwng BM3RKbQ78cZizc1ZkdXBwI35ufVpSqnGYiKRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=J8MkL/VA5ssjNLiPIg+ZnoFe0TxaBphMnebB8ZJfQDEYkW0W3szkcMjHAW1846lr+f h/F7zWhJYi9SzrAnao7ei9Su5alQvTpnMozRvik4d3NjX0X5/8R+7XbF/BpcBwaT8XHR Y33+FOTm/onw2tmtAhsfae/NWHAUbr5kB5VRs= Original-Received: by 10.223.95.207 with SMTP id e15mr3705322fan.57.1288259112688; Thu, 28 Oct 2010 02:45:12 -0700 (PDT) Original-Received: by 10.223.83.133 with HTTP; Thu, 28 Oct 2010 02:44:32 -0700 (PDT) In-Reply-To: <4CC886AF.2010005@uni-ulm.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDo9Jdpm - b0a2ba096564 - 20101028 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63009 Archived-At: --20cf3054a4afca630b0493aa32f3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here is the fixed script. On 27 October 2010 23:08, Michael Murphy 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=3DD3D3D3] >> >> \usemodule[tikz] >> >> \unprotect >> \pgfutil@definecolor{black}{gray}{0} >> \pgfutil@definecolor{gray}{gray}{0.5} >> \pgfutil@definecolor{lightgray}{gray}{0.9} >> \pgfutil@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 =3D colors.value(attributes) >> >> into >> >> local cv =3D attributes.colors.values >> >> Just guess, untested. > > Nope, doesn't work. Using > > local colors =3D 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@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage =C2=A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =C2=A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =C2=A0 =C2=A0 : http://contextgarden.net > _________________________________________________________________________= __________ > --20cf3054a4afca630b0493aa32f3 Content-Type: application/x-tex; name="colorfix.tex" Content-Disposition: attachment; filename="colorfix.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gftg5wbb0 XHN0YXJ0bHVhY29kZQ0KIHBnZnV0aWwgPSBwZ2Z1dGlsIG9yIHsgfQ0KIGxvY2FsIHRleHNwcmlu dCwgZm9ybWF0ID0gdGV4LnNwcmludCwgc3RyaW5nLmZvcm1hdA0KIGxvY2FsIHBydGNhdGNvZGVz ID0gdGV4LnBydGNhdGNvZGVzDQogbG9jYWwgY29sb3JzID0gYXR0cmlidXRlcy5jb2xvcnMNCg0K IGZ1bmN0aW9uIHBnZnV0aWwudW5zdXBwb3J0ZWRfY29sb3IobmFtZSkNCiAgIHRleHNwcmludChw cnRjYXRjb2Rlcyxmb3JtYXQoIlxcUGFja2FnZUVycm9ye3BnZn17Y29sb3IgJXMgaGFzIHVuc3Vw cG9ydGVkIG1vZGVsfXt9IiwgbmFtZSkpDQogICB0ZXhzcHJpbnQocHJ0Y2F0Y29kZXMsZm9ybWF0 KCJcXHBnZnV0aWxAZGVmaW5lY29sb3J7JXN9e2dyYXl9ezB9IiwgbmFtZSkpDQogZW5kDQoNCiBm dW5jdGlvbiBwZ2Z1dGlsLnJlZ2lzdGVyY29sb3IobmFtZSwgYXR0cmlidXRlcykNCiAgIHByaW50 KG5hbWUsIGF0dHJpYnV0ZXMpDQogICBsb2NhbCBjdiA9IGNvbG9ycy52YWx1ZXNbYXR0cmlidXRl c10NCiAgIGlmIGN2IHRoZW4NCiAgICAgbG9jYWwgbW9kZWwgPSBjdlsxXQ0KICAgICBpZiBtb2Rl bCA9PSAxIHRoZW4NCiAgICAgICBwcmludCgibW9kZWw9MSIpDQogICAgICAgdGV4c3ByaW50KHBy dGNhdGNvZGVzLGZvcm1hdCgiXFxwZ2Z1dGlsQGRlZmluZWNvbG9yeyVzfXtncmF5fXslMS4zZn0i LCBuYW1lLCBjdlsyXSkpDQogICAgIGVsc2VpZiBtb2RlbCA9PSAzIHRoZW4NCiAgICAgICBwcmlu dCgibW9kZWw9MiIpDQogICAgICAgdGV4c3ByaW50KHBydGNhdGNvZGVzLGZvcm1hdCgiXFxwZ2Z1 dGlsQGRlZmluZWNvbG9yeyVzfXtyZ2J9eyUxLjNmLCUxLjNmLCUxLjNmfSIsIG5hbWUsIGN2WzNd LCBjdls0XSwgY3ZbNV0pKQ0KICAgICBlbHNlDQogICAgICAgcHJpbnQoIm5vIG1vZGVsIikNCiAg ICAgICBwZ2Z1dGlsLnVuc3VwcG9ydGVkX2NvbG9yKG5hbWUpDQogICAgIGVuZA0KICAgZWxzZQ0K ICAgICAgIHByaW50KCJubyBjb2xvciIpDQogICAgICAgcGdmdXRpbC51bnN1cHBvcnRlZF9jb2xv cihuYW1lKQ0KICAgZW5kDQogZW5kDQpcc3RvcGx1YWNvZGUNCg0KXHVucHJvdGVjdA0KXGRlZlxw Z2Z1dGlsQHJlZ2lzdGVyY29sb3IjMSUNCiB7XGN0eGx1YXtwZ2Z1dGlsLnJlZ2lzdGVyY29sb3Io IiMxIixcdGhlY29sb3JhdHRyaWJ1dGUgICAgICAgeyMxfSl9fQ0KXHByb3RlY3QNCg0K --20cf3054a4afca630b0493aa32f3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --20cf3054a4afca630b0493aa32f3--