|Asymptote (Vector Graphics Language)|
|Getting Started - Basics - Drawing - Reference - Examples - Macros and Packages - Advanced Asymptote - 3D Graphics - Help|
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("",(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";
The following are excellent resources on Asymptote for topics not covered in this guide: