渐近线无法创建标签

Asymptote can not create label

我正在使用矢量程序渐近线 (https://asymptote.sourceforge.io) 迈出第一步。在我的第一个教程中,我已经遇到了一个错误:我无法放置任何标签。以下代码工作正常:

draw((0,0) -- (2,2));

但是,如果我添加标签:

draw((0,0) -- (2,2));
label("x", (1,1));

出现以下错误消息:

asy -globalwrite -f pdf -o "test.pdf" "test.asy"
    pic.addBox(position,position,min(f),max(f));
              ^
C:\Program Files\MiKTeX/asymptote/plain_Label.asy: 321.15: runtime:

如您所见,我使用的是安装了 MiKTeX 的 Windows (10) 操作系统。其中包含的Asymptote版本为:

asy --version
miktex-asy version 2.69 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]

ENABLED OPTIONS:
WebGL    3D HTML rendering
OpenGL   3D OpenGL rendering
CURL     URL support

DISABLED OPTIONS:
GSL      GNU Scientific Library (special functions)
FFTW3    Fast Fourier transforms
XDR      external data representation (portable binary file format)
Readline interactive history and editing
Editline interactive editing (if Readline is unavailable)
Sigsegv  distinguish stack overflows from segmentation faults
GC       Boehm garbage collector

有人可以帮我解决这个错误吗?错误消息相当无用。如有任何帮助,我们将不胜感激!

经过一番研究,我发现MiKTeX提供的Asymptote版本与他们自己的包不兼容。解决办法其实很简单:从https://asymptote.sourceforge.io弄个官方的standalone就可以了