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/
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
On Wed, 21 Feb 2007 11:18:10 -0700, 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)
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/
On Wed, 21 Feb 2007 12:05:08 -0700, Idris Samawi Hamid
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/
On Wed, 21 Feb 2007, Idris Samawi Hamid wrote:
On Wed, 21 Feb 2007 12:05:08 -0700, Idris Samawi Hamid
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 '<
This was true until about the beginning of 2005. I do not know when Till Tantau first tried to port pgf to context. A while back I told him that this is no longer true for ConTeXt .... but there has not been a new release of the manual for a while. 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> If you decide to try it, check out the code from CVS rather than from CTAN. There have been some changes since version 1.10, many of them improve the compatibility with ConTeXt (colors, etc.) Aditya
Aditya Mahajan wrote:
I also found the following to be funny:
<quote> 2.2.3 Setting up the Environment in ConTEXt Karl$B!G(Bs 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 -----------------------------------------------------------------
Hi,
On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen
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/
On Thu, 22 Feb 2007, Idris Samawi Hamid wrote:
Hi,
On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen
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
Hi, when testing the small example from the tikz manual, I got this ... module tikz not found error, texexec stopping with undefined \tikzstyle. On a fresh debian installation, that is. I seem to remember this error from some earlier tryouts but not the solution. Anyone for a hint? Thanks, Jak.
On Thu, 22 Feb 2007, plink wrote:
Hi,
when testing the small example from the tikz manual, I got this ... module tikz not found
You need to install the tikz module. Download tikz from the sourceforge website or CTAN, and unzip it in a temporary directory. Then you need to correct the directory structure to conform to TDS. There are some instructions in the tikz manual. You will also need to install xkeyval, in case your installation does not have it.
error, texexec stopping with undefined \tikzstyle.
Since tikz module is not found, these will be missing.
On a fresh debian installation, that is.
ConTeXt compatibility was added recently (4-5 months ago). I do not know whether debian stable has it or not. Maybe first you should try to update the tex installation using debian methods (I do not know those). Aditya
With texlive and pgf (which contains tikz) from testing and latest
context (2007.01.23-3) from unstable, the tikz module is found, but
still it does not work. Log attached.
2007/2/22, Aditya Mahajan
On Thu, 22 Feb 2007, plink wrote:
Hi,
when testing the small example from the tikz manual, I got this ... module tikz not found
You need to install the tikz module. Download tikz from the sourceforge website or CTAN, and unzip it in a temporary directory. Then you need to correct the directory structure to conform to TDS. There are some instructions in the tikz manual.
You will also need to install xkeyval, in case your installation does not have it.
error, texexec stopping with undefined \tikzstyle.
Since tikz module is not found, these will be missing.
On a fresh debian installation, that is.
ConTeXt compatibility was added recently (4-5 months ago). I do not know whether debian stable has it or not. Maybe first you should try to update the tex installation using debian methods (I do not know those).
Aditya _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
On Fri, 23 Feb 2007, Johan Sandblom wrote:
With texlive and pgf (which contains tikz) from testing and latest context (2007.01.23-3) from unstable, the tikz module is found, but still it does not work. Log attached.
Your log file says system : module tikz loaded (/usr/share/texmf/tex/plain/pgf/frontendlayer/tikz.tex which means that it is finding tikz.tex (plain support) rather than t-tikz.tex (context support) On my system (Windows+mswincontext) I get system : module tikz loaded (e:/isoimage/usr/local/context/tex/texmf-project/tex/context/pgf/frontendlayer t-tikz.tex followed by loading of a lot of files under tex/context/pgf... What does kpsewhich t-tikz.tex give on your system. If it is not found, it may mean that either pgf is not uptodate or not installed correctly. Aditya
It reports nothing, which is disturbing since
locate t-tikz.tex gives
/usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex
I suppose this indicates some change is needed in texmf.cnf?
Changing \usemodule[tikz] to \usemodule[t][tikz] did not help.
Johan
2007/2/23, Aditya Mahajan
On Fri, 23 Feb 2007, Johan Sandblom wrote:
With texlive and pgf (which contains tikz) from testing and latest context (2007.01.23-3) from unstable, the tikz module is found, but still it does not work. Log attached.
Your log file says
system : module tikz loaded (/usr/share/texmf/tex/plain/pgf/frontendlayer/tikz.tex
which means that it is finding tikz.tex (plain support) rather than t-tikz.tex (context support)
On my system (Windows+mswincontext) I get
system : module tikz loaded (e:/isoimage/usr/local/context/tex/texmf-project/tex/context/pgf/frontendlayer t-tikz.tex
followed by loading of a lot of files under tex/context/pgf...
What does kpsewhich t-tikz.tex give on your system. If it is not found, it may mean that either pgf is not uptodate or not installed correctly.
Aditya _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
Thanks Aditya, I noticed just after sending my post that I had removed the debian pgf package before, because it didn't work with ConTeXt. After reinstalling it I noticed however, that nothing had changed recently. It still works with LaTeX but the ConTeXt support realized in the current pgf-version (for unstable debian) is still not working, which - given that it is still based on 1.09 upstream pgf/tikz - may seem as no suprise. A quick and *very dirty* installation of 1.10 worked fine with ConTeXt, so hopefully the next pgf-debian release has that ConTeXt support built in.
Aditya Mahajan
On my system (Windows+mswincontext) I get
system : module tikz loaded (e:/isoimage/usr/local/context/tex/texmf-project/tex/context/pgf/frontendlayer t-tikz.tex
followed by loading of a lot of files under tex/context/pgf...
What does kpsewhich t-tikz.tex give on your system. If it is not found, it may mean that either pgf is not uptodate or not installed correctly.
Hm, this is strange. On my system (Debian with TeXLive 2005, without the separate context package, but that shouldn't matter), it isn't found either: (517)[21:48:19]frank@riesling:~$ kpsewhich --progname=context t-tikz.tex (518)[21:48:24]frank@riesling:~$ ls /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex (519)[21:48:30]frank@riesling:~$ grep t-tikz.tex /usr/share/texmf/ls-R t-tikz.tex (520)[21:48:32]frank@riesling:~$ but it should. As shown above, it's in the ls-R database, and it's in the search patch for context: $ kpsewhich --progname=context tikz.tex /usr/share/texmf/tex/plain/pgf/frontendlayer/tikz.tex (521)[21:49:41]frank@riesling:~$ kpsewhich --progname=context --show-path=tex | sed -e 's/:/\n/g' | grep /usr/share/texmf !!/usr/share/texmf/tex/context// !!/usr/share/texmf-texlive/tex/context// !!/usr/share/texmf-tetex/tex/context// !!/usr/share/texmf/tex/plain// So t-tikz.tex is definetely earlier than tikz.tex. Next thing would be to run kpsewhich with --debug, but I don't have time for this ATM. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
Frank Küster wrote:
(517)[21:48:19]frank@riesling:~$ kpsewhich --progname=context t-tikz.tex (518)[21:48:24]frank@riesling:~$ ls /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex ^ shouldn't there be a 'tex' path component?
Then it would be in the serch path for ConTeXt. cheerio ralf
Ohura-san,
any plans to fix this bug? It was again noticed on the ConTeXt mailing
list; in Debian, tikz.tex is found earlier than t-tikz.tex, and
therefore there's no tikz support for ConTeXt.
Ralf Stubner
Frank Küster wrote:
(517)[21:48:19]frank@riesling:~$ kpsewhich --progname=context t-tikz.tex (518)[21:48:24]frank@riesling:~$ ls /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex ^ shouldn't there be a 'tex' path component?
Then it would be in the serch path for ConTeXt.
(or rather, it would be before anything in tex/context, tex/plain and tex/generic, and no longer at random order with respect to other things in the whole tree; TEXMF//) is also included. I didn't notice the missing component. That is bug #394613 in pgf. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
It appears to be fixed in 1.10, no?
Johan
2007/2/26, Frank Küster
Ohura-san,
any plans to fix this bug? It was again noticed on the ConTeXt mailing list; in Debian, tikz.tex is found earlier than t-tikz.tex, and therefore there's no tikz support for ConTeXt.
Ralf Stubner
wrote: Frank Küster wrote:
(517)[21:48:19]frank@riesling:~$ kpsewhich --progname=context t-tikz.tex (518)[21:48:24]frank@riesling:~$ ls /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex ^ shouldn't there be a 'tex' path component?
Then it would be in the serch path for ConTeXt.
(or rather, it would be before anything in tex/context, tex/plain and tex/generic, and no longer at random order with respect to other things in the whole tree; TEXMF//) is also included.
I didn't notice the missing component. That is bug #394613 in pgf.
Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
"Johan Sandblom"
It appears to be fixed in 1.10, no?
Hm, is it fixed? From the bug log and attached patch, it rather seemed to be an error in the Debian packaging. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
On Thu, 22 Feb 2007 12:39:25 -0700, Aditya Mahajan
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/
Idris Samawi Hamid wrote:
Hi,
On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen
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...
well, i first need a project where i can apply tikz -) (currently luatex dev take most time available for dev) 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 -----------------------------------------------------------------
On Feb 22, 2007, at 8:52 AM, Idris Samawi Hamid wrote:
Hi,
On Thu, 22 Feb 2007 01:30:26 -0700, Hans Hagen
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
Idris Samawi Hamid wrote:
On Wed, 21 Feb 2007 12:05:08 -0700, Idris Samawi Hamid
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 -----------------------------------------------------------------
Is there an easy way in ConTeXt to do the equivalent of \enlargethispage{1\baselineskip} in LaTeX?
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
participants (10)
-
Aditya Mahajan
-
David C. Walden
-
David Wooten
-
Frank Küster
-
Hans Hagen
-
Idris Samawi Hamid
-
Johan Sandblom
-
John R. Culleton
-
plink
-
Ralf Stubner