summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-10-08 00:33:00 +0000
committerKarl Berry <karl@freefriends.org>2008-10-08 00:33:00 +0000
commite4fe3c784892166e74704d09a3fd39d30d8fb9b2 (patch)
tree184f9e636bb21ed342ad49c6166c5db116e98b64 /Master/texmf-dist/tex/latex/animate
parent8f7baaf124c4913de1442cf0536aa61716a39b50 (diff)
animate update (7oct08)
git-svn-id: svn://tug.org/texlive/trunk@10884 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty26
1 files changed, 17 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index bac45621678..02fdf8df399 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\@anim@version{2008/08/28}
+\def\@anim@version{2008/10/06}
\ProvidesPackage{animate}
[\@anim@version\space PDF animations from files and inline graphics]
@@ -439,12 +439,13 @@
\special{ps:
gsave
%translate graphics to lower left page corner
- {%
- frame@llx neg frame@lly neg translate
- one@inch@x DVImag div neg one@inch@y DVImag div neg translate
- 0 paper@height DVImag div \if@anim@powerdot DVImag div\space\fi
- translate
- }?pdfmark
+ \if@anim@powerdot\else%
+ {%
+ frame@llx neg frame@lly neg translate
+ one@inch@x DVImag div neg one@inch@y DVImag div neg translate
+ 0 paper@height DVImag div translate
+ }?pdfmark
+ \fi%
%distill graphics into XObject
mark
/_objdef {@anim@frm@#1@#2}
@@ -1558,6 +1559,7 @@
\vskip 0.1\@anim@tmpdima%
\hbox to \@anim@animwidth\p@ {%
\hss%
+ \def\@anim@tooltip{}%
\@anim@buttonwidget{#1}{EndLeft}{EndLeft:#2}%
\@anim@buttonwidget{#1}{StepLeft}{StepLeft:#2}%
\if@anim@step\else%
@@ -1568,8 +1570,11 @@
\@anim@buttonwidget{#1}{EndRight}{EndRight:#2}%
\if@anim@step\else%
\hskip 0.3\@anim@tmpdima%
+ \def\@anim@tooltip{/TU (slower)}%
\@anim@buttonwidget{#1}{Minus}{Minus:#2}%
+ \def\@anim@tooltip{/TU (default speed)}%
\@anim@buttonwidget{#1}{Reset}{Reset:#2}%
+ \def\@anim@tooltip{/TU (faster)}%
\@anim@buttonwidget{#1}{Plus}{Plus:#2}%
\fi%
\hss%
@@ -1633,13 +1638,13 @@
\or% 5
\ifdim\height=\z@\else% resize height only if original height .ne. zero
\setlength{\@anim@tmpdima}{%
- \totalheight*\ratio{\@anim@animwidth\p@}{\width}-\@anim@animdepth\p@}%
+ \totalheight*\ratio{\@anim@animwidth\p@}{\width}-\@anim@animdepth\p@}%
\xdef\@anim@animheight{\strip@pt\@anim@tmpdima}%
\fi%
\or% 6
\ifdim\depth=\z@\else% resize depth only if original depth .ne. zero
\setlength{\@anim@tmpdima}{%
- \totalheight*\ratio{\@anim@animwidth\p@}{\width}-\@anim@animheight\p@}%
+ \totalheight*\ratio{\@anim@animwidth\p@}{\width}-\@anim@animheight\p@}%
\xdef\@anim@animdepth{\strip@pt\@anim@tmpdima}%
\fi%
\fi%
@@ -1802,6 +1807,7 @@
/H/I%
/AP <</N \@anim@getkeyval{btn#3}>>%
/T (btn@#1@#2)%
+ \@anim@tooltip%
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
}%
\xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
@@ -1824,6 +1830,7 @@
/H/I%
/AP <</N @btn#3>>%
/T (btn@#1@#2)%
+ \@anim@tooltip%
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
>>%
}%
@@ -1862,6 +1869,7 @@
/H/I
/AP <</N {btn#3}>>%
/T (btn@#1@#2)%
+ \@anim@tooltip%
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
/ANN pdfmark
mark {@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark