diff options
author | Karl Berry <karl@freefriends.org> | 2020-10-05 20:52:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-10-05 20:52:11 +0000 |
commit | 5570b707eb0240d778c13369f8b1d4799769fdc3 (patch) | |
tree | 38a52e62cd33e2bfec55af98c6ae3783e6d799e8 /Master/texmf-dist/tex/latex | |
parent | 6252bbe05d6c7516d6361714eacfd384ccae3389 (diff) |
animate (5oct20)
git-svn-id: svn://tug.org/texlive/trunk@56553 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index ee1f166b735..d5003db446b 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{2020/09/29} +\def\@anim@version{2020/10/05} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -4058,11 +4058,17 @@ a#1_isPaused=true;% }};$% a#1_playBwd=function(){% - if(a#1_idx==0||!a#1_isPaused){a#1_stopLast();}% + if(a#1_idx==0){% + a#1_stopLast();% + \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi% + }% a#1_playLeft();% };$% a#1_playFwd=function(){% - if(a#1_idx==\@anim@maxframe||!a#1_isPaused){a#1_stopFirst();}% + if(a#1_idx==\@anim@maxframe){% + a#1_stopFirst();% + \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi% + }% a#1_playRight();% };$% \fi% @@ -4230,14 +4236,19 @@ \fi a#1_isPaused=true;$% \else - if(!a#1_isPaused)a#1_stopFirst();$% if(event.\@anim@shift)a#1_playsRight=!a#1_playsRight;$% \if@anim@palindrome if(a#1_idx==0)a#1_playsRight=true;$% if(a#1_idx==\@anim@maxframe)a#1_playsRight=false;$% \else - if(a#1_idx==\@anim@maxframe&&a#1_playsRight)a#1_stopFirst();$% - if(a#1_idx==0&&!a#1_playsRight)a#1_stopLast();$% + if(a#1_idx==\@anim@maxframe&&a#1_playsRight){% + a#1_stopFirst();% + \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi% + }$% + if(a#1_idx==0&&!a#1_playsRight){% + a#1_stopLast();% + \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi% + }$% \fi if(a#1_playsRight){% a#1_playRight();% |