summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-31 18:44:36 +0000
committerKarl Berry <karl@freefriends.org>2007-05-31 18:44:36 +0000
commit713ffc22df0c37adf8b286626efa889c648b4e94 (patch)
treebac4aa1700957e24c92c3ec113d74aabc3530928 /Master/texmf-dist/tex
parent15686466853b682d279ae2adb73991b1bb83d77b (diff)
animate update (25may07)
git-svn-id: svn://tug.org/texlive/trunk@4388 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty55
1 files changed, 33 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index b534464495b..6067ebadf1b 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -13,7 +13,7 @@
% Supports LaTeX->dvips->ps2pdf or pdfLaTeX workflows.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{animate}[2007/05/10]
+\ProvidesPackage{animate}[2007/05/24]
\RequirePackage{keyval}
\RequirePackage{ifthen}
\RequirePackage{ifpdf}
@@ -35,20 +35,18 @@
\fi%
\fi%
\else
- %define `?pdfmark' operator; taken from the PDFmark Reference
- \AtBeginDocument{%
- \ifx\pdfmark\@undefined% (hyperref provides its own
- \special{ps: % definition)
- /pdfmark where
- { pop globaldict /?pdfmark /exec load put }
- {
- globaldict
- begin
- /?pdfmark /pop load def
- /pdfmark /cleartomark load def
- end
- }
- ifelse
+ %define `?pdfmark' operator as in file hdvips.def from package `hyperref'
+ \AtBeginDvi{%
+ \ifx\pdfmark\@undefined%
+ \special{!
+ systemdict /pdfmark known%
+ {%
+ userdict /?pdfmark systemdict /exec get put%
+ }{%
+ userdict /?pdfmark systemdict /pop get put
+ userdict /pdfmark systemdict /cleartomark get put%
+ }%
+ ifelse%
}%
\fi%
}
@@ -126,8 +124,7 @@
\newbox\@anim@@box %stores single frame
\newdimen\@anim@tmpdima %length register for occasional use
-%creates Form XObject from graphics file, creates an ocg and associates it with
-%the XObject;
+%creates Form XObject from graphics file
\def\@anim@pt{pt}
\ifpdf
\def\@anim@ximage#1#2#3{%#1:@anim@num, #2:@anim@curframe@zb, #3:filename
@@ -158,7 +155,8 @@
}
\fi
-%creates Form XObject from box contents
+%creates Form XObject from box contents and associates it with a newly created
+%OCG
\ifpdf
\newbox\@anim@box %stores all graphics of a sequence
\def\@anim@xinline#1#2#3{%#1:@anim@num, #2:@anim@curframe@zb, #3:box number
@@ -818,8 +816,8 @@
\def\@anim@first{#4}%
\def\@anim@last{#5}%
%
- %create button faces if necessary
\if@anim@controls%
+ %create button faces if necessary
\if@anim@buttonsmade\else%
\@anim@makebuttons%
\setboolean{@anim@buttonsmade}{true}%
@@ -840,11 +838,11 @@
\loop\ifnum\@anim@curframe>\@anim@last\else%
%get file name extension of current file
\@anim@getext{%
- \@anim@base\@anim@pad{\@anim@last}{\the\@anim@curframe}%
+ \@anim@base\@anim@pad{\@anim@first}{\the\@anim@curframe}%
}%
%embed graphics
\@anim@ximage{\the\@anim@num}{\the\@anim@curframe@zb}{%
- \@anim@base\@anim@pad{\@anim@last}{\the\@anim@curframe}\@anim@ext%
+ \@anim@base\@anim@pad{\@anim@first}{\the\@anim@curframe}\@anim@ext%
}%
\advance\@anim@curframe by 1%
\advance\@anim@curframe@zb by 1%
@@ -1306,7 +1304,11 @@
\ifnum10#1<1#2
\@anim@template{0#1}{#2}%
\else%
- #1%
+ \ifnum10#1=1#2
+ \@anim@template{0#1}{#2}%
+ \else%
+ #1%
+ \fi%
\fi%
}%
@@ -1795,6 +1797,15 @@
else{%
\fi%
\fi%
+ \if@anim@step\else%
+ \if@anim@controls
+ a#1.playsRight=true;%
+ \else%
+ \if@anim@palindrome
+ a#1.playsRight=true;%
+ \fi%
+ \fi%
+ \fi%
\ifx\@anim@poster\@anim@posterframe
a#1.actnEndRight();%
\else