Re: [NTG-context] tree charts

2007-02-24 Thread John R. Culleton
On Wednesday 21 February 2007 13:18, Aditya Mahajan wrote:
 On Wed, 21 Feb 2007, Idris Samawi Hamid wrote:
  Dear cabal,
 
  Do any of you have any examples of tree charts done in, say,
  MetaFun? Are there any macros, libraries etc. for easy tree
  charts in \ConTeXt?
 
  Example:
  http://www.mathematik.uni-kl.de/~anne/Aufl-Bilder/D7Tree.jpg

 There are three ways you can do it in ConTeXt

 1) Most features: pstricks (yes pstricks can be used with context,
 but you always have to go the ps-pdf route)

My understanding is that the m-pstric module allows direct use of 
pstricks in Context, and handles the mechanics of conversion from 
dvips to ps to pdf by an extra pass. 

(However I am often wrong.)


-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-23 Thread David Wooten

On Feb 22, 2007, at 8:52 AM, 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...

I'd second this. For some reason PGF/TikZ is rather appealing to me  
right now. Although clearly MetaPost/Fun can do it all, it is (or at  
least seems) more daunting. Perhaps the beautiful examples for TikZ  
are closer to what I need out of the box (graphs of various kinds)  
than the beautiful examples from MetaFun.

David

 Best
 Idris

 -- 
 Professor Idris Samawi Hamid
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-22 Thread Hans Hagen
Aditya Mahajan wrote:
 I also found the following to be funny:

 quote
 2.2.3 Setting up the Environment in ConTEXt
 Karl’s uncle Hans uses ConTEXt. Like Gerda, Hans can also use TikZ.
 /quote

   
i saw that one -)

Btw, Willy Egger has a hard cover version of that manual which me might 
like to take to the context meeting.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-22 Thread Idris Samawi Hamid
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...

Best
Idris

-- 
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-22 Thread Aditya Mahajan
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-22 Thread Idris Samawi Hamid
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] tree charts

2007-02-21 Thread Idris Samawi Hamid
Dear cabal,

Do any of you have any examples of tree charts done in, say, MetaFun? Are  
there any macros, libraries etc. for easy tree charts in \ConTeXt?

Example:
http://www.mathematik.uni-kl.de/~anne/Aufl-Bilder/D7Tree.jpg

Best
Idris

-- 
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-21 Thread Aditya Mahajan
On Wed, 21 Feb 2007, Idris Samawi Hamid wrote:

 Dear cabal,

 Do any of you have any examples of tree charts done in, say, MetaFun? Are
 there any macros, libraries etc. for easy tree charts in \ConTeXt?

 Example:
 http://www.mathematik.uni-kl.de/~anne/Aufl-Bilder/D7Tree.jpg

There are three ways you can do it in ConTeXt

1) Most features: pstricks (yes pstricks can be used with context, but 
you always have to go the ps-pdf route)

2) Easiest syntax and prettiest looking output: tikz. You need one of 
the recent versions of tikz that work fine with context (except some 
of the exotic features, like adding arbitrary nodes to the page)

3) A very flexible system, but it takes a while to get used to the 
syntax: Metaobj. You also need a workabound to get metaobj to run 
correctly with metafun (search the mailing list for Taco's 
reply on a mail with metaobj in the subject)

For things like this, my personal recommendation will be tikz. It is 
not as powerful as metapost, since all the calculations are done in 
tex, but the user interface is slightly easier to use than metapost, 
and it has a good looking library of functions.

If you need something, quick and dirty, plain metapost with boxes 
package will also work. There is also the flowchart module, but I do 
not think that it can draw diagonal lines.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-21 Thread Idris Samawi Hamid
On Wed, 21 Feb 2007 11:18:10 -0700, Aditya Mahajan [EMAIL PROTECTED]  
wrote:

 On Wed, 21 Feb 2007, Idris Samawi Hamid wrote:

 Dear cabal,

 Do any of you have any examples of tree charts done in, say, MetaFun?  
 Are
 there any macros, libraries etc. for easy tree charts in \ConTeXt?

 Example:
 http://www.mathematik.uni-kl.de/~anne/Aufl-Bilder/D7Tree.jpg

 There are three ways you can do it in ConTeXt

 1) Most features: pstricks (yes pstricks can be used with context, but
 you always have to go the ps-pdf route)

I used pstricks for this purpose for my dissertation years ago (LaTeX,  
dvips). It's been years since I used pstricks, does not seem too popular  
with ConTeXt, dvips does not work well with ConTeXt virtual fonts, etc

 2) Easiest syntax and prettiest looking output: tikz. You need one of
 the recent versions of tikz that work fine with context (except some
 of the exotic features, like adding arbitrary nodes to the page)

Never heard of it; will look it up


 3) A very flexible system, but it takes a while to get used to the
 syntax: Metaobj. You also need a workabound to get metaobj to run
 correctly with metafun (search the mailing list for Taco's
 reply on a mail with metaobj in the subject)

Will look this up as well, though I don't look forward to yet another  
syntax (still need to get used to metapost ;-)

 For things like this, my personal recommendation will be tikz. It is
 not as powerful as metapost, since all the calculations are done in
 tex, but the user interface is slightly easier to use than metapost,
 and it has a good looking library of functions.

 If you need something, quick and dirty, plain metapost with boxes
 package will also work. There is also the flowchart module, but I do
 not think that it can draw diagonal lines.

Yes, otherwise that module would be the ticket. Maybe someone will extend  
it someday; I think a tree-chart module is at least just as important as  
one for flow charts.

THANK YOU for the info!

Best
Idris

-- 
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-21 Thread Idris Samawi Hamid
On Wed, 21 Feb 2007 12:05:08 -0700, Idris Samawi Hamid  
[EMAIL PROTECTED] wrote:

 2) Easiest syntax and prettiest looking output: tikz. You need one of
 the recent versions of tikz that work fine with context (except some
 of the exotic features, like adding arbitrary nodes to the page)

 Never heard of it; will look it up

This looks like a really nice package. The following, howeve, cracked me  
up (manual, page 67):

This special module is necessary since ConTeXt satanically restricts the  
length of module names...

LOL '

Idris

-- 
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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tree charts

2007-02-21 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Wed, 21 Feb 2007 12:05:08 -0700, Idris Samawi Hamid  
 [EMAIL PROTECTED] wrote:

   
 2) Easiest syntax and prettiest looking output: tikz. You need one of
 the recent versions of tikz that work fine with context (except some
 of the exotic features, like adding arbitrary nodes to the page)
   
 Never heard of it; will look it up
 

 This looks like a really nice package. The following, howeve, cracked me  
 up (manual, page 67):

 This special module is necessary since ConTeXt satanically restricts the  
 length of module names...
   

hm, that restriction has been dropped quite some time ago but there is 
the restriction that a third party module must start with t-

also, names can (and could) be remapped from long to short etc

Hans

-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context