Re: [NTG-context] ConTeXt + asymptote

2006-10-15 Thread John Bowman
Hi all, As requested some time ago on this list, Asymptote 1.14 (a modern MetaPost replacement) now supports alternate TeX engines via the -tex option: -tex engine TeX engine (latex|pdflatex|tex|pdftex|none) [latex] Other engines (presumably including ConTeXt) can easily be added in

Re: [NTG-context] ConTeXt + asymptote

2006-06-30 Thread Hans Hagen
Sanjoy Mahajan wrote: Won't pstricks eventually have to go when asymptote produces pdf directly? why is pstricks needed anyway, i suppose that asymptote does the graphics Hmm, I wonder how metapost does the rotating. Actually, here's a test: beginfig(1) draw thelabel(btex hello etex,

[NTG-context] ConTeXt + asymptote

2006-06-29 Thread John Bowman
In regard to adding support for ConTeXt or plain TeX to Asymptote, it should be no problem to do this, but perhaps someone on this list can help provide some preliminary information, particularly regarding item 1 below on how best to rotate text at an arbitrary angle. Also, since I am not sure

Re: [NTG-context] ConTeXt + asymptote

2006-06-29 Thread Hans Hagen
John Bowman wrote: In regard to adding support for ConTeXt or plain TeX to Asymptote, it should be no problem to do this, but perhaps someone on this list can help provide some preliminary information, particularly regarding item 1 below on how best to rotate text at an arbitrary angle. Also,

Re: [NTG-context] ConTeXt + asymptote

2006-06-29 Thread Sanjoy Mahajan
In regard to the remark I saw posted about monster eps files That was from me. The size was one issue and probably, as you say, disappears in the size of the final pdf file (I didn't test it extensively but I think that happened). However, a related issue to the size is that ConTeXt parses the

Re: [NTG-context] ConTeXt + asymptote

2006-04-25 Thread Hans Hagen
Sanjoy Mahajan wrote: context parses the ps code and converts it to pdf and in the process uses tex to do the fonts %%Page: 1 1 0 0.5 dtransform truncate idtransform setlinewidth pop 1 setlinecap 1 setlinejoin gsave 0 0 translate newpath 273.998159 412.742829 moveto

Re: [NTG-context] ConTeXt + asymptote

2006-04-25 Thread Taco Hoekwater
I've posted this to the metapost list as well: I like metapost but, according to the following mail (on the metapost ML): [metapost] MP vs. Asymptote I don't want to start a flame, but since someone posted a message some time ago mentioning Asymptote I got curious and I have to say that I

Re: [NTG-context] ConTeXt + asymptote

2006-04-25 Thread Taco Hoekwater
Hans Hagen wrote: looks parsable But you see only a small bit of the actual output ;-) From Mojca: Whoever is game can start with the diff below, but I'm also not sure it's worth it. My ideal figure program: 1. Agnostic about the tex engine (tex/latex/context), easy to integrate with

Re: [NTG-context] ConTeXt + asymptote

2006-04-25 Thread Sanjoy Mahajan
From:Hans Hagen [EMAIL PROTECTED] [asymptote eps] looks parsable Those lines are only a bit of the output. It's preceded by horrible pstricks and font code to parse (about 800 lines in that eps file). I'm not sure why asymptote decided to use pstricks. I think it's for figure inclusion,

Re: [NTG-context] ConTeXt + asymptote

2006-04-24 Thread Hans Hagen
Renaud AUBIN wrote: Hans Hagen a écrit : i meant the 'hard coded parts' but then, i must admit that i never saw any real asymptote code -) Hans Since asymptote uses gs to generate eps or pdf output, I wander if the generated code can be used by ConTeXt... To integrate asymptote to

Re: [NTG-context] ConTeXt + asymptote

2006-04-24 Thread Sanjoy Mahajan
context parses the ps code and converts it to pdf and in the process uses tex to do the fonts Maybe then it's not worth finishing my modifications for asymptote to use plain tex. The following .asy file (labelbox.asy in the distributed examples/): real margin=2mm; frame b1,b2;

Re: [NTG-context] ConTeXt + asymptote

2006-04-23 Thread Renaud AUBIN
asy -inlinetex results in: - an eps graphics - latex code to use (I've not checked but seems) with asymptote.sty So, we can maybe imagine an -inlinecontext option to add asymptote support in context (???) Hans Hagen a crit: Renaud AUBIN wrote: Ok, but how to deal with asymptote

Re: [NTG-context] ConTeXt + asymptote

2006-04-23 Thread Hans Hagen
Renaud AUBIN wrote: asy -inlinetex results in: - an eps graphics - latex code to use (I've not checked but seems) with asymptote.sty So, we can maybe imagine an -inlinecontext option to add asymptote support in context (???) no, what is needed is an isolation of the tex part, so that the

Re: [NTG-context] ConTeXt + asymptote

2006-04-23 Thread Hans Hagen
Renaud AUBIN wrote: Hans Hagen a écrit : no, what is needed is an isolation of the tex part, so that the macro package has/can to implement certain 'features'; otherwise it's unmaintainable Hans euh... The isolation of the tex part is performed for LaTeX with inlinetex option...

Re: [NTG-context] ConTeXt + asymptote

2006-04-23 Thread Renaud AUBIN
Hans Hagen a écrit : i meant the 'hard coded parts' but then, i must admit that i never saw any real asymptote code -) Hans Since asymptote uses gs to generate eps or pdf output, I wander if the generated code can be used by ConTeXt... To integrate asymptote to ConTeXt, what is

Re: [NTG-context] ConTeXt + asymptote

2006-04-23 Thread Sanjoy Mahajan
To integrate asymptote to ConTeXt, what is needed (from the ConTeXt pov I mean) ? I'm curious about that too. I'm just going through my asymptote diffs (against v0.99) for it to work with plain TeX, and I'm not sure any of my changes will make it easier to integrate with ConTeXt the way MP is

Re: [NTG-context] ConTeXt + asymptote

2006-04-22 Thread Hans Hagen
there's also: ftp://tug.ctan.org/pub/tex-archive/graphics/pgf (although for context i'd rewrite the backend drivers a bit in order to be more integrated) Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] ConTeXt + asymptote

2006-04-22 Thread andrea valle
I discovered conTeXt+metapost because I was not satisfied with the limited capabilties of pgf for my graph music project. I have to say that I was forcing pgf beyond its scope, but in any case it is not intended as a complex, global plotting system, as far as I understand. Best -a- On 22

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Hans Hagen
Renaud AUBIN wrote: Ouch, grep latex * on the source returns i downloade it, and indeed it seems that calling latex is hard coded into the source of course you can make a batch file latex.cmd that runs context -) integrating does not look that problematic but without proper label support ...

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Renaud AUBIN
Tioga looks very nice for 2D plots but IMHO, asymptote could provide a good transition for metaposters. Moreover, asymptote is a all-in-one tool with 3D support and 2D plots of reasonable quality... The discussion is now, what do you prefer: an integrated tool with a great variety of features

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Hans Hagen
Jilani Khaldi wrote: i downloade it, and indeed it seems that calling latex is hard coded into the source of course you can make a batch file latex.cmd that runs context -) integrating does not look that problematic but without proper label support ... . so maybe you can convince the

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Hans Hagen
Renaud AUBIN wrote: I have just send a mail to Andy Hammer to ask him what he thinks about using plainTeX format instead of hardcoded latex calls... or configurable calls, i see no reason for binding to whatever format Hans

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Hans Hagen
Renaud AUBIN wrote: The discussion is now, what do you prefer: an integrated tool with a great variety of features (even if a small amount of us are interested by three or graph in asymptote) or a better tool but with less features ? or multiple tools -) Hans

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Renaud AUBIN
Ok, but how to deal with asymptote like with metapost. For example, if I produce a pdf with asymptote (with embed fonts) and use this pdf into my ConTeXt document with the same fonts... Is the fonts included twice ? I assume that this is the case... Maybe it could be interesting to "integrate"

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Renaud AUBIN
I agree with you, and this is what I do for my document (I use featpost, metaobj and context term of gnuplot). But sometimes, there is some conflicts... That's the reason why I think that an integrated and expandable solution could be interesting. That's my humble opinion ;) Hans Hagen a écrit :

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Sanjoy Mahajan
I started rewriting the asymptote code to use plain TeX -- I had never used ConTeXt back then, so didn't even try to make that work. But maybe the TeX changes will help those more expert in ConTeXt to make them. I'll dig out my half-finished changes for public onsumption. The asymptote authors

Re: [NTG-context] ConTeXt + asymptote

2006-04-21 Thread Hans Hagen
Renaud AUBIN wrote: Ok, but how to deal with asymptote like with metapost. For example, if I produce a pdf with asymptote (with embed fonts) and use this pdf into my ConTeXt document with the same fonts... Is the fonts included twice ? I assume that this is the case... Maybe it could be