summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/animate
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-05-08 03:02:15 +0000
committerNorbert Preining <norbert@preining.info>2020-05-08 03:02:15 +0000
commit8b5866024fec68c13a91973cc6cfc2cb5697baba (patch)
tree6abad841dced763b6ee50ae5bb83fc50d8816ca1 /macros/latex/contrib/animate
parent56bd1f5b8377f54b4af39a114362a7762d27f13c (diff)
CTAN sync 202005080302
Diffstat (limited to 'macros/latex/contrib/animate')
-rw-r--r--macros/latex/contrib/animate/ChangeLog3
-rw-r--r--macros/latex/contrib/animate/animate.pdfbin3887744 -> 3887704 bytes
-rw-r--r--macros/latex/contrib/animate/animate.sty22
-rw-r--r--macros/latex/contrib/animate/animate.tex2
4 files changed, 13 insertions, 14 deletions
diff --git a/macros/latex/contrib/animate/ChangeLog b/macros/latex/contrib/animate/ChangeLog
index b67e5692c8..820f6bb3a3 100644
--- a/macros/latex/contrib/animate/ChangeLog
+++ b/macros/latex/contrib/animate/ChangeLog
@@ -1,3 +1,6 @@
+2020-05-07
+ * fix: control button issue (dvisvgm)
+
2020-05-06
* fix: control button transparency (all drivers)
diff --git a/macros/latex/contrib/animate/animate.pdf b/macros/latex/contrib/animate/animate.pdf
index bc969083f5..e936974244 100644
--- a/macros/latex/contrib/animate/animate.pdf
+++ b/macros/latex/contrib/animate/animate.pdf
Binary files differ
diff --git a/macros/latex/contrib/animate/animate.sty b/macros/latex/contrib/animate/animate.sty
index eaf27e7440..679dad68f3 100644
--- a/macros/latex/contrib/animate/animate.sty
+++ b/macros/latex/contrib/animate/animate.sty
@@ -13,7 +13,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\@anim@version{2020/05/06}
+\def\@anim@version{2020/05/07}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -316,12 +316,8 @@
\gdef\@anim@lscape{}%
\gdef\@anim@@lscape{:ls}%
\ifdefined\landscape%
-% \if@anim@dvisvgm% disable `landscape' environment
-% \renewenvironment{landscape}{}{}%
-% \else%
- \g@addto@macro{\landscape}{\gdef\@anim@lscape{:ls}}%
- \g@addto@macro{\endlandscape}{\gdef\@anim@lscape{}}%
-% \fi%
+ \g@addto@macro{\landscape}{\gdef\@anim@lscape{:ls}}%
+ \g@addto@macro{\endlandscape}{\gdef\@anim@lscape{}}%
\fi%
}
@@ -887,13 +883,11 @@
% separately.
\ifcsname btn#1:#2\endcsname\else%
\ifx\empty\@anim@bg\empty\else%
- \@anim@xbutton{ResetBG}{%
- \@anim@btnresetbg}{#2}%
+ \@anim@xbutton{ResetBG}{\@anim@btnresetbg}{#2}%
\fi%
\begingroup%
\def\@anim@alpha{}%
- \@anim@xbutton{ResetFG}{%
- \@anim@btnreset}{#2}%
+ \@anim@xbutton{ResetFG}{\@anim@btnreset}{#2}%
\endgroup%
\ifx\empty\@anim@bg\empty\else%
\global\setbox\@anim@box=\hbox to \@anim@btnsize {%
@@ -1720,11 +1714,12 @@
\if@anim@export\else%
% insert <script> part
\if@anim@dvisvgm\@anim@script{\the\@anim@num}\fi%
- \@anim@insertwidgets{\the\@anim@num}{%
+ \edef\@anim@btnattrs{%
\@anim@bgcolour:\@anim@fgcolour:\@anim@alpha%
\if@anim@dvisvgm:\@anim@btnsize:\@anim@abspage\fi%
\@anim@lscape%
}%
+ \@anim@insertwidgets{\the\@anim@num}{\@anim@btnattrs}%
\fi%
\fi%
\@anim@endLTR%
@@ -2167,11 +2162,12 @@
\if@anim@export\else%
% insert <script> part
\if@anim@dvisvgm\@anim@script{\the\@anim@num}\fi%
- \@anim@insertwidgets{\the\@anim@num}{%
+ \edef\@anim@btnattrs{%
\@anim@bgcolour:\@anim@fgcolour:\@anim@alpha%
\if@anim@dvisvgm:\@anim@btnsize:\@anim@abspage\fi%
\@anim@lscape%
}%
+ \@anim@insertwidgets{\the\@anim@num}{\@anim@btnattrs}%
\fi%
% if last frame used as poster, write frame num to aux file
\ifnum\@anim@poster=\@anim@mone\relax%
diff --git a/macros/latex/contrib/animate/animate.tex b/macros/latex/contrib/animate/animate.tex
index bd9c37de1e..34f8d2de67 100644
--- a/macros/latex/contrib/animate/animate.tex
+++ b/macros/latex/contrib/animate/animate.tex
@@ -371,7 +371,7 @@ buttonbg=<colour>
buttonfg=<colour>
buttonalpha=<opacity>
\end{verbatim}
-By default, control button widgets are drawn with black strokes on transparent background. The background can be turned into a solid colour by the first option, while the second option specifies the stroke colour. The parameter \verb+<colour>+ is an array of colon-(\verb+:+)-separated numbers in the range from 0.0 to 1.0. The number of array elements determines the colour model in which the colour is defined: (1) gray value, (3) RGB, (4) CMYK. For example, `\verb+1+', `\verb+1:0.5:0.2+' and `\verb+0.5:0.3:0.7:0.1+' are valid colour specifications. Option \verb+buttonalpha+ adds transparency to the control buttons. Its parameter \verb+<opacity>+ is a number between 0.0 and 1.0, where 0.0 produces fully transparent and 1.0 fully opaque buttons.
+By default, control button widgets are drawn with black strokes on empty, fully transparent background. The background can be filled with colour using the first option, while the second option specifies the stroke colour. Option \verb+buttonalpha+ adds transparency to the background colour. The parameter \verb+<colour>+ is an array of colon-(\verb+:+)-separated numbers in the range from 0.0 to 1.0. The number of array elements determines the colour model in which the colour is defined: (1) gray value, (3) RGB, (4) CMYK. For example, `\verb+1+', `\verb+1:0.5:0.2+' and `\verb+0.5:0.3:0.7:0.1+' are valid colour specifications. The parameter \verb+<opacity>+ is a number between 0.0 and 1.0, where 0.0 produces fully transparent and 1.0 fully opaque buttons.
\begin{verbatim}
draft
final