From 5570b707eb0240d778c13369f8b1d4799769fdc3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Oct 2020 20:52:11 +0000 Subject: animate (5oct20) git-svn-id: svn://tug.org/texlive/trunk@56553 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/animate/ChangeLog | 5 ++++- Master/texmf-dist/doc/latex/animate/animate.pdf | Bin 3900656 -> 3884915 bytes Master/texmf-dist/tex/latex/animate/animate.sty | 23 +++++++++++++++++------ 3 files changed, 21 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/animate/ChangeLog b/Master/texmf-dist/doc/latex/animate/ChangeLog index fcbc863bd1c..de768f4ae6b 100644 --- a/Master/texmf-dist/doc/latex/animate/ChangeLog +++ b/Master/texmf-dist/doc/latex/animate/ChangeLog @@ -1,5 +1,8 @@ +2020-10-05 + * fix: pausing on the 0th/last frames (continued) + 2020-09-29 - * fix: pausing at the 0th frame + * fix: pausing on the 0th frame 2020-08-29 * new: \multiframebreak for terminating \multiframe loop diff --git a/Master/texmf-dist/doc/latex/animate/animate.pdf b/Master/texmf-dist/doc/latex/animate/animate.pdf index ef8589938e5..e85c20f423e 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 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();% -- cgit v1.2.3