On Thu, 22 Feb 2007, Idris Samawi Hamid wrote:

> Hi,
>
> On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen <[EMAIL PROTECTED]> wrote:
>
>> Btw, Willy Egger has a hard cover version of that manual which me might
>> like to take to the context meeting.
>
> I'd like to see a better integration of this package with ConTeXt. For
> example, hooking it into the ConTeXt color mechanism (unless you guys have
> some tricks up your sleave you'ld like to share ;-) 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)

\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

_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to