diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-27 22:04:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-27 22:04:16 +0000 |
commit | fef92f3f1563f60dd34f405b87b18616879c277a (patch) | |
tree | a72db63d335e14948b8ae26d4c06e9c846e62d71 /Master/texmf-dist/tex/latex/animate | |
parent | 6013290e476411dc798be8556cad840e6dbe2334 (diff) |
animate (27nov19)
git-svn-id: svn://tug.org/texlive/trunk@52944 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index 9eb6adb3688..c43aa7ef750 100644 --- a/Master/texmf-dist/tex/latex/animate/animate.sty +++ b/Master/texmf-dist/tex/latex/animate/animate.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e} -\def\@anim@version{2019/11/05} +\def\@anim@version{2019/11/27} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -84,7 +84,8 @@ % store result into macro given as #3 \ifpdf %pdflatex/lualatex \def\@anim@getpagecount#1#2#3{% - \pdfximage page 1 {#1.#2}\xdef#3{\the\pdflastximagepages}% + \edef\@anim@tempfilename{\noexpand\unquote@name{#1.#2}}% + \pdfximage page 1 {\@anim@tempfilename}\xdef#3{\the\pdflastximagepages}% } \else \if@anim@xetex @@ -3721,6 +3722,7 @@ %JS initialisation \gdef\@anim@@jsinit#1{% #1: @anim@num + \if@anim@dvisvgm\else var curdoc=this;\fi if(!a#1_fr){$% a#1_fr=new Array();$% \ifnum\@anim@method>\z@% @@ -3820,11 +3822,11 @@ if(f<-1){$% \ifcase\@anim@method %icon based a#1_wid.buttonSetIcon(blnk);$% - this.dirty=false;$% + curdoc.dirty=false;$% \or %widget based a#1_on=0;$% a#1_fr[0].display=display.hidden;$% - this.dirty=false;$% + curdoc.dirty=false;$% \or %ocg based a#1_on=0;$% \if@anim@dvisvgm @@ -3848,12 +3850,12 @@ \fi% \ifcase\@anim@method %icon based a#1_wid.buttonSetIcon(a#1_fr[f]);$% - this.dirty=false;$% + curdoc.dirty=false;$% \or %widget based a#1_fr[a#1_on].display=display.hidden;$% a#1_fr[f].display=display.visible;$% a#1_on=f;$% - this.dirty=false;$% + curdoc.dirty=false;$% \or%ocg based \if@anim@dvisvgm a#1_fr[a#1_on].setAttribute('visibility','hidden');$% @@ -3981,7 +3983,7 @@ a#1_btnPlayLeft.display=display.visible;$% a#1_btnPauseRight.display=display.hidden;$% a#1_btnPlayRight.display=display.visible;$% - this.dirty=false;$% + curdoc.dirty=false;$% \fi% \fi% };$% @@ -4006,7 +4008,7 @@ a#1_btnPlayLeft.display=display.hidden;$% a#1_btnPauseRight.display=display.visible;$% a#1_btnPlayRight.display=display.hidden;$% - this.dirty=false;$% + curdoc.dirty=false;$% \fi% \fi% };$% @@ -4031,7 +4033,7 @@ a#1_btnPlayLeft.display=display.hidden;$% a#1_btnPauseRight.display=display.visible;$% a#1_btnPlayRight.display=display.hidden;$% - this.dirty=false;$% + curdoc.dirty=false;$% \fi% \fi% };$% |