diff options
Diffstat (limited to 'macros/latex/contrib/animate/animate.sty')
-rw-r--r-- | macros/latex/contrib/animate/animate.sty | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/latex/contrib/animate/animate.sty b/macros/latex/contrib/animate/animate.sty index fc126ce70a..461eb50b50 100644 --- a/macros/latex/contrib/animate/animate.sty +++ b/macros/latex/contrib/animate/animate.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] -\def\@anim@version{2023/06/18} +\def\@anim@version{2024/10/14} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -530,6 +530,7 @@ /Subtype/Widget% /F 2% /FT/Btn/Ff 65537% + /A <</S/ResetForm>>% to make pdf.js happy /BS <</W 0>>% /AP <</N \@anim@framexform>>% /MK <</TP 1/I \@anim@framexform% @@ -562,6 +563,7 @@ /Subtype/Widget% \@anim@annotflag% /FT/Btn/Ff 65537% + /A <</S/ResetForm>>% /BS <</W 0>>% /AP <</N \@anim@framexform>>% /MK <</TP 1/I \@anim@framexform% @@ -1623,7 +1625,8 @@ \if@anim@controls@stop\setboolean{@anim@controls}{true}\fi% \if@anim@controls@step\setboolean{@anim@controls}{true}\fi% \fi% - \edef\@anim@base{#3}% + \Gin@set@curr@file{#3}% + \expandafter\edef\expandafter\@anim@base\expandafter{\@curr@file}% \edef\@anim@first{#4}% \edef\@anim@last{#5}% \@anim@checkmultipage{\@anim@base}{\@anim@ftype}%test for multipage file @@ -2072,6 +2075,8 @@ \@anim@tooltip% \if@anim@js% /AA <</D <</S/JavaScript/JS (\@anim@btnJS{#1}{\@anim@arg})>>>>% + \else% + /A <</S/ResetForm>>% \fi% }% \if@anim@js% @@ -3347,7 +3352,8 @@ \setboolean{@anim@@draft}{false}% } \newboolean{@anim@@nomouse} -\def\@anim@@method{\z@}%default animation method is `icon' +%\def\@anim@@method{\z@}%default animation method is `icon' +\def\@anim@@method{\@ne}%default animation method is `widget' \def\@anim@@ftype{}% file type (extension) of graphics \ExplSyntaxOn |