ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tree charts
Date: Thu, 22 Feb 2007 14:39:25 -0500 (EST)	[thread overview]
Message-ID: <alpine.WNT.0.82.0702221433470.2252@nqvgln> (raw)
In-Reply-To: <op.tn5s44tunx1yh1@ihamid.libarts.colostate.edu>

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

> Hi,
>
> On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen <pragma@wxs.nl> 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

  reply	other threads:[~2007-02-22 19:39 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 [this message]
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               ` tree charts Idris Samawi Hamid
2007-02-23  9:26             ` 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=alpine.WNT.0.82.0702221433470.2252@nqvgln \
    --to=adityam@umich.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).