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
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,
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
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,
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
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
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
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
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,
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
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;
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
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
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...
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
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
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
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
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 ...
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
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
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
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
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"
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 :
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
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
27 matches
Mail list logo