summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-01-05 17:01:48 +0000
committerKarl Berry <karl@freefriends.org>2008-01-05 17:01:48 +0000
commit038c7ffeca38aaaaca1d7bda2edf089ba4fa695a (patch)
tree1d375249ba4ebbd7ea8f558fbfa5604c82db3873 /Master/texmf-dist/tex/latex/animate
parent49a5398564d32d47047f5087b6d35b12d73f86a6 (diff)
animate update (3jan08)
git-svn-id: svn://tug.org/texlive/trunk@6040 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty80
1 files changed, 20 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index c13b714aa30..d434237a8b3 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/11/30]
+\ProvidesPackage{animate}[2008/01/03]
\RequirePackage{keyval}
\RequirePackage{ifthen}
\RequirePackage{ifpdf}
@@ -168,7 +168,8 @@
\fi%
\else%
\edef\@anim@curfile{*[page=#2\@anim@gropts]{#1}}%
- \global\setbox\@anim@box=\hbox{\expandafter\includegraphics\@anim@curfile}%
+ \global\setbox\@anim@box=\hbox{%
+ \expandafter\includegraphics\@anim@curfile}%
\fi%
}
\else
@@ -222,31 +223,15 @@
}%
\immediate\pdfxform\@anim@box%
\xdef\@anim@lastxform{\the\pdflastxform}%
- \if@anim@timeline%
- %keep a record of XObject number
- \@anim@newkey{img@#2}{\@anim@lastxform\space 0 R}%
- \else%
- \xdef\@anim@xobject{%XObject resource entry of container XObject
- \@anim@xobject\space/im#2\space\@anim@lastxform\space 0 R%
- }%
- \fi%
+ %keep a record of XObject number
+ \@anim@newkey{img@#2}{\@anim@lastxform\space 0 R}%
}{%
- \if@anim@timeline%
- \@anim@newkey{img@#2}{#4\space 0 R}%
- \else%
- \xdef\@anim@xobject{\@anim@xobject\space/im#2\space #4\space 0 R}%
- \fi%
+ \@anim@newkey{img@#2}{#4\space 0 R}%
}%
\if@anim@timeline\else%
- \@anim@newocg{#1}{#2}%
- %Properties entry for use in container XObject
- \xdef\@anim@properties{%
- \@anim@properties\space/oc#2\space\@anim@curocg%
- }%
- %content stream of container XObject
- \xdef\@anim@content{%
- \@anim@content\space /OC/oc#2\space BDC q /im#2\space Do Q EMC%
- }%
+ \@anim@newkey{frmxobject@#2}{/im#2\space\@anim@getkeyval{img@#2}}%
+ \@anim@newkey{frmcontent@#2}{ q /im#2\space Do Q}%
+ \@anim@makeframe{#1}{#2}%
\fi%
}
\else
@@ -312,32 +297,14 @@
grestore
}%
\xdef\@anim@lastxform{@anim@frm@#1@#2}%
- \if@anim@timeline%
- \@anim@newkey{img@#2}{{@anim@frm@#1@#2}}%
- \else%
- \xdef\@anim@xobject{% XObject resource entry of container XObject
- \@anim@xobject\space/im#2\space {@anim@frm@#1@#2}%
- }%
- \fi%
+ \@anim@newkey{img@#2}{{@anim@frm@#1@#2}}%
}{%
- \if@anim@timeline%
- \@anim@newkey{img@#2}{{#4}}%
- \else%
- \xdef\@anim@xobject{% XObject resource entry of container XObject
- \@anim@xobject\space/im#2\space {#4}%
- }%
- \fi%
+ \@anim@newkey{img@#2}{{#4}}%
}%
\if@anim@timeline\else%
- \@anim@newocg{#1}{#2}%
- %Properties entry for use in container XObject
- \xdef\@anim@properties{%
- \@anim@properties\space/oc#2\space {@anim@ocg@#1@#2}%
- }%
- %content stream of container XObject
- \xdef\@anim@content{%
- \@anim@content\space /OC/oc#2\space BDC q /im#2\space Do Q EMC%
- }%
+ \@anim@newkey{frmxobject@#2}{/im#2\space\@anim@getkeyval{img@#2}}%
+ \@anim@newkey{frmcontent@#2}{ q /im#2\space Do Q}%
+ \@anim@makeframe{#1}{#2}%
\fi%
}
\fi
@@ -389,10 +356,7 @@
\end{picture}%
\pdfliteral{Q\@anim@content}%
}%
- \immediate\pdfxform resources {%
- \if@anim@timeline\else/Properties <<\@anim@properties>>\fi
- /XObject <<\@anim@xobject>>
- }\@anim@box%
+ \immediate\pdfxform resources {/XObject <<\@anim@xobject>>}\@anim@box%
\xdef\@anim@container{\the\pdflastxform\space 0 R}%
}
\else
@@ -403,18 +367,14 @@
mark {@anim@xobj#1} <<
/Type/XObject/Subtype/Form/FormType 1
/BBox [frame@llx frame@lly frame@urx frame@ury]
- /Resources <<
- \if@anim@timeline\else/Properties <<\@anim@properties>>\fi
- /XObject <<\@anim@xobject>>
- >>
+ /Resources <</XObject <<\@anim@xobject>>>>
>> /PUT pdfmark
}%
}
\fi
-%intermediate container XObject, for use with the timeline option, which
-%represents one animation frame and which contains all the transparencies
-%that compose the frame
+%intermediate container XObject, which represents one animation frame
+%containing all the transparencies that compose the frame
\ifpdf
\def\@anim@makeframe#1#2{% #1:@anim@num, #2:@anim@curframe@zb
\@anim@newocg{#1}{#2}%
@@ -1877,8 +1837,8 @@
\define@key{anim@user}{buttonsize}{%
\gdef\@anim@btnsize{#1}%
}
-\def\@anim@colours#1:#2\@nil{% helper macro to get number of colour components and
- \xdef\@anim@colour{\@anim@colour\space #1}% to replace : by ` ' in the arg
+\def\@anim@colours#1:#2\@nil{% helper macro to get number of colour components
+ \xdef\@anim@colour{\@anim@colour\space #1}% and to replace : by ` ' in the arg
\ifthenelse{\equal{#2}{!}}{}{%
\global\advance\@anim@tmpcnt by \@ne%
\@anim@colours#2\@nil%