Asymptote: Help

Revision as of 08:06, 24 January 2007 by Hmmm (talk | contribs)
Asymptote (Vector Graphics Language)
Getting Started - Basics - Drawing - Reference - Examples - Macros and Packages - Advanced Asymptote - 3D Graphics - Help

Useful functions - CSE5 Package - How to


Problem: You can draw images with Asymptote, but it doesn't compile your file whenever you have a label containing LaTeX code (for example, the line label("$P$",(50,50),S); as in test.asy.)

What might be going on: Either Asymptote is not finding your LaTeX compiler, or you have installed your TeX distribution (such as MikTeX) in a folder that Asymptote cannot find.

Solution: Let's say you installed miktex in the folder C:\Program Files (the default). Then there should be a subfolder texmf, containing the folder miktex, containing the folder bin, which contains your latex compiler. In your config.asy file, add the following two lines to the bottom:

texpath="C:\Program Files\texmf\miktex\bin";
dvips="C:\Program Files\texmf\miktex\bin\dvips";

External Sources

The following are excellent resources on Asymptote for topics not covered in this guide:

[The Asymptote home page]

Invalid username
Login to AoPS