From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: tree charts
Date: Thu, 22 Feb 2007 18:34:59 -0700 [thread overview]
Message-ID: <op.tn6hclxjnx1yh1@walayah-main> (raw)
In-Reply-To: <alpine.WNT.0.82.0702221433470.2252@nqvgln>
On Thu, 22 Feb 2007 12:39:25 -0700, Aditya Mahajan <adityam@umich.edu>
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/
next prev parent reply other threads:[~2007-02-23 1:34 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 17:05 Idris Samawi Hamid
2007-02-21 18:18 ` Aditya Mahajan
2007-02-21 19:05 ` Idris Samawi Hamid
2007-02-21 20:16 ` Idris Samawi Hamid
2007-02-21 20:45 ` Aditya Mahajan
2007-02-22 8:30 ` Hans Hagen
2007-02-22 16:52 ` Idris Samawi Hamid
2007-02-22 19:39 ` Aditya Mahajan
2007-02-22 21:13 ` debian tikz module plink
2007-02-22 22:19 ` Aditya Mahajan
2007-02-23 10:37 ` [NTG-context] " Johan Sandblom
2007-02-23 18:22 ` Aditya Mahajan
2007-02-23 19:27 ` Johan Sandblom
2007-02-23 19:28 ` plink
2007-02-23 20:51 ` [NTG-context] " Frank Küster
2007-02-24 16:05 ` Ralf Stubner
2007-02-26 8:31 ` Bug#394613: " Frank Küster
2007-02-26 10:29 ` Johan Sandblom
2007-02-26 11:33 ` Frank Küster
2007-02-23 1:34 ` Idris Samawi Hamid [this message]
2007-02-23 9:26 ` tree charts Hans Hagen
2007-02-23 21:45 ` David Wooten
2007-02-21 21:09 ` Hans Hagen
2007-02-21 23:13 ` quick question David C. Walden
2007-02-21 22:18 ` Aditya Mahajan
2007-02-25 0:24 ` tree charts John R. Culleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.tn6hclxjnx1yh1@walayah-main \
--to=ishamid@colostate.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).