Forgot password?
 Create new account
View 199|Reply 2

报错 plain.asy: 312.16: no matching variable '_schur'

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-1-19 04:38:22 |Read mode
Last edited by hbghlyj at 2023-2-19 01:55:00Asymptote文档 7 LaTeX usage 的范例
The sample LaTeX file below, named latexusage.tex, can be run as follows:
  1. latex latexusage
  2. asy latexusage-*.asy
  3. latex latexusage
Copy the Code

我按照上面运行 asy latexusage-1.asy 时报错
D:\>asy latexusage-1.asy
  real[][][] S=_schur(a);
               ^
D:\MiKTeX/asymptote/plain.asy: 312.16: no matching variable '_schur'
  pair[][][] S=_schur(a);
               ^
D:\MiKTeX/asymptote/plain.asy: 326.16: no matching variable '_schur'

请问如何解决呢
miktex-asy version 2.79
Windows 11

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-1-19 04:42:36
Last edited by hbghlyj at 2023-1-19 11:16:00找到了相同的问题2022-10-15
MikTeX ships with a hopelessly out-of-date copy of asy.exe that is incompatible with the latest versions of Asymptote. Because of the order in which Windows searches for executable, it was finding this old version before it found the new one. One solution is to reorder the PATH paths so that Asymptote precedes MikTeX.

在SourceForge下载最新版本2.83, 将安装路径加入环境变量PATH, 问题就解决了(如果有打开的命令行窗口, 需要关闭再打开)
之前(旧版)之后(新版)
asy --version
输出
miktex-asy version 2.79 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
asy --version
输出
Welcome to Asymptote version 2.83 (to view the manual, type help)

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-1-19 05:12:47
测试了TeXmacs的Asymptote plugin
在 TeXmacs 菜单栏 Insert > Session > Asymptote 可以作为Asymptote的前端界面
英国进口.jpg
测试了TikZ plugin
在 TeXmacs 菜单栏 Insert > Session > TikZ 可以作为TikZ的前端界面
英国进口.jpg
测试了DraTeX plugin
在 TeXmacs 菜单栏 Insert > Session > DraTeX 可以作为DraTeX的前端界面
英国进口.jpg

手机版Mobile version|Leisure Math Forum

2025-4-20 22:07 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list