texlive[62123] Master/texmf-dist: animate (21feb22)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 21 21:55:11 CET 2022


Revision: 62123
          http://tug.org/svn/texlive?view=revision&revision=62123
Author:   karl
Date:     2022-02-21 21:55:11 +0100 (Mon, 21 Feb 2022)
Log Message:
-----------
animate (21feb22)

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	2022-02-21 20:54:39 UTC (rev 62122)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2022-02-21 20:55:11 UTC (rev 62123)
@@ -1,3 +1,6 @@
+2022-02-21
+	* improvement: svg clipping code simplified
+
 2022-02-04
 	* fix: ocg method: moving back to /OC method (instead of BDC/EMC)
 

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	2022-02-21 20:54:39 UTC (rev 62122)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2022-02-21 20:55:11 UTC (rev 62123)
@@ -1385,12 +1385,12 @@
 xelatex -no-pdf
 \end{verbatim}
 to produce DVI or XDV output from the \LaTeX{} source. After this, SVG is obtained by running
+\begin{verbatim}
+dvisvgm --font-format=woff --exact --zoom=-1 --page=1,- --optimize ...
+\end{verbatim}
 %\begin{verbatim}
-%dvisvgm --font-format=woff --exact --zoom=-1 --page=1,- --optimize ...
+%dvisvgm --font-format=woff --exact --zoom=-1 --page=1,- ...
 %\end{verbatim}
-\begin{verbatim}
-dvisvgm --font-format=woff --exact --zoom=-1 --page=1,- ...
-\end{verbatim}
 on the intermediate DVI or XDV file.
 
 Option `\verb+--font-format=woff+' (or `\verb+--font-format=woff2+') prompts \verb+dvisvgm+ to embed document fonts in a format that is understood by Web browsers. It ensures that typeset text looks as in normal PDF output.
@@ -1401,7 +1401,7 @@
 
 By default, \verb+dvisvgm+ processes only the very first page of the input file. To convert multipage DVI/XDV with several animations, add option `\verb+--page=1,-+'.
 
-%With option `\verb+--optimize+', \verb+dvisvgm+ applies several optimizations to reduce the output file size.
+With option `\verb+--optimize+', \verb+dvisvgm+ applies several optimizations to reduce the output file size.
 
 As SVG derives from XML it is not known to be particularly economical in terms of file size. Compressed SVG, with file extension `\verb+svgz+', shortens download times and is supported by most Web browsers. It can be generated by adding option `\verb+-z+'. Also, option `\verb+--precision=1+' may be used to reduce the SVG file size. It limits the precision of floating point numbers, such as coordinates, to one decimal figure. Sometimes, animations may behave stangely after applying this option. Then, of course, it should be omitted.
 
@@ -1420,7 +1420,7 @@
 \begin{itemize}
   \item The maximum frame rate that can actually be achieved largely depends on the complexity of the graphics and on the available hardware. In Acrobat Reader, you might want to experiment with the 2D graphical hardware acceleration feature. Go to menu `Edit' $\rightarrow$ `Preferences' $\rightarrow$ `Page Display' $\rightarrow$ `Rendering' to see whether hardware acceleration is available. A 2D GPU acceleration check box will be visible if a supported video card has been detected. Also, enabling or disabling the page cache (`Edit' $\rightarrow$ `Preferences' $\rightarrow$ `Page Display' $\rightarrow$ `Rendering' $\rightarrow$ `Use page cache') may affect the rendering performance.
 
-  \item Animated SVG is best viewed in Web browsers that are based on the Blink rendering engine. The most prominent representatives are Chrome, its open-source base Chromium and Opera. Unfortunately, Firefox is very slow.
+  \item Animated SVG is best viewed in Web browsers that are based on the Blink rendering engine. The most prominent representatives are Chrome, its open-source base Chromium and Opera. Unfortunately, in Firefox some animations run slowly, especially if the graphics make use of clipping operations.
 
   \item The \verb+dvips+ option `\verb+-Ppdf+' should be avoided entirely or followed by something like `\verb+-D 1200+' on the command line in order to set a sensible DVI resolution. This does \emph{not} degrade the output quality! The configuration file `config.pdf' loaded by option `\verb+-Ppdf+' specifies an excessively high DVI resolution that will be passed on to the final PDF. Eventually, Acrobat Reader gets confused and will not display the frames within the animation widget.
 

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2022-02-21 20:54:39 UTC (rev 62122)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2022-02-21 20:55:11 UTC (rev 62123)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}[2020-10-01]
 
-\def\@anim at version{2022/02/04}
+\def\@anim at version{2022/02/21}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF & SVG animations from files and inline graphics]
 
@@ -460,7 +460,7 @@
 \def\@anim at zaptrailingcommafromxref#1,\@nil{\if at anim@dvips{#1}\else#1\fi}%
 
 % inserts one animation frame into the output acc. to \ifcase\@anim at method
-% as a non-interactive Widget annotation (0 or 1) or an an xform (2) that is
+% as a non-interactive Widget annotation (0 or 1) or as an xform (2) that is
 % referenced in the page content (and tagged as OCG or for multipage PDF export)
 % args: #1 animation num, #2 frame number, #3 comma-separated list of xform
 % refs (transparencies)
@@ -2209,17 +2209,17 @@
 % clip animation to final dimensions (dvisvgm)
 \def\@anim at beginsvgclip#1{%
   \special{dvisvgm:raw
-    <g transform="translate({?x},{?(y-\@anim at getkeyval{a#1.htbp})})">%
-      <svg overflow="hidden"
-        width="\@anim at getkeyval{a#1.wdbp}" height="\@anim at getkeyval{a#1.thtbp}"
-        viewBox="%
-          {?x} {?(y-\@anim at getkeyval{a#1.htbp})}
-          \@anim at getkeyval{a#1.wdbp} \@anim at getkeyval{a#1.thtbp}%
-        ">%
+    <svg overflow="hidden"
+      x="{?x}" y="{?(y-\@anim at getkeyval{a#1.htbp})}"
+      width="\@anim at getkeyval{a#1.wdbp}" height="\@anim at getkeyval{a#1.thtbp}"
+      viewBox="%
+        {?x} {?(y-\@anim at getkeyval{a#1.htbp})}
+        \@anim at getkeyval{a#1.wdbp} \@anim at getkeyval{a#1.thtbp}%
+      ">%
   }%
 }%
 \def\@anim at endsvgclip{%
-  \special{dvisvgm:raw </svg></g>}%
+  \special{dvisvgm:raw </svg>}%
 }
 
 %usercommand for use within `animateinline' environment;



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