Dear Aditya, On Sun, Dec 28, 2014 at 8:21 AM, Aditya Mahajan wrote:
On Wed, 24 Dec 2014, Context NTG wrote:
Could anybody explain how to use Asymptote in ConTeXt with the filter module.
Can you post a minimal asymptote file and how it shoud be processed via the command line?
I have no time to create a nice minimal example, but here's an ugly non-minimal example which should at least enable you to test the interaction with the filter module. I also added one ConTeXt-specific command while trying to make math fonts work properly, just replace "lucidaot" with another font in case you don't have that one installed. You can run the example with asy -tex context cylinder.asy (Maybe it's possible to set the tex engine inside the file as well.) Bonus points if you can get PRC to work properly before TL 2015. Or if you can make the file print properly from OS X without using Acrobat or ghostscript/CUPS. Preview.app "forgets" to print the (smoothly shaded) cylinder for example. Mojca