diff options
Diffstat (limited to 'macros/latex/contrib/animate/animate.sty')
-rw-r--r-- | macros/latex/contrib/animate/animate.sty | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/macros/latex/contrib/animate/animate.sty b/macros/latex/contrib/animate/animate.sty index eaf27e7440..679dad68f3 100644 --- a/macros/latex/contrib/animate/animate.sty +++ b/macros/latex/contrib/animate/animate.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e} -\def\@anim@version{2020/05/06} +\def\@anim@version{2020/05/07} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -316,12 +316,8 @@ \gdef\@anim@lscape{}% \gdef\@anim@@lscape{:ls}% \ifdefined\landscape% -% \if@anim@dvisvgm% disable `landscape' environment -% \renewenvironment{landscape}{}{}% -% \else% - \g@addto@macro{\landscape}{\gdef\@anim@lscape{:ls}}% - \g@addto@macro{\endlandscape}{\gdef\@anim@lscape{}}% -% \fi% + \g@addto@macro{\landscape}{\gdef\@anim@lscape{:ls}}% + \g@addto@macro{\endlandscape}{\gdef\@anim@lscape{}}% \fi% } @@ -887,13 +883,11 @@ % separately. \ifcsname btn#1:#2\endcsname\else% \ifx\empty\@anim@bg\empty\else% - \@anim@xbutton{ResetBG}{% - \@anim@btnresetbg}{#2}% + \@anim@xbutton{ResetBG}{\@anim@btnresetbg}{#2}% \fi% \begingroup% \def\@anim@alpha{}% - \@anim@xbutton{ResetFG}{% - \@anim@btnreset}{#2}% + \@anim@xbutton{ResetFG}{\@anim@btnreset}{#2}% \endgroup% \ifx\empty\@anim@bg\empty\else% \global\setbox\@anim@box=\hbox to \@anim@btnsize {% @@ -1720,11 +1714,12 @@ \if@anim@export\else% % insert <script> part \if@anim@dvisvgm\@anim@script{\the\@anim@num}\fi% - \@anim@insertwidgets{\the\@anim@num}{% + \edef\@anim@btnattrs{% \@anim@bgcolour:\@anim@fgcolour:\@anim@alpha% \if@anim@dvisvgm:\@anim@btnsize:\@anim@abspage\fi% \@anim@lscape% }% + \@anim@insertwidgets{\the\@anim@num}{\@anim@btnattrs}% \fi% \fi% \@anim@endLTR% @@ -2167,11 +2162,12 @@ \if@anim@export\else% % insert <script> part \if@anim@dvisvgm\@anim@script{\the\@anim@num}\fi% - \@anim@insertwidgets{\the\@anim@num}{% + \edef\@anim@btnattrs{% \@anim@bgcolour:\@anim@fgcolour:\@anim@alpha% \if@anim@dvisvgm:\@anim@btnsize:\@anim@abspage\fi% \@anim@lscape% }% + \@anim@insertwidgets{\the\@anim@num}{\@anim@btnattrs}% \fi% % if last frame used as poster, write frame num to aux file \ifnum\@anim@poster=\@anim@mone\relax% |