Difference between revisions of "Asymptote: Help"

 
Line 3: Line 3:
 
==Troubleshooting==
 
==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 <tt>label("<math>P</math>",(50,50),S);</tt> as in test.asy.)
 
'''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 <tt>label("<math>P</math>",(50,50),S);</tt> 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.
 
'''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 <tt>C:\Program Files</tt> (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:
 
'''Solution:''' Let's say you installed miktex in the folder <tt>C:\Program Files</tt> (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";
 
  texpath="C:\Program Files\texmf\miktex\bin";

Revision as of 07:06, 24 January 2007

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]