diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-21 23:45:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-21 23:45:33 +0000 |
commit | 14551cf8cc8a57446fdf3f007f919286a9296fe2 (patch) | |
tree | 699ac8370f83f0f2da58b60ced5d8254c6a4c269 /Master/texmf-dist/tex/latex/animate | |
parent | 215e84f8884ba3aaa39ac096d47d6804eccff6ec (diff) |
animate (21dec11)
git-svn-id: svn://tug.org/texlive/trunk@24901 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 | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index 4510e96e7f7..38f8b10e404 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{2011/09/16} +\def\@anim@version{2011/12/20} \ProvidesPackage{animate} [\@anim@version\space PDF animations from files and inline graphics] @@ -204,10 +204,15 @@ \newboolean{@anim@grxloaded} \setboolean{@anim@grxloaded}{false} +\newboolean{@anim@pgfloaded} +\setboolean{@anim@pgfloaded}{false} \AtBeginDocument{% \@ifpackageloaded{graphicx}{% \setboolean{@anim@grxloaded}{true}% }{}% + \@ifpackageloaded{pgf}{% + \setboolean{@anim@pgfloaded}{true}% + }{}% } %alternative animation method using OCGs (option `useocg') @@ -271,10 +276,10 @@ >> >>} \else - \def\@anim@fields{@anim@fields} + \def\@anim@fields{@anim@fields} \if@anim@powerdot\if@anim@pdclock - \def\@anim@fields{afields} - \fi\fi + \def\@anim@fields{afields} + \fi\fi \special{ps: mark /_objdef {@anim@ocgs} /type/array /OBJ pdfmark mark /_objdef {@anim@posterocgs} /type/array /OBJ pdfmark @@ -285,14 +290,14 @@ >> >> /PUT pdfmark } - \ifthenelse{\boolean{@anim@powerdot}\AND\boolean{@anim@pdclock}}{}{ + \ifthenelse{\boolean{@anim@powerdot}\AND\boolean{@anim@pdclock}}{}{ \special{ps: mark /_objdef {\@anim@fields} /type/array /OBJ pdfmark mark {Catalog} << /AcroForm <</Fields {\@anim@fields}>> >> /PUT pdfmark } - } + } \fi \fi @@ -439,6 +444,23 @@ \special{pdf:bxobj @anim@frm@#1@#2 width \@anim@framewidth pt height \@anim@frameheight pt depth \@anim@framedepth pt}% \begin{picture}(0,0)\put(0,0){\box#3}\end{picture}% + \ifthenelse{\boolean{@anim@pgfloaded}}{% + \def\@anim@resources{}% + \ifthenelse{\boolean{pgf@sys@pdf@extgs@exists}}{% + \def\@anim@resources{/ExtGState @pgfextgs}}{}% + \ifthenelse{\boolean{pgf@sys@pdf@patterns@exists}}{% + \edef\@anim@resources{\@anim@resources/Pattern @pgfpatterns}}{}% + \ifthenelse{\boolean{pgf@sys@pdf@colorspaces@exists}}{% + \edef\@anim@resources{% + \@anim@resources/ColorSpace @pgfcolorspaces}}{}% + \ifthenelse{% + \boolean{pgf@sys@pdf@extgs@exists}% + \OR\boolean{pgf@sys@pdf@patterns@exists}% + \OR\boolean{pgf@sys@pdf@colorspaces@exists}% + }{% + \special{pdf:put @resources <<\@anim@resources>>}% + }{}% + }{}% \special{pdf:exobj}% \xdef\@anim@lastxform{@anim@frm@#1@#2}% \@anim@newkey{img@#2}{\@anim@lastxform}% @@ -1956,7 +1978,8 @@ \leavevmode% \setboolean{@anim@inside}{true}% \@anim@reset% to default settings - \begingroup% make use of graphic[xs] search path + \begingroup% + % make use of graphic[xs] search path \ifcsname Ginput@path\endcsname% \let\input@path\Ginput@path% \fi% |