From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33489 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: tree charts Date: Thu, 22 Feb 2007 18:34:59 -0700 Organization: Colorado State University Message-ID: References: <45DD54A2.3070507@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172194550 989 80.91.229.12 (23 Feb 2007 01:35:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 01:35:50 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 23 02:35:43 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HKPLb-0004Kj-1L for gctc-ntg-context-518@m.gmane.org; Fri, 23 Feb 2007 02:35:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A25F42041B; Fri, 23 Feb 2007 02:32:47 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05398-05-3; Fri, 23 Feb 2007 02:32:38 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69E64203E3; Fri, 23 Feb 2007 02:32:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36B57203E4 for ; Fri, 23 Feb 2007 02:32:36 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05398-05-2 for ; Fri, 23 Feb 2007 02:32:31 +0100 (CET) Original-Received: from trueband.net (trueband.net [216.163.120.10]) by ronja.ntg.nl (Postfix) with SMTP id 5A3CA203C8 for ; Fri, 23 Feb 2007 02:32:30 +0100 (CET) Original-Received: (qmail 31156 invoked by uid 1006); 23 Feb 2007 01:35:24 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.0/100.0):. Processed in 0.719187 secs); 23 Feb 2007 01:35:24 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.4) by -v with SMTP; 23 Feb 2007 01:35:23 -0000 Original-Received: (qmail 30911 invoked from network); 23 Feb 2007 01:35:20 -0000 Original-Received: from unknown (HELO walayah-main) (67.54.131.34) by -v with SMTP; 23 Feb 2007 01:35:20 -0000 In-Reply-To: User-Agent: Opera Mail/9.02 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33489 Archived-At: On Thu, 22 Feb 2007 12:39:25 -0700, Aditya Mahajan wrote: > I could not get >> global >> text color within a TikZ environment without individually coloring every >> node... > > If a color is defined using ConTeXt's definecolor it can be used with > tikz. Here is an example (adapted from the tikz manual) Ok, I got confused by something the manual said about color (p. 108); I thought that non-LaTeX users had to use \definecolor{} which crashes on context... Aditya, my hero, THNX as always Idris > > \usemodule[tikz] > \definecolor[mycolor] [g=.75,r=.15,b=.5] > > \starttext > > \start[tikzpicture] > [parent anchor=east,child anchor=west,grow=east] > \tikzstyle{every node}=[ball color=mycolor,circle,text=white] > \tikzstyle{edge from parent}=[draw,dashed,thick,red] > \node {root} > child {node {left}} > child {node {right} > child {node {child}} > child {node {child}} > }; > \stop[tikzpicture] > > \stoptext -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/