diff options
Diffstat (limited to 'Master/texmf/asymptote/animation.asy')
-rw-r--r-- | Master/texmf/asymptote/animation.asy | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/animation.asy b/Master/texmf/asymptote/animation.asy index 582b32bced4..57e13ab6e03 100644 --- a/Master/texmf/asymptote/animation.asy +++ b/Master/texmf/asymptote/animation.asy @@ -132,12 +132,17 @@ struct animation { return s; } + bool pdflatex() + { + return latex() && pdf(); + } + string pdf(enclosure enclosure=NoBox, real delay=animationdelay, string options="", bool keep=settings.keep, bool multipage=true) { if(settings.inlinetex) multipage=true; if(!global) multipage=false; - if(settings.tex != "pdflatex") - abort("inline pdf animations require -tex pdflatex"); + if(!pdflatex()) + abort("inline pdf animations require -tex pdflatex or -tex xelatex"); if(settings.outformat != "") settings.outformat="pdf"; string filename=basename(); |