texlive[49310] Master/texmf-dist: animate (3dec18)

commits+karl at tug.org commits+karl at tug.org
Mon Dec 3 23:30:27 CET 2018


Revision: 49310
          http://tug.org/svn/texlive?view=revision&revision=49310
Author:   karl
Date:     2018-12-03 23:30:26 +0100 (Mon, 03 Dec 2018)
Log Message:
-----------
animate (3dec18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
    trunk/Master/texmf-dist/source/latex/animate/animate.tex
    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	2018-12-03 22:30:11 UTC (rev 49309)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2018-12-03 22:30:26 UTC (rev 49310)
@@ -1,3 +1,7 @@
+2018-11-30
+	* fix : `setTimeout' JS method (used by timeline feature) differs bewteen
+	browsers and PDF viewers
+
 2018-11-29
 	* fix : SVG usability issues on touch (mobile) devices; documentation
 	updated

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

Modified: trunk/Master/texmf-dist/source/latex/animate/animate.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/animate.tex	2018-12-03 22:30:11 UTC (rev 49309)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2018-12-03 22:30:26 UTC (rev 49310)
@@ -1332,7 +1332,7 @@
 \end{center}
 \end{document}
 \end{lstlisting}
-Note that when animating external graphics with \verb+\animategraphics+, only PostScript (EPS, PS, MPS) files are converted to inline SVG code; files in other formats (SVG, PNG, JPEG) remain external and must be bundled with the final SVG output. Also note that PostScript files must have the fonts embedded. This is not always the case for \MP-generated PostScript. Here, embedding of fonts is ensured putting `\verb+prologues := 3+' into the header of the \MP{} input. Unfortunately, animating PostScript files with \verb+\animategraphics+ is limited to vector graphics. If such files contain bitmapped content they must be converted to PNG (or JPEG, if photographs). Of course, these files remain external to the final animated SVG.
+Note that when animating external graphics with \verb+\animategraphics+, only PostScript (EPS, PS, MPS) files are converted to inline SVG code; files in other formats (SVG, PNG, JPEG) remain external and must be bundled with the final SVG output. Also note that PostScript files must have the fonts embedded. This is not always the case for \MP-generated PostScript. Here, embedding of fonts is ensured putting `\verb+prologues := 3;+' into the header of the \MP{} input. Unfortunately, animating PostScript files with \verb+\animategraphics+ is limited to vector graphics. If such files contain bitmapped content they must be converted to PNG (or JPEG, if photographs). Of course, these files remain external to the final animated SVG.
 
 Use one of
 \begin{verbatim}
@@ -1408,7 +1408,7 @@
     {\tt fmtutil-sys -{}-byfmt xelatex}
   \end{enumerate}
 
-  \item If a PDF containing animations is postprocessed using tools like PDFtk to split the document into separate files, then animations in the output documents may not work.
+  \item If a PDF containing animations is post-processed using tools like PDFtk to split the document into separate files, then animations in the output documents may not work.
 
   \item PDFs with animations cannot be embedded (via {\tt\string\includegraphics},\\ {\tt\string\includepdf}) into other documents as the animation capability gets lost.
 

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2018-12-03 22:30:11 UTC (rev 49309)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2018-12-03 22:30:26 UTC (rev 49310)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2018/11/29}
+\def\@anim at version{2018/11/30}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF & SVG animations from files and inline graphics]
 
@@ -3477,6 +3477,7 @@
 % PDF readers
 \def\@anim at consoleshow{console.show();}
 \def\@anim at app{app.}
+\def\@anim at setTimeout{setTimeOut}
 \def\@anim at log{println}
 \def\@anim at shift{shift}
 \if at anim@dvisvgm
@@ -3483,12 +3484,14 @@
   % web browsers
   \def\@anim at consoleshow{}
   \def\@anim at app{}
+  \def\@anim at setTimeout{setTimeout}
   \def\@anim at log{log}
   \def\@anim at shift{shiftKey}
 \fi
 
-\begingroup % `$' --> newline in svg output
+\begingroup
 
+% `$' --> newline in svg output
 \if at anim@dvisvgm
   %insert newline special
   \catcode`\$=\active\gdef${{?nl}}
@@ -3673,7 +3676,7 @@
       \if at anim@usrjs
         if(typeof a#1_usrJS[f]!=='undefined'){$%
           a#1_curjs=a#1_usrJS[f];$%
-          var ret=\@anim at app setTimeOut(% execute JS in "parallel"
+          var ret=\@anim at app\@anim at setTimeout(% execute JS in "parallel"
             'try{a#1_curjs();}catch(e){console.\@anim at log(e);}',1%
           );$%
         }$%
@@ -4233,4 +4236,5 @@
   }
 \fi
 
-\endgroup % `$'--> newline in svg
+\endgroup
+\endinput



More information about the tex-live-commits mailing list