使用渐近线构建:未找到 file-2.tex,表面为空

使用渐近线构建:未找到 file-2.tex,表面为空

尝试使用 Asymptote 进行编译时,我总是收到这些奇怪的错误。我先使用 pdflatex 进行编译,然后使用 asymptote,最后使用 pdflatex。错误如标题所述。例如,在构建latexusage.tex(示例 asymptote 文件)时,它显示line 91 file 'latexusage-2.tex' not found。生成的 pdf 中显示了第一个和最后一个图形,但缺少 3D 立方体。知道我缺少什么吗?

为了安装,我使用了此链接由 Speravir 提供。

看起来-2.tex应该是第二张图片的 tex 文件。-2.asy-2.out文件已创建并位于文件夹中,但不是文件-2.tex

编辑:尝试制作 MWE 后,我收到C:\Program Files (x86)\Asymptote/three_surface.asy: 906.10: null surface此代码的错误(但如果我删除标签行则不会出现错误):

\documentclass[12pt]{article}
\usepackage{asymptote}
\begin{document}

\begin{asydef}
import three;
usepackage("bm");
texpreamble("\def\V#1{\bm{#1}}");
\end{asydef}

\begin{asy}
draw(unitcube,blue);
label("$V-E+F=2$",(0,1,0.5),3Y,blue+fontsize(17pt));
\end{asy}
\end{document}

相关内容