I have been trying to put Asymptote graphs in Context with the filter
example below. The Asymptote graph is written in a separate PDF file, but
is not included in the final completed PDF document. Is there a simple way
to achieve this?


\usemodule[filter]


\defineexternalfilter

[ASY]

[filtercommand={asy -tex "context" -View -outformat pdf -outname
\externalfilteroutputfile\space \externalfilterinputfile},

output=\externalfilterbasefile.out,

readcommand=\typefile,

cache=force,

location=text,

continue=yes]


\starttext

\startASY[myplot]

draw((1,1)--(2,4));

\stopASY


\externalfigure[myplot]

\stoptext


Thanks

Jeroen
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to