Asymptote: Help

Revision as of 07:06, 24 January 2007 by Hmmm (talk | contribs)
Asymptote (Vector Graphics Language)
Getting Started - Basics - Drawing - Labeling - Filling - Useful functions - Examples - Macros and Packages

Help - Reference - Advanced Asymptote - 3D Graphics - CSE5 Package - How to

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("$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]