summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-21 20:55:11 +0000
committerKarl Berry <karl@freefriends.org>2022-02-21 20:55:11 +0000
commit9a6ac304ab7c75c72e616fc3b57c8fdc5b817cb8 (patch)
tree6c8c2fd8859b93076039f5bb5b2634196aaabf53
parent49d8f3eb32afd6c19a23994edaa781b468dfe4fe (diff)
animate (21feb22)
git-svn-id: svn://tug.org/texlive/trunk@62123 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/animate/ChangeLog3
-rw-r--r--Master/texmf-dist/doc/latex/animate/animate.pdfbin3753810 -> 3751389 bytes
-rw-r--r--Master/texmf-dist/source/latex/animate/animate.tex12
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty20
4 files changed, 19 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/animate/ChangeLog b/Master/texmf-dist/doc/latex/animate/ChangeLog
index e2ef9c8a9e8..e30e23a04f5 100644
--- a/Master/texmf-dist/doc/latex/animate/ChangeLog
+++ b/Master/texmf-dist/doc/latex/animate/ChangeLog
@@ -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)
diff --git a/Master/texmf-dist/doc/latex/animate/animate.pdf b/Master/texmf-dist/doc/latex/animate/animate.pdf
index 1046dfa24c4..6920b0466d8 100644
--- a/Master/texmf-dist/doc/latex/animate/animate.pdf
+++ b/Master/texmf-dist/doc/latex/animate/animate.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/animate/animate.tex b/Master/texmf-dist/source/latex/animate/animate.tex
index 6d3101f084a..9c1e9223252 100644
--- a/Master/texmf-dist/source/latex/animate/animate.tex
+++ b/Master/texmf-dist/source/latex/animate/animate.tex
@@ -1385,12 +1385,12 @@ dvilualatex
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,- ...
+dvisvgm --font-format=woff --exact --zoom=-1 --page=1,- --optimize ...
\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 @@ The purpose of `\verb+--zoom=-1+' is to produce responsive SVG. If embedded in a
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 @@ In \TeX4ht documents, the whole \verb+<object>...</object>+ tag can be inserted
\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.
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index c18e4f3657b..6964db89a13 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{2022/02/04}
+\def\@anim@version{2022/02/21}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -460,7 +460,7 @@
\def\@anim@zaptrailingcommafromxref#1,\@nil{\if@anim@dvips{#1}\else#1\fi}%
% inserts one animation frame into the output acc. to \ifcase\@anim@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@beginsvgclip#1{%
\special{dvisvgm:raw
- <g transform="translate({?x},{?(y-\@anim@getkeyval{a#1.htbp})})">%
- <svg overflow="hidden"
- width="\@anim@getkeyval{a#1.wdbp}" height="\@anim@getkeyval{a#1.thtbp}"
- viewBox="%
- {?x} {?(y-\@anim@getkeyval{a#1.htbp})}
- \@anim@getkeyval{a#1.wdbp} \@anim@getkeyval{a#1.thtbp}%
- ">%
+ <svg overflow="hidden"
+ x="{?x}" y="{?(y-\@anim@getkeyval{a#1.htbp})}"
+ width="\@anim@getkeyval{a#1.wdbp}" height="\@anim@getkeyval{a#1.thtbp}"
+ viewBox="%
+ {?x} {?(y-\@anim@getkeyval{a#1.htbp})}
+ \@anim@getkeyval{a#1.wdbp} \@anim@getkeyval{a#1.thtbp}%
+ ">%
}%
}%
\def\@anim@endsvgclip{%
- \special{dvisvgm:raw </svg></g>}%
+ \special{dvisvgm:raw </svg>}%
}
%usercommand for use within `animateinline' environment;