summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/animate/animate.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/animate/animate.sty')
-rw-r--r--macros/latex/contrib/animate/animate.sty30
1 files changed, 17 insertions, 13 deletions
diff --git a/macros/latex/contrib/animate/animate.sty b/macros/latex/contrib/animate/animate.sty
index 408cf967f3..ba9fc998e2 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{2022/08/04}
+\def\@anim@version{2022/09/15}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -1575,17 +1575,17 @@
}%
\fi%
\begingroup%
+ \@anim@beginLTR%
+ \ifcsname Ginput@path\endcsname% make use of graphic[xs] search path
+ \let\input@path\Ginput@path%
+ \fi%
+ \SetKeys[anim@user]{#1}%
%store current abs. page num in macro \@anim@abspage
\if@anim@dvisvgm\if@anim@draft\else%
\zref@labelbyprops{anim@abspage\the\@anim@num}{abspage}%
\zref@def@extractdefault{\@anim@abspage}{%
anim@abspage\the\@anim@num}{abspage}{-1}%
\fi\fi%
- \@anim@beginLTR%
- \ifcsname Ginput@path\endcsname% make use of graphic[xs] search path
- \let\input@path\Ginput@path%
- \fi%
- \SetKeys[anim@user]{#1}%
\ifx\empty\@anim@bg\empty\xdef\@anim@alpha{}\fi%
\xdef\@anim@btnsize{\the\dimexpr\@anim@btnsize\relax}%
%correct wrong option combination; totalheight overrides height
@@ -2105,18 +2105,18 @@
}%
\fi%
\begingroup%
- %store current abs. page num in macro \@anim@abspage
- \if@anim@dvisvgm\if@anim@draft\else%
- \zref@labelbyprops{anim@abspage\the\@anim@num}{abspage}%
- \zref@def@extractdefault{\@anim@abspage}{%
- anim@abspage\the\@anim@num}{abspage}{-1}%
- \fi\fi%
\@anim@beginLTR%
\ifdefined\NoHyper\NoHyper\fi% silently suppress any hyperref specials
\ifcsname Ginput@path\endcsname% make use of graphic[xs] search path
\let\input@path\Ginput@path%
\fi%
\SetKeys[anim@user]{#1}%
+ %store current abs. page num in macro \@anim@abspage
+ \if@anim@dvisvgm\if@anim@draft\else%
+ \zref@labelbyprops{anim@abspage\the\@anim@num}{abspage}%
+ \zref@def@extractdefault{\@anim@abspage}{%
+ anim@abspage\the\@anim@num}{abspage}{-1}%
+ \fi\fi%
\ifx\empty\@anim@bg\empty\xdef\@anim@alpha{}\fi%
\xdef\@anim@btnsize{\the\dimexpr\@anim@btnsize\relax}%
%correct wrong option combination; totalheight overrides height
@@ -2389,7 +2389,11 @@
\@anim@updatevars% update variables
\fi%
\global\advance\@anim@mulframecnt by \@ne%
- \def\multiframebreak{\global\@anim@mulframecnt=#1}%
+ \if@anim@draft%
+ \global\@anim@mulframecnt=#1%
+ \else%
+ \def\multiframebreak{\global\@anim@mulframecnt=#1}%
+ \fi%
\ignorespaces%
#3% execute loop body
\unskip%