I'm am new to Latex and Texmaker, and loving it. I'm using the MikTek distribution on Windows 7.

Now I want to integrate Asymptote figures into my documents. I installed Asymptote from here: Asymptote download (keeping in mind I had already installed MikTek and Texmaker). I also installed Ghostscript as Asymptote kept asking for that.

My first attempt to embed Asy commands in a Latex file is this:




// Global Asymptote definitions can be put here.
import three;

// One can globally override the default toolbar settings here:
// settings.toolbar=true;



When I first ran it, MikTek fetched a number of packages and installed them on the fly. However I am stuck on this error:

testAsymptote-1.tex ! Undefined control sequence \ASYalign

I see from browsing the web that this problem has come up before. Some of the posts are old, and in any there is no coherent view on where this comes from or how to solve it. Suggestions are all over the map and I don't understand most of them anyway. Any ideas?

1 Answer 1


The latest version of Asymptote, 2.37, requires asymptote.sty version 1.30 (auto-generated by running pdflatex on asy-latex.dtx).


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .