使用漸近線建構:未找到 file-2.tex,空表面

使用漸近線建構:未找到 file-2.tex,空表面

當嘗試使用 Asymptote 進行編譯時,我不斷收到這些奇怪的錯誤。我先用 pdflatex 編譯,再用 asymptote 編譯,再用 pdflatex 編譯。錯誤如標題所示。例如,在建置latexusage.tex(範例漸近線檔案)時,它表示在line 91 file 'latexusage-2.tex' not found.第一個和最後一個圖形顯示在產生的 pdf 中,但缺少 3D 立方體。我有什麼想法嗎?

為了安裝,我使用了中的說明這個連結由斯佩拉韋。

看來-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}

相關內容