From fb163bd8a33be83ffc24acb554c31fc4b7170e39 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Oct 2020 20:53:08 +0000 Subject: animate (6oct20) git-svn-id: svn://tug.org/texlive/trunk@56583 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/animate/ChangeLog | 3 +++ Master/texmf-dist/doc/latex/animate/animate.pdf | Bin 3884915 -> 3899235 bytes Master/texmf-dist/tex/latex/animate/animate.sty | 22 ++++++++++++---------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Master/texmf-dist/doc/latex/animate/ChangeLog b/Master/texmf-dist/doc/latex/animate/ChangeLog index de768f4ae6b..de1293448a1 100644 --- a/Master/texmf-dist/doc/latex/animate/ChangeLog +++ b/Master/texmf-dist/doc/latex/animate/ChangeLog @@ -1,3 +1,6 @@ +2020-10-07 + * fix: pausing on the 0th/last frames (PDF output) + 2020-10-05 * fix: pausing on the 0th/last frames (continued) diff --git a/Master/texmf-dist/doc/latex/animate/animate.pdf b/Master/texmf-dist/doc/latex/animate/animate.pdf index e85c20f423e..a1a258477c7 100644 Binary files a/Master/texmf-dist/doc/latex/animate/animate.pdf and b/Master/texmf-dist/doc/latex/animate/animate.pdf differ diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index d5003db446b..caa4574eecb 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/10/05} +\def\@anim@version{2020/10/07} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -3899,7 +3899,6 @@ \fi% \fi% \fi - return;$% }$% };$% a#1_gotoPrev=function(){$% @@ -3930,7 +3929,6 @@ \fi% \fi% \fi - return;$% }$% };$% \if@anim@step\else @@ -4240,21 +4238,25 @@ \if@anim@palindrome if(a#1_idx==0)a#1_playsRight=true;$% if(a#1_idx==\@anim@maxframe)a#1_playsRight=false;$% + if(a#1_playsRight){a#1_playRight();}else{a#1_playLeft();}% \else + var a#1_doplay=true;$% 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@anim@pauseframes + if(a#1_pauseAt[a#1_idx]){a#1_pause();a#1_doplay=false;}% + \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% + \if@anim@pauseframes + if(a#1_pauseAt[a#1_idx]){a#1_pause();a#1_doplay=false;}% + \fi% + }$% + if(a#1_doplay){% + if(a#1_playsRight){a#1_playRight();}else{a#1_playLeft();}% }$% \fi - if(a#1_playsRight){% - a#1_playRight();% - }else{% - a#1_playLeft();% - }$% \fi% }catch(e){}$% }% -- cgit v1.2.3