找回密码
 快速注册
搜索
查看: 39|回复: 2

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

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-1-19 04:38 |阅读模式
本帖最后由 hbghlyj 于 2023-2-19 01:55 编辑 Asymptote文档 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
复制代码

我按照上面运行 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

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-1-19 04:42
本帖最后由 hbghlyj 于 2023-1-19 11:16 编辑 找到了相同的问题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)

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-1-19 05:12
测试了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

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:36

Powered by Discuz!

× 快速回复 返回顶部 返回列表