On Thu, 22 Feb 2007 12:39:25 -0700, Aditya Mahajan <[EMAIL PROTECTED]>
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/
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context