From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62990 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Re: ConText, TikZ and definecolor: undefined control sequence Date: Wed, 27 Oct 2010 22:08:15 +0200 Message-ID: <4CC886AF.2010005@uni-ulm.de> References: <1288088447.2222.4.camel@silver-fox> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288210114 13520 80.91.229.12 (27 Oct 2010 20:08:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 20:08:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 27 22:08:30 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 1PBCIQ-0006sn-4y for gctc-ntg-context-518@m.gmane.org; Wed, 27 Oct 2010 22:08:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E24ACA79B; Wed, 27 Oct 2010 22:08:29 +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 zmNyN1EEwXNO; Wed, 27 Oct 2010 22:08:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD9ECCA790; Wed, 27 Oct 2010 22:08:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D283CA790 for ; Wed, 27 Oct 2010 22:08:25 +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 RyFFPQYEzOLJ for ; Wed, 27 Oct 2010 22:08:23 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 525CDCA78A for ; Wed, 27 Oct 2010 22:08:23 +0200 (CEST) Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9RJtPAW030268 for ; Wed, 27 Oct 2010 21:55:26 +0200 Original-Received: from [192.168.178.46] (p54A97623.dip.t-dialin.net [84.169.118.35]) (authenticated bits=0) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o9RK8KV3001422 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 27 Oct 2010 22:08:20 +0200 (MEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.11) Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5 In-Reply-To: X-DCC-dcc1.aftenposten.no-Metrics: poseidon 1215; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.60.1.11; country=DE; region=01; city=Albert; latitude=47.5833; longitude=8.1167; http://maps.google.com/maps?q=47.5833,8.1167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aDnTTqir - 4f5dc5f5bf5a - 20101027 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:62990 Archived-At: 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@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 = 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@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 ___________________________________________________________________________________