texlive[56583] Master/texmf-dist: animate (6oct20)

commits+karl at tug.org commits+karl at tug.org
Wed Oct 7 22:53:09 CEST 2020


Revision: 56583
          http://tug.org/svn/texlive?view=revision&revision=56583
Author:   karl
Date:     2020-10-07 22:53:08 +0200 (Wed, 07 Oct 2020)
Log Message:
-----------
animate (6oct20)

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-07 20:52:53 UTC (rev 56582)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2020-10-07 20:53:08 UTC (rev 56583)
@@ -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)
 

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-07 20:52:53 UTC (rev 56582)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2020-10-07 20:53:08 UTC (rev 56583)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2020/10/05}
+\def\@anim at version{2020/10/07}
 \ProvidesPackage{animate}
 [\@anim at 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 at anim@step\else
@@ -4240,21 +4238,25 @@
       \if at anim@palindrome
         if(a#1_idx==0)a#1_playsRight=true;$%
         if(a#1_idx==\@anim at 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 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 at 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 at anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi%
+          \if at 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){}$%
 }%



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