diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-06-20 13:43:38 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-06-20 13:43:38 +0000 |
commit | c220877b86c3a931d991d4597b7fe6d1e1d51035 (patch) | |
tree | 76f9ee7f3a0de5bddb852fae2a6b30c610884758 /Master/texmf-dist/tex/latex/animate | |
parent | db440f964578c40e67c4452fcd2b7b02ae402ec5 (diff) |
animate update v2008/06/19
git-svn-id: svn://tug.org/texlive/trunk@8883 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index b9410bc1d08..328a7a4415b 100644 --- a/Master/texmf-dist/tex/latex/animate/animate.sty +++ b/Master/texmf-dist/tex/latex/animate/animate.sty @@ -11,7 +11,7 @@ % Supports LaTeX->dvips->ps2pdf, (Xe)LaTeX->(x)dvipdfmx or pdfLaTeX workflows. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{animate}[2008/06/16] +\ProvidesPackage{animate}[2008/06/19] %test for e-TeX \ifx\eTeXversion\@undefined% @@ -216,20 +216,6 @@ /D <</BaseState/OFF /ON @anim@posterocgs>> >> >>} - \def\@anim@fields{} - \def\@anim@ocgs{} - \def\@anim@posterocgs{} - \AtEndDocument{% - \ifx\@anim@fields\@empty\else - \special{pdf:put @anim@fields \@anim@fields}% - \fi - \ifx\@anim@ocgs\@empty\else - \special{pdf:put @anim@ocgs \@anim@ocgs}% - \fi - \ifx\@anim@posterocgs\@empty\else - \special{pdf:put @anim@posterocgs \@anim@posterocgs}% - \fi - }% \else \special{ps: mark /_objdef {@anim@fields} /type/array /OBJ pdfmark @@ -261,8 +247,8 @@ \@anim@newkey{file:\pdfmdfivesum file {#1}.#2}{#3}% #3 Form XObj ID } +%helper macro that typesets graphics file into savebox \ifpdf - %helper macro that typesets graphics file into savebox \def\@anim@filebox#1#2{% #1 filename, #2 page No. for multipage files \ifx\@anim@gropts\@empty% \def\@anim@mps{.mps}% @@ -290,7 +276,7 @@ \fi %create Form XObject from graphics file -\ifthenelse{\boolean{pdf}}{ +\ifpdf \def\@anim@ximage#1#2#3#4{%#1:@anim@num, #2:@anim@curframe@zb, #3:filename, %#4: page number of multipage file \ifthenelse{\equal{\@anim@fileknown{#3}{#4}}{!}}{% new file to be embedded @@ -311,7 +297,7 @@ \@anim@xinline{#1}{#2}{}{\@anim@fileknown{#3}{#4}}% }% } -}{ +\else \if@anim@@dvipdfmx \def\@anim@ximage#1#2#3#4{% #4: not used \ifthenelse{\equal{\@anim@fileknown{#3}{1}}{!}}{% new file to be embedded @@ -351,7 +337,7 @@ }% } \fi -} +\fi %creates Form XObject from box contents \ifpdf% @@ -510,7 +496,7 @@ \if@anim@@dvipdfmx \def\@anim@newocg#1#2{% \special{pdf:obj @anim@ocg@#1@#2 <</Type/OCG /Name (#1.#2)>>}% - \xdef\@anim@ocgs{\@anim@ocgs\space @anim@ocg@#1@#2}% + \special{pdf:put @anim@ocgs @anim@ocg@#1@#2}% \ifx\@anim@poster\@anim@posternone\else% \ifnum#2=0 \ifx\@anim@poster\@anim@posterfirst% @@ -518,7 +504,7 @@ \fi% \fi% \ifx\@anim@poster\@anim@posterlast% - \xdef\@anim@posterocg{\@anim@curocg}% + \xdef\@anim@posterocg{@anim@ocg@#1@#2}% \fi% \fi% } @@ -641,7 +627,7 @@ /T (#1.#2)% >>% }% - \xdef\@anim@fields{\@anim@fields\space @annot@\the\@anim@fieldnum}% + \special{pdf:put @anim@fields @annot@\the\@anim@fieldnum}% \global\advance\@anim@fieldnum by \@ne% } \else @@ -743,8 +729,8 @@ \def\@anim@makeppcontainer#1#2#3{% \special{pdf:obj @#1.Play#2 <</Type/OCG /Name (#1.Play#2)>>}% \special{pdf:obj @#1.Pause#2 << /Type/OCG /Name (#1.Pause#2)>>}% - \xdef\@anim@ocgs{\@anim@ocgs\space @#1.Play#2 @#1.Pause#2}% - \xdef\@anim@posterocgs{\@anim@posterocgs\space @#1.Play#2}% + \special{pdf:put @anim@ocgs @#1.Play#2 @#1.Pause#2}% + \special{pdf:put @anim@posterocgs @#1.Play#2}% \special{pdf:stream @btn#1.PlayPause#2\space (/OC/oc0 BDC q /im0 Do Q EMC /OC/oc1 BDC q /im1 Do Q EMC) <<% /Type/XObject/Subtype/Form/BBox [0 0 15 15]% @@ -1708,7 +1694,7 @@ } %interactive Widget annotation that is overlayed on the non-interactive -%frame Windgets +%frame Widgets \ifpdf \def\@anim@animwidget#1{% %create JavaScript objects @@ -1750,7 +1736,7 @@ \@anim@otherjscript{#1}% \if@anim@useocg% \ifx\@anim@poster\@anim@posternone\else% - \xdef\@anim@posterocgs{\@anim@posterocgs\space\@anim@posterocg}% + \special{pdf:put @anim@posterocgs \@anim@posterocg}% \fi% \fi% \special{pdf:annot @annot@\the\@anim@fieldnum\space @@ -1769,7 +1755,7 @@ >> >>% }% - \xdef\@anim@fields{\@anim@fields\space @annot@\the\@anim@fieldnum}% + \special{pdf:put @anim@fields @annot@\the\@anim@fieldnum}% \global\advance\@anim@fieldnum by \@ne% \hbox to \@anim@animwidth\p@ {% \vrule width 0pt height \@anim@animheight\p@ depth \@anim@animdepth\p@% @@ -1873,7 +1859,7 @@ /A <</S/JavaScript/JS (\@anim@upjscriptstring)>>% >>% }% - \xdef\@anim@fields{\@anim@fields\space @annot@\the\@anim@fieldnum}% + \special{pdf:put @anim@fields @annot@\the\@anim@fieldnum}% \global\advance\@anim@fieldnum by \@ne% \vrule width 0pt height \@anim@tmpdima depth 0pt% \hss% |