texlive[43526] Master/texmf-dist: animate (17may17)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 17 22:35:27 CET 2017


Revision: 43526
          http://tug.org/svn/texlive?view=revision&revision=43526
Author:   karl
Date:     2017-03-17 22:35:26 +0100 (Fri, 17 Mar 2017)
Log Message:
-----------
animate (17may17)

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/source/latex/animate/files/exp.mp
    trunk/Master/texmf-dist/source/latex/animate/files/scarab.mp
    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	2017-03-17 21:35:13 UTC (rev 43525)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2017-03-17 21:35:26 UTC (rev 43526)
@@ -1,3 +1,6 @@
+2017-03-16
+	* fix: some adjustments required due to pdfbase.sty changes
+
 2017-02-24
 	* fix: further speed improvement for animating external graphics files
 

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	2017-03-17 21:35:13 UTC (rev 43525)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2017-03-17 21:35:26 UTC (rev 43526)
@@ -441,7 +441,7 @@
 \end{verbatim}
 would have to look like
 \begin{verbatim}
-  console.println('{}\%\}\{\\n'); 
+  console.println('{}\%\}\{\\n');
 \end{verbatim}
 in the timeline file. The first pair of braces are balancing themselves and do not need to be escaped.
 
@@ -470,7 +470,7 @@
 The package provides a simple JavaScript programming interface which gives access to the animation objects in a PDF file. A particular animation property or method can be accessed by
 \begin{verbatim}
   anim['<anim label>'].<property or method>
-\end{verbatim} 
+\end{verbatim}
 or
 \begin{verbatim}
   anim.<anim label>.<property or method>
@@ -563,7 +563,7 @@
     jsaction={
       if(anim['taylor'].isPlaying)
         anim['taylor'].pause();
-      else  
+      else
         anim['taylor'].playFwd();
     }
   ]{\fbox{Play/Pause}}
@@ -595,7 +595,7 @@
   jsaction={
     if(anim['taylor'].isPlaying)
       anim['taylor'].pause();
-    else  
+    else
       anim['taylor'].playFwd();
   }
 ]{\fbox{Play/Pause}}
@@ -1319,7 +1319,7 @@
   \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 PDFs with animations cannot be embedded (via {\tt \string\includegraphics, \string\includepdf}) into other documents as the animation capability gets lost.
 
   \item Animations should not be placed on \emph{multilayered} slides, also known as overlays, created with presentation making classes such as Beamer or Powerdot. Although possible (on the last overlay of a slide, at best), the result might be disappointing. Put animations on flat slides only. (Of course, slides without animations may still have overlays.)
@@ -1331,7 +1331,8 @@
 \begin{thebibliography}{8}
 \bibitem{chupin} Chupin, M.: \emph{Syracuse MetaPost/Animations.} URL: \url{http://melusine.eu.org/syracuse/metapost/animations/chupin/?idsec=scara}
 \bibitem{gilg05} Gilg, J.: PDF-Animationen. In: \emph{Die \TeX nische Kom\"odie}, Issue 4, 2005, pp.~30--37
-\bibitem{hol} Holeček, J.: \emph{Animations in a pdf\TeX-generated PDF}. URL: \url{http://www.fi.muni.cz/~xholecek/tex/pdfanim.xhtml}
+%\bibitem{hol} Holeček, J.: \emph{Animations in a pdf\TeX-generated PDF}. URL: \url{http://www.fi.muni.cz/~xholecek/tex/pdfanim.xhtml}
+\bibitem{hol} Holeček, J.; Sojka, P.: Animations in pdf\TeX-generated PDF. In: \emph{\TeX, XML, and Digital Typography}, Springer, 2004, pp.~179--191. doi:10.1007/978-3-540-27773-6\textunderscore14
 \bibitem{luque12} Luque, M.: \emph{PSTricks : applications.} URL: \url{http://pstricks.blogspot.com}
 \bibitem{media9} \emph{The media9 Package}. URL: \url{http://www.ctan.org/pkg/media9}
 \end{thebibliography}

Modified: trunk/Master/texmf-dist/source/latex/animate/files/exp.mp
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/files/exp.mp	2017-03-17 21:35:13 UTC (rev 43525)
+++ trunk/Master/texmf-dist/source/latex/animate/files/exp.mp	2017-03-17 21:35:26 UTC (rev 43526)
@@ -1,5 +1,5 @@
 % Jan Holecek, Alexander Grahn
-% 2017/02/10
+% 2017/02/27
 
 filenametemplate "%j_%c.mps";
 verbatimtex
@@ -7,9 +7,8 @@
 \usepackage[latin1]{inputenc}
 \usepackage[T1]{fontenc}
 %\usepackage{lmodern}
-  \usepackage{libertine}
+  \usepackage[tt=false]{libertine}
   \usepackage[libertine]{newtxmath}
-  \usepackage[scaled=0.83]{luximono} %override beramono (doesn't look like tt font)
 \usepackage{amsmath}
 \begin{document}
 etex

Modified: trunk/Master/texmf-dist/source/latex/animate/files/scarab.mp
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/files/scarab.mp	2017-03-17 21:35:13 UTC (rev 43525)
+++ trunk/Master/texmf-dist/source/latex/animate/files/scarab.mp	2017-03-17 21:35:26 UTC (rev 43526)
@@ -1,5 +1,5 @@
 % Maxime Chupin, Alexander Grahn
-% 2013/10/15
+% 2017/02/27
 
 filenametemplate "%j_%c.mps";
 
@@ -8,9 +8,8 @@
 \usepackage[latin1]{inputenc}
 \usepackage[T1]{fontenc}
 %\usepackage{lmodern}
-  \usepackage{libertine}
+  \usepackage[tt=false]{libertine}
   \usepackage[libertine]{newtxmath}
-  \usepackage[scaled=0.83]{luximono} %override beramono (doesn't look like tt font)
 \usepackage{amsmath}
 \begin{document}
 etex

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-03-17 21:35:13 UTC (rev 43525)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-03-17 21:35:26 UTC (rev 43526)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2017/02/24}
+\def\@anim at version{2017/03/16}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF animations from files and inline graphics]
 
@@ -94,8 +94,8 @@
     \xdef\@anim at lastobj{\pbs_pdflastobj:}
   }
 
-  \def\@anim at xform#1#2#3{
-    \pbs_pdfxform:nnn{#1}{#2}{#3}
+  \def\@anim at xform#1#2#3#4{
+    \pbs_pdfxform:nnnnn{#1}{#2}{}{#3}{#4}
     \xdef\@anim at lastxform{\pbs_pdflastxform:}
   }
 
@@ -185,9 +185,7 @@
 
 %macro for writing global defs to external *.aux file
 \def\@anim at keytoaux#1#2{%
-  \@bsphack\protected at write\@mainaux{}{%
-    \string\@anim at newkey{#1}{#2}%
-  }\@esphack%
+  \immediate\write\@mainaux{\string\@anim at newkey{#1}{#2}}%
   \ifthenelse{\equal{\@anim at getkeyval{#1}}{#2}}{}{%
     \AtEndDocument{\@animate at rerunwarn}}%
 }
@@ -303,7 +301,6 @@
     }%
     \@anim at xinline{#1}{#2}{\@anim at box}{\@anim at curxform}%
   }%
-  \message{<a#1,fr#2>}%
 }
 
 %creates Form XObject from box contents
@@ -331,7 +328,7 @@
   %create form xobject from box argument
   \ifthenelse{\equal{#4}{!}}{% %%%% new graphics %%%%
     %put graphics into XObject
-    \@anim at xform{1}{0}{#3}%
+    \@anim at xform{1}{0}{}{#3}%
     \xdef\@anim@@lastxform{\@anim at lastxform}%
     \@anim at newkey{natdims:\@anim at lastxform}{%
       {\@anim at curwd}{\@anim at curht}{\@anim at curdp}%
@@ -354,7 +351,7 @@
           }{\raisebox{\depth}{\box#3}}%
         }%
       }%
-      \@anim at xform{0}{0}{#3}%
+      \@anim at xform{0}{0}{}{#3}%
     \fi%
   \fi%
   %keep a record of XObject number
@@ -363,6 +360,7 @@
     \@anim at newkey{frmcontent@#2}{\@anim at getkeyval{img@#2},}%
     \@anim at makeframe{#1}{#2}%
   \fi%
+  \message{<a#1,fr#2>}%
 }
 
 \def\@anim at insertfrmcontent#1,#2\@nil{%
@@ -378,9 +376,8 @@
 
 %inserts one animation frame into the output acc. to
 % \ifcase\@anim at method as
-% 0: Form XObject (not referenced in the page content stream)
-% 1: non-interactive Widget annotation
-% 2: referenced Form XObject in the page content, tagged as OC
+% 0 & 1: non-interactive Widget annotation
+% 2: Form XObject referenced in the page content, tagged as OC
 % animation
 \def\@anim at makeframe#1#2{%
   %container box
@@ -398,7 +395,7 @@
     \fi%
   \fi%
   \ifcase\@anim at method% icon based
-    \@anim at xform{0}{1}{\@anim at box}%
+    \@anim at xform{0}{1}{}{\@anim at box}%
     %initial visibility
     \ifnum\@anim at poster>\@anim at mtwo\relax% insert poster frame
       \ifnum#2=\@anim at poster\relax%
@@ -437,7 +434,7 @@
       \fi%
     \fi%
     %frame insertion
-    \@anim at xform{0}{1}{\@anim at box}%
+    \@anim at xform{0}{1}{}{\@anim at box}%
     \@anim at pdfwid{\@anim at animwidth}{\@anim at animheight}{\@anim at animdepth}{%
       /Subtype/Widget%
       \@anim at annotflag%
@@ -446,7 +443,6 @@
       /AP <</N \@anim at lastxform>>%
       /MK <</TP 1/I \@anim at lastxform/IF<</S/A/FB true>>>>%
       /T (#1.#2)%
-      \ifdefined\ocgxii at insert@OC\ocgxii at insert@OC\fi%
     }%
   \or% ocg based
     \@anim at newocg{#1}{#2}%
@@ -480,10 +476,14 @@
       }%
     \fi%
     %frame insertion
-    \@anim at xform{0}{0}{\@anim at box}%
-    \ocgbase at oc@bdc{\@anim at curocg}%
+%    % marked content method
+%    \@anim at xform{0}{0}{}{\@anim at box}%
+%    \ocgbase at oc@bdc{\@anim at curocg}%
+%    \@anim at refxform{\@anim at lastxform}%
+%    \ocgbase at oc@emc%
+    % /OC  method
+    \@anim at xform{0}{0}{/OC \@anim at curocg}{\@anim at box}%
     \@anim at refxform{\@anim at lastxform}%
-    \ocgbase at oc@emc%
   \fi%
 }
 
@@ -1545,7 +1545,7 @@
     \ifnum\@anim at poster=\@anim at mtwo\relax%
       \ifdefined\@anim at apdummy\else% empty appearance widget
         \setbox\@anim at box=\hbox{\phantom{x}}%
-        \@anim at xform{0}{0}{\@anim at box}%
+        \@anim at xform{0}{0}{}{\@anim at box}%
         \xdef\@anim at apdummy{\@anim at lastxform}%
         \@anim at pdfwid{1ex}{1ex}{\z@}{%
           /Subtype/Widget%
@@ -1564,7 +1564,7 @@
   \else%
     \ifdefined\@anim at apdummy\else% empty appearance dummy
       \setbox\@anim at box=\hbox{\phantom{x}}%
-      \@anim at xform{0}{0}{\@anim at box}%
+      \@anim at xform{0}{0}{}{\@anim at box}%
       \xdef\@anim at apdummy{\@anim at lastxform}%
     \fi%
     \def\@anim at apmk{\@anim at apdummy}%
@@ -1583,18 +1583,6 @@
       /PC <</S/JavaScript/JS \@anim at pcjscriptobj>>% PageClose
     >>%
   }%
-  %With icon and ocg method, we put one dummy widget below; this seems to be
-  %necessary for the OCG visibility referenced by the /OC entry to work as
-  %expected (if we place the animation on a PDF layer using ocgx2.sty).
-  \ifnum\@anim at method=\@ne\relax\else%
-    \ifdefined\ocgxii at insert@OC%
-      \ifthenelse{\equal{\ocgxii at insert@OC}{}}{}{%
-        \@anim at pdfwid{\@anim at animwidth}{\@anim at animheight}{\@anim at animdepth}{%
-          /Subtype/Widget/F 2%
-        }%
-      }%
-    \fi%
-  \fi%
   \@anim at pdfwid{\@anim at animwidth}{\@anim at animheight}{\@anim at animdepth}{%
     /Subtype/Widget%
     /FT/Btn/Ff \@anim at btnflag%
@@ -1612,7 +1600,6 @@
     >>%
     /AP <</N \@anim at apmk>>%
     /MK <</TP 1/I \@anim at apmk/IF<</S/A/FB true>>>>%
-    \ifdefined\ocgxii at insert@OC\ocgxii at insert@OC\fi%
   }%
   \hbox to \@anim at animwidth {%
     \vrule width 0pt height \@anim at animheight depth \@anim at animdepth%
@@ -1641,19 +1628,12 @@
   \if at anim@mk\else%
     \ifdefined\@anim at apdummy\else% empty appearance dummy
       \setbox\@anim at box=\hbox{\phantom{x}}%
-      \@anim at xform{0}{0}{\@anim at box}%
+      \@anim at xform{0}{0}{}{\@anim at box}%
       \xdef\@anim at apdummy{\@anim at lastxform}%
     \fi%
   \fi%
   \if at anim@js\@anim at upjscript{#1}{#2}\fi% JavaScript actions for ButtonUp events
   \setlength{\@anim at tmpdima}{\@anim at btnsize}%
-  \ifdefined\ocgxii at insert@OC% put dummy widget below (for ocgx2 compatibility)
-    \ifthenelse{\equal{\ocgxii at insert@OC}{}}{}{%
-      \@anim at pdfwid{\@anim at tmpdima}{\@anim at tmpdima}{\z@}{%
-        /Subtype/Widget/F 2%
-      }%
-    }%
-  \fi%
   \@anim at pdfwid{\@anim at tmpdima}{\@anim at tmpdima}{\z@}{%
     /Subtype/Widget%
     \@anim at annotflag%
@@ -1670,7 +1650,6 @@
     /T (#1.#2)%
     \@anim at tooltip%
     \if at anim@js/A <</S/JavaScript/JS (\@anim at upjscriptstring)>>\fi%
-    \ifdefined\ocgxii at insert@OC\ocgxii at insert@OC\fi%
   }%
   \if at anim@js%
     \hbox to \@anim at tmpdima {%
@@ -1875,7 +1854,7 @@
     \fi%
     %now create Form XObject of box contents
     \if at anim@draft\else%
-      \@anim at xinline{#1}{#2}{\@anim at box}{!}{}\message{<a#1,fr#2>}%
+      \@anim at xinline{#1}{#2}{\@anim at box}{!}%
     \fi%
   \fi%
   \global\advance\@anim at skipfram by \@ne%



More information about the tex-live-commits mailing list