texlive[56553] Master/texmf-dist: animate (5oct20)

commits+karl at tug.org commits+karl at tug.org
Mon Oct 5 22:52:11 CEST 2020


Revision: 56553
          http://tug.org/svn/texlive?view=revision&revision=56553
Author:   karl
Date:     2020-10-05 22:52:11 +0200 (Mon, 05 Oct 2020)
Log Message:
-----------
animate (5oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
    trunk/Master/texmf-dist/tex/latex/animate/animate.sty

Modified: trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2020-10-05 20:51:55 UTC (rev 56552)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2020-10-05 20:52:11 UTC (rev 56553)
@@ -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 

Modified: trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2020-10-05 20:51:55 UTC (rev 56552)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2020-10-05 20:52:11 UTC (rev 56553)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2020/09/29}
+\def\@anim at version{2020/10/05}
 \ProvidesPackage{animate}
 [\@anim at 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 at 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 at maxframe||!a#1_isPaused){a#1_stopFirst();}%
+        if(a#1_idx==\@anim at maxframe){%
+          a#1_stopFirst();%
+          \if at 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 at shift)a#1_playsRight=!a#1_playsRight;$%
       \if at anim@palindrome
         if(a#1_idx==0)a#1_playsRight=true;$%
         if(a#1_idx==\@anim at maxframe)a#1_playsRight=false;$%
       \else
-        if(a#1_idx==\@anim at maxframe&&a#1_playsRight)a#1_stopFirst();$%
-        if(a#1_idx==0&&!a#1_playsRight)a#1_stopLast();$%
+        if(a#1_idx==\@anim at maxframe&&a#1_playsRight){%
+          a#1_stopFirst();%
+          \if at 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 at anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi%
+        }$%
       \fi
       if(a#1_playsRight){%
         a#1_playRight();%



More information about the tex-live-commits mailing list.