texpath 指令在 Asymptote 中傳回空數組

texpath 指令在 Asymptote 中傳回空數組

在 Asymptote 中使用該texpath命令時,我只得到一個空路徑數組。我在 Windows 8 機器上使用 miktex 安裝,安裝了 Ghostscript。 (我還在 Linux 機器上安裝了 TeX Live,效果很好)。

編輯:這是一個簡單的例子,其中出現了這個問題:

draw(texpath("Hello, World!"));
label(string(texpath("Hello, World!").length), (0,0));

產生的 pdf 檔案(以及產生的 eps 檔案)顯示一個 0。

編輯2:我使用的是ghostscript版本9.16(32位,但64位元版本也會有同樣的問題)。

答案1

海伊

Asymptote 新版本 v2.33 今天發布。從更新來看

針對 Ghostscript-9.15 中缺少的 epswrite 驅動程式實作了解決方法。

所以看來你可以使用 Ghostscript >=9.15 和 Asymptote 2.33

舊消息:參見使用漸近線建構:未找到 file-2.tex,空表面並且3D 模式下的標籤在 Asymptote 中不起作用。所以你必須等待新的編譯版本或降級ghostscript(在windows下)。

相關內容