diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-08 00:12:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-08 00:12:58 +0000 |
commit | 60380561291d788adc7d4a93e9a24c1fd5b274dc (patch) | |
tree | 3badd58e97a3bda7ebd151ee02d68378592c0724 /Master/texmf/asymptote | |
parent | 8e0208016c9aa5f9596e49e00b5b75d4e526f40f (diff) |
post-release fixes from bowman
git-svn-id: svn://tug.org/texlive/trunk@19279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote')
-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(); |