texlive[50278] Master/texmf-dist: animate (7mar19)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 7 23:25:34 CET 2019


Revision: 50278
          http://tug.org/svn/texlive?view=revision&revision=50278
Author:   karl
Date:     2019-03-07 23:25:34 +0100 (Thu, 07 Mar 2019)
Log Message:
-----------
animate (7mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/README.txt
    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	2019-03-07 22:25:21 UTC (rev 50277)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2019-03-07 22:25:34 UTC (rev 50278)
@@ -1,3 +1,7 @@
+2019-03-06
+	* change : jbig2 format support removed; dvisvgm-related code moved to
+	pdfbase.sty (media9)
+
 2019-01-23
 	* new : support for embedding PDF with `dvisvgm', multipage PDF support with
 	`dvisvgm' and `dvipdfmx' driver
@@ -10,10 +14,6 @@
 	* fix : `setTimeout' JS method (used by timeline feature) differs bewteen
 	browsers and PDF viewers
 
-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/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/README.txt	2019-03-07 22:25:21 UTC (rev 50277)
+++ trunk/Master/texmf-dist/doc/latex/animate/README.txt	2019-03-07 22:25:34 UTC (rev 50278)
@@ -95,9 +95,9 @@
  * pdfTeX, version >= 1.20, or LuaLaTeX, version >= 0.95
  * Ghostscript, version >= 9.15 or Adobe Distiller
  * dvipdfmx, version >= 20080607
- * dvisvgm
+ * dvisvgm, version >= 2.6.2
  * Acrobat Reader (version >= 7), PDF-XChange, Foxit Reader
- * Firefox, Chrome, Chromium
+ * Blink-based (Chromium, Chrome, Opera, ...) web browsers or Firefox
 
 
 4. Installation

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	2019-03-07 22:25:21 UTC (rev 50277)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2019-03-07 22:25:34 UTC (rev 50278)
@@ -245,7 +245,7 @@
   \animategraphics{12}{frame_}{5}{50}
 \end{verbatim}
 
-The possible file formats depend on the output driver being used. In the case of \LaTeX{} + \verb+dvips+, files with the `eps' extension are at first searched for, followed by `mps' (\MP-generated PostScript) and `ps'. With pdf\LaTeX{} and Lua\LaTeX{} the searching order is: (1)~`pdf', (2)~`mps', (3)~`png', (4)~`jpg', (5)~`jpeg', (6)~`jbig2', (7)~`jb2', (8)~`jp2'\footnotemark[1], (9)~`j2k'\footnotemark[1], (10)~`jpx'\footnotemark[1]\footnotetext[1]{Only Lua\LaTeX{} currently supports JPEG2000.}, with \XeLaTeX{} or \LaTeX{}+\verb+dvipdfmx+: (1)~`pdf', (2)~`mps', (3)~`eps', (4)~`ps', (5)~`png', (6)~`jpg', (7)~`jpeg', (8)~`bmp', and with \LaTeX{}+\verb+dvisvgm+: (1)~`pdf', (2)~`eps', (3)~`ps', (4)~`mps', (5)~`svg', (6)~`png', (7)~`jpg', (8)~`jpeg'. That is, files capable of storing vector graphics are found first. Make sure that all file names have \emph{lower case} extensions.
+The possible file formats depend on the output driver being used. In the case of \LaTeX{} + \verb+dvips+, files with the `eps' extension are at first searched for, followed by `mps' (\MP-generated PostScript) and `ps'. With pdf\LaTeX{} and Lua\LaTeX{} the searching order is: (1)~`pdf', (2)~`mps', (3)~`png', (4)~`jpg', (5)~`jpeg', (6)~`jp2'\footnotemark[1], (7)~`j2k'\footnotemark[1], (10)~`jpx'\footnotemark[1]\footnotetext[1]{Only Lua\LaTeX{} currently supports JPEG2000.}, with \XeLaTeX{} or \LaTeX{}+\verb+dvipdfmx+: (1)~`pdf', (2)~`mps', (3)~`eps', (4)~`ps', (5)~`png', (6)~`jpg', (7)~`jpeg', (8)~`bmp', and with \LaTeX{}+\verb+dvisvgm+: (1)~`pdf', (2)~`eps', (3)~`ps', (4)~`mps', (5)~`svg', (6)~`png', (7)~`jpg', (8)~`jpeg'. That is, files capable of storing vector graphics are found first. Make sure that all file names have \emph{lower case} extensions.
 
 This searching procedure can be skipped thanks to the package and command option `\verb+type=<file ext>+'. It enforces the embedding of files with the given file name extension \verb+<file ext>+.
 

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2019-03-07 22:25:21 UTC (rev 50277)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2019-03-07 22:25:34 UTC (rev 50278)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2019/01/23}
+\def\@anim at version{2019/03/06}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF & SVG animations from files and inline graphics]
 
@@ -53,6 +53,7 @@
   \DeclareOptionX{dvisvgm}{%
     \setboolean{@anim at dvisvgm}{true}
     \setboolean{@anim at dvips}{false}
+    \PassOptionsToPackage{dvisvgm}{pdfbase}
     \PassOptionsToPackage{dvisvgm}{graphics}
   }
 \fi
@@ -239,57 +240,38 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % low level PDF/SVG operations
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{pdfbase}
+\@ifpackagelater{pdfbase}{2017/09/29}{}{
+  \PackageError{animate}{%
+    Support package `pdfbase.sty' too old.%
+  }{%
+    Please install an up to date version of `pdfbase.sty'.\MessageBreak%
+    Aborting.%
+  }%
+}
+
+\ExplSyntaxOn
+\let\@anim at literal\pbs_literal:nn
+
+\def\@anim at xform#1#2#3#4#5{
+  \pbs_pdfxform:nnnnn{#1}{#2}{#3}{#4}{#5}
+  \xdef\@anim at lastxform{\pbs_pdflastxform:}
+}
+
+\let\@anim at refxform\pbs_pdfrefxform:n
+
+\def\@anim at annot#1#2#3#4{
+  \pbs_pdfannot:nnnn{#1}{#2}{#3}{#4}
+}
+
+\let\@anim at fpeval\fp_eval:n
+\ExplSyntaxOff
+
 \if at anim@dvisvgm
-  \RequirePackage{expl3}
-  \ExplSyntaxOn
-  \let\@anim at fpeval\fp_eval:n
-  \ExplSyntaxOff
-
   \setboolean{@anim at export}{false}
-  \newcount\@anim at objnum
-  \edef\@anim at hash{\string#}
 
-  \def\@anim at xform#1#2#3#4#5{%
-    \makebox[\z@][l]{\raisebox{\z@}[\z@][\z@]{%
-      \special{dvisvgm:raw {?nl}<defs>{?nl}%
-        <g transform='translate(-{?x},-{?y})' #4 id='obj\the\@anim at objnum'
-          class='xform'>%
-      }%
-      \box#5%
-      \special{dvisvgm:raw {?nl}</g>{?nl}</defs>}%
-    }}%
-    \xdef\@anim at lastxform{\@anim at hash obj\the\@anim at objnum}%
-    \global\advance\@anim at objnum by \@ne%
-  }
-  \def\@anim at refxform#1{%
-    \special{dvisvgm:raw
-      {?nl}<use x='{?x}' y='{?y}' xlink:href='#1'/>%
-    }%
-  }
-
   \def\@anim at updatebbox#1#2#3{\special{dvisvgm:bbox #1 #2 #3}}
 
-  \def\@anim at annot#1#2#3#4{%
-    \special{dvisvgm:raw {?nl}<path d=}%
-      \begingroup\setlength\unitlength{1pt}%
-      \begin{picture}(0,0)% mark annotation rectangle
-        \put(0,-\strip at pt\dimexpr#3\relax){% ll
-          \special{dvisvgm:raw 'M{?x} {?y}}%
-        }%
-        \put(\strip at pt\dimexpr#1\relax,-\strip at pt\dimexpr#3\relax){% lr
-          \special{dvisvgm:raw {?nl}L{?x} {?y}}%
-        }%
-        \put(\strip at pt\dimexpr#1\relax,\strip at pt\dimexpr#2\relax){% ur
-          \special{dvisvgm:raw {?nl}L{?x} {?y}}%
-        }%
-        \put(0,\strip at pt\dimexpr#2\relax){% ul
-          \special{dvisvgm:raw {?nl}L{?x} {?y} Z'}%
-        }%
-      \end{picture}%
-      \endgroup%
-    \special{dvisvgm:raw {?nl}opacity='0' #4/>}%
-  }
-
   %approach similar to OCGs, that is, putting the frame content in an svg group,
   % <g id='...'>...</g>, whose visibility is then manipulated by JavaScript
   \def\@anim at newocg#1#2{\xdef\@anim at curocg{id='#1.#2' class='ocg'}}
@@ -298,27 +280,8 @@
   }
   \def\ocgbase at oc@bdc#1{\special{dvisvgm:raw {?nl}<g #1>}}
   \def\ocgbase at oc@emc{\special{dvisvgm:raw {?nl}</g>}}
-
-  \def\@anim at literal#1#2{%
-    % #1: {} --> current location becomes (0,0), unit vectors 1bp right and up,
-    %            graphics state saved before and restored after the code in #2
-    % #1: {direct|page} --> no origin translation, no saving of gr. state
-    % #2: raw postscript
-    \ifx\empty#1\empty\special{" #2}\else\special{ps:: #2}\fi%
-  }
 \else
-  \RequirePackage{pdfbase}
-  \@ifpackagelater{pdfbase}{2017/09/29}{}{
-    \PackageError{animate}{%
-      Support package `pdfbase.sty' too old.%
-    }{%
-      Please install an up to date version of `pdfbase.sty'.\MessageBreak%
-      Aborting.%
-    }%
-  }
   \ExplSyntaxOn
-  \let\@anim at literal\pbs_literal:nn
-
   \def\@anim at dictobj#1{
     \pbs_pdfobj:nnn{}{dict}{#1}
     \xdef\@anim at lastobj{\pbs_pdflastobj:}
@@ -334,17 +297,6 @@
     \xdef\@anim at lastobj{\pbs_pdflastobj:}
   }
 
-  \def\@anim at xform#1#2#3#4#5{
-    \pbs_pdfxform:nnnnn{#1}{#2}{#3}{#4}{#5}
-    \xdef\@anim at lastxform{\pbs_pdflastxform:}
-  }
-
-  \let\@anim at refxform\pbs_pdfrefxform:n
-
-  \def\@anim at annot#1#2#3#4{
-    \pbs_pdfannot:nnnn{#1}{#2}{#3}{#4}
-  }
-
   \def\@anim at widget#1#2#3#4{
     \pbs_pdfannot:nnnn{#1}{#2}{#3}{#4}
     \pbs_appendtofields:n{\pbs_pdflastann:}
@@ -351,8 +303,6 @@
   }
 
   \let\@anim at pdfcatalog\pbs_pdfcatalog:n
-
-  \let\@anim at fpeval\fp_eval:n
   \ExplSyntaxOff
 
   \RequirePackage{ocgbase} %OCG generating and configuration macros
@@ -1343,10 +1293,6 @@
       \IfFileExists{#1\@anim at ext}{}{%
       \gdef\@anim at ext{.jpeg}%
       \IfFileExists{#1\@anim at ext}{}{%
-      \gdef\@anim at ext{.jbig2}%
-      \IfFileExists{#1\@anim at ext}{}{%
-      \gdef\@anim at ext{.jb2}%
-      \IfFileExists{#1\@anim at ext}{}{%
       \gdef\@anim at ext{.jp2}%
       \IfFileExists{#1\@anim at ext}{}{%
       \gdef\@anim at ext{.j2k}%
@@ -1360,8 +1306,6 @@
           `#1.png',\MessageBreak%
           `#1.jpg',\MessageBreak%
           `#1.jpeg',\MessageBreak%
-          `#1.jbig2',\MessageBreak%
-          `#1.jb2',\MessageBreak%
           `#1.jp2',\MessageBreak%
           `#1.j2k' or\MessageBreak%
           `#1.jpx',\MessageBreak%
@@ -1368,7 +1312,7 @@
           could be found.\MessageBreak%
           Wrong file type? Mis-spelled file name?%
         }{}%
-      }}}}}}}}}}%
+      }}}}}}}}%
     \else%
       \gdef\@anim at ext{.#2}%
       \IfFileExists{#1\@anim at ext}{}{%
@@ -1562,19 +1506,7 @@
       \IfFileExists{#1.pdf}{%
         \setboolean{@anim at multipage}{true}%
         \gdef\@anim at ext{.pdf}%
-      }{%
-        \ifpdf% some extra file formats for pdftex/luatex
-          \IfFileExists{#1.jbig2}{%
-            \setboolean{@anim at multipage}{true}%
-            \gdef\@anim at ext{.jbig2}%
-          }{%
-            \IfFileExists{#1.jb2}{%
-              \setboolean{@anim at multipage}{true}%
-              \gdef\@anim at ext{.jb2}%
-            }{}%
-          }%
-        \fi%  
-      }%
+      }{}%
     \else%
       \IfFileExists{#1.#2}{%
         \setboolean{@anim at multipage}{true}%
@@ -1613,7 +1545,7 @@
       \xdef\@anim at last{\the\@anim at curframe}%
     \fi%
   }%
-\fi%  
+\fi%
 
 %environment for setting LTR typesetting direction
 \def\@anim at beginLTR{%
@@ -4319,8 +4251,8 @@
               try{onvisible();}catch(e){}%
             }$%
           }$%
-	        document.addEventListener('visibilitychange',onVisibilityChange);$%
-	        window.addEventListener('load',onload);$%
+          document.addEventListener('visibilitychange',onVisibilityChange);$%
+          window.addEventListener('load',onload);$%
           \if at anim@nomouse\else
             var permPause#1=false;
             function onWidgetUpAction(event){$%



More information about the tex-live-commits mailing list