渐近线升级后,LaTeX 文档中的旧渐近线代码不起作用

渐近线升级后,LaTeX 文档中的旧渐近线代码不起作用

我有一个嵌入了 Asymptote 代码的 LaTeX 文档,运行良好。也就是说,在 Asymptote 2.15 中。
当我升级到 2.32 并重新运行时,程序在处理其中一个图表时卡住了。卡住了,没有错误消息或终止。
如果我单独运行相应的 asymptote 代码,它就可以正常工作。但是,如果我尝试运行过程中生成的文件 xxx-n.asy,它也会以同样的方式卡住。
看起来它是以下行之一

if(!settings.multipleView) settings.batchView=false;
settings.tex="pdflatex";
settings.inlinetex=true;
settings.inlineimage=true;

导致问题的原因。但我无法弄清楚是哪个,更重要的是,为什么。
我错过了 2.15 和 2.32 版本之间发生了什么,并对此做出解释。

根据要求,这里有一个示例文件:

\documentclass[12pt,a4paper]{article}
\usepackage{asymptote}

\title{A test example}
\author{Me}
\date{\today}  
\begin{document}  
\maketitle
\section{Introduction}
Some introductory text.

\begin{center}
\begin{asy}
import graph3;
import solids;
size(100);
currentprojection=orthographic(5,3,2);
revolution sphere=sphere(1);
draw(surface(sphere),green+opacity(0.2),nv=5);
draw(arc((0,0,0),1,90,0,90,60,CCW)--arc((0,0,0),1,90,60,0,60,CCW)--arc((0,0,0),1,0,0,90,0)--cycle,red+2);
draw(circle((0,0,0),1,(0,0,1)));
draw(arc((0,0,0.9),0.1,10,0,10,60));
label("$\alpha$",(0,0,.8));
\end{asy}
\end{center}
More text
\end{document} 

相关内容