diff options
author | Karl Berry <karl@freefriends.org> | 2021-11-10 21:17:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-11-10 21:17:55 +0000 |
commit | e1892041babddae7e1be712ccfe1e0d057b44e66 (patch) | |
tree | b6c70412edac02534a8e3b84a66658425acd8bb0 | |
parent | 64b12c0cbd678e0439ccf5388f0db59b5e4b03d2 (diff) |
animate (10nov21)
git-svn-id: svn://tug.org/texlive/trunk@61019 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/animate/ChangeLog | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/animate/animate.pdf | bin | 3878788 -> 3862673 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/animate/animate.tex | 1 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 35 |
4 files changed, 36 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/animate/ChangeLog b/Master/texmf-dist/doc/latex/animate/ChangeLog index bcf633a557b..bc005021448 100644 --- a/Master/texmf-dist/doc/latex/animate/ChangeLog +++ b/Master/texmf-dist/doc/latex/animate/ChangeLog @@ -1,3 +1,6 @@ +2021-11-09 + * improvement: play from beginning, regardless of poster frame setting + 2021-09-02 * fix: non-conforming SVG id attribute values diff --git a/Master/texmf-dist/doc/latex/animate/animate.pdf b/Master/texmf-dist/doc/latex/animate/animate.pdf Binary files differindex c96aafb45b6..2b0b39f0f10 100644 --- a/Master/texmf-dist/doc/latex/animate/animate.pdf +++ b/Master/texmf-dist/doc/latex/animate/animate.pdf diff --git a/Master/texmf-dist/source/latex/animate/animate.tex b/Master/texmf-dist/source/latex/animate/animate.tex index a5fb68d90f3..b85eaa7b504 100644 --- a/Master/texmf-dist/source/latex/animate/animate.tex +++ b/Master/texmf-dist/source/latex/animate/animate.tex @@ -1,3 +1,4 @@ +\listfiles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright 2007--\today Alexander Grahn % diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index 729af653adb..cedd442a724 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}[2020-10-01] -\def\@anim@version{2021/09/02} +\def\@anim@version{2021/11/09} \ProvidesPackage{animate} [\@anim@version\space PDF & SVG animations from files and inline graphics] @@ -3643,7 +3643,10 @@ \fi% var a#1_playsRight,a#1_isPaused\if@anim@step\else,a#1_playing\fi;$% \if@anim@step\else - var a#1_int;$% timer id (takes return val of setIntervall()) + var a#1_int% timer id (takes return val of setIntervall()) + \ifnum\@anim@poster>\z@% custom poster (frame _between_, i. e. + ,a#1_posterOn% not including, first and last) + \fi;$% % function pointers var a#1_pause,a#1_playRight,a#1_playLeft,a#1_playBwd,a#1_playFwd;$% \if@anim@pauseframes @@ -3692,6 +3695,11 @@ \ifnum\@anim@method>\z@% a#1_on=0;$% \fi% + \if@anim@step\else% + \ifnum\@anim@poster>\z@% poster frame _between_ (i. e. non including) first + a#1_posterOn=true;% and last + \fi% + \fi% \ifcase\@anim@method %icon based a#1_wid=this.getField('anm#1');$%reference to interactive widget for(var i=0;i<=\@anim@maxframe;i++){$% @@ -3941,6 +3949,12 @@ \fi% };$% a#1_playRight=function(){$% + \ifnum\@anim@poster>\z@% + if(a#1_posterOn&&!a#1_isPaused){% + a#1_seekFrame(0);% + a#1_posterOn=false;% + }$% + \fi% \if@anim@meas a#1_startMeas();\fi var tmp_int;$% try{tmp_int=\@anim@app setInterval('a#1_gotoNext()',% @@ -3966,6 +3980,12 @@ \fi% };$% a#1_playLeft=function(){$% + \ifnum\@anim@poster>\z@% + if(a#1_posterOn&&!a#1_isPaused){% + a#1_seekFrame(\@anim@maxframe);% + a#1_posterOn=false;% + }$% + \fi% \if@anim@meas a#1_startMeas();\fi var tmp_int;$% try{tmp_int=\@anim@app setInterval('a#1_gotoPrev()',% @@ -4172,7 +4192,16 @@ if(!a#1_isPaused&&a#1_idx!=-2)a#1_seekFrame(-2);$% not paused == stopped \fi% \ifnum\@anim@poster>\@anim@mone %poster=<num>|first - if(!a#1_isPaused&&a#1_idx!=\@anim@poster)a#1_seekFrame(\@anim@poster);$% + \ifnum\numexpr% + \ifnum\@anim@poster>\z@\@ne\else\z@\fi% custom poster + *\if@anim@step\z@\else\@ne\fi\relax>\z@% + if(!a#1_isPaused){$% + if(a#1_idx!=\@anim@poster)a#1_seekFrame(\@anim@poster);$% + a#1_posterOn=true;$% + }$% + \else + if(!a#1_isPaused&&a#1_idx!=\@anim@poster)a#1_seekFrame(\@anim@poster);$% + \fi% \fi% \ifnum\@anim@poster=\@anim@mone %poster=last if(!a#1_isPaused&&a#1_idx!=\@anim@maxframe)a#1_seekFrame(\@anim@maxframe);$% |