Asymptote: Help
Troubleshooting
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";
External Sources
The following are excellent resources on Asymptote for topics not covered in this guide: