summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-19 22:20:05 +0000
committerKarl Berry <karl@freefriends.org>2013-07-19 22:20:05 +0000
commit9f85d0a8471c373b5f08275607bc6ffae1e0b700 (patch)
treefb5448196f17817721e64fb9d0ebad55491ba811 /Master/texmf-dist/tex
parent536700e391efb5dd8aca4d91282cb83e34fd977a (diff)
animate (19jul13)
git-svn-id: svn://tug.org/texlive/trunk@31241 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty62
1 files changed, 33 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index f1291dfce42..13f1b883eff 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{2013/04/23}
+\def\@anim@version{2013/07/19}
\ProvidesPackage{animate}
[\@anim@version\space PDF animations from files and inline graphics]
@@ -130,8 +130,9 @@
\fi
\fi
-\edef\@anim@catcode{\the\catcode`\_}\catcode`\_=13
-\begingroup\let_\space
+%\edef\@anim@catcode{\the\catcode`\_}\catcode`\_=13
+\begingroup
+\catcode`\_=13 \let_\space
\xdef\@anim@dpiwarning{%
{Resolution 1200 gt VResolution 1200 gt or product (Ghostscript)
search {pop pop pop true}{pop false}ifelse and {%
@@ -152,7 +153,7 @@
print} if} ?pdfmark
}
\endgroup
-\catcode`\%=14\catcode`\#=6\catcode`\_=\@anim@catcode
+%\catcode`\%=14\catcode`\#=6\catcode`\_=\@anim@catcode
%\pdfmdfivesum is used for hashing object references of embedded files based
%on their MD5 digest (in order to avoid multiple inclusion); if it is not
@@ -225,9 +226,9 @@
%add AcroForm and OCProperties entries to Catalog
\ifpdf
- \newcount\@anim@@fields
- \pdfobj reserveobjnum
- \@anim@@fields=\pdflastobj
+ %\newcount\@anim@@fields
+ %\pdfobj reserveobjnum
+ %\@anim@@fields=\pdflastobj
\newcount\@anim@@ocgs
\pdfobj reserveobjnum
\@anim@@ocgs=\pdflastobj
@@ -235,7 +236,8 @@
\pdfobj reserveobjnum
\@anim@@offocgs=\pdflastobj
\pdfcatalog{
- /AcroForm <</Fields \the\@anim@@fields\space 0 R>>
+ %/AcroForm <</Fields \the\@anim@@fields\space 0 R/NeedAppearances true>>
+ /AcroForm <</Fields []/NeedAppearances true>>
/OCProperties <<
/OCGs \the\@anim@@ocgs\space 0 R
/D <<
@@ -243,13 +245,13 @@
>>
>>
}
- \def\@anim@fields{}
+ %\def\@anim@fields{}
\def\@anim@ocgs{}
\def\@anim@offocgs{}
\AtEndDocument{%
- \immediate\pdfobj useobjnum \@anim@@fields {%
- [\@anim@fields]%
- }%
+ %\immediate\pdfobj useobjnum \@anim@@fields {%
+ % [\@anim@fields]%
+ %}%
\immediate\pdfobj useobjnum \@anim@@ocgs {%
[\@anim@ocgs]%
}%
@@ -262,23 +264,24 @@
\newcount\@anim@fieldnum\@anim@fieldnum=\z@%
\if@anim@@dvipdfmx
%array which takes refs to all widget annotations
- \special{pdf:obj @anim@fields [ ]}
+ %\special{pdf:obj @anim@fields [ ]}
%array which takes all ocgs (one per animation frame)
\special{pdf:obj @anim@ocgs [ ]}
%array which takes ocgs shown by default (the poster frames)
\special{pdf:obj @anim@offocgs [ ]}
\special{pdf:put @catalog <<
- /AcroForm <</Fields @anim@fields>>
+ %/AcroForm <</Fields @anim@fields/NeedAppearances true>>
+ /AcroForm <</Fields []/NeedAppearances true>>
/OCProperties <<
/OCGs @anim@ocgs
/D <</BaseState/ON /OFF @anim@offocgs>>
>>
>>}
\else
- \def\@anim@fields{@anim@fields}
- \if@anim@powerdot\if@anim@pdclock
- \def\@anim@fields{afields}
- \fi\fi
+ %\def\@anim@fields{@anim@fields}
+ %\if@anim@powerdot\if@anim@pdclock
+ % \def\@anim@fields{afields}
+ %\fi\fi
\special{ps:
mark /_objdef {@anim@ocgs} /type/array /OBJ pdfmark
mark /_objdef {@anim@offocgs} /type/array /OBJ pdfmark
@@ -291,9 +294,10 @@
}
\ifthenelse{\boolean{@anim@powerdot}\AND\boolean{@anim@pdclock}}{}{
\special{ps:
- mark /_objdef {\@anim@fields} /type/array /OBJ pdfmark
+ %mark /_objdef {\@anim@fields} /type/array /OBJ pdfmark
mark {Catalog} <<
- /AcroForm <</Fields {\@anim@fields}>>
+ %/AcroForm <</Fields {\@anim@fields}/NeedAppearances true>>
+ /AcroForm <</Fields []/NeedAppearances true>>
>> /PUT pdfmark
}
}
@@ -650,7 +654,7 @@
/AP <</N \the\pdflastxform\space 0 R>>%
/T (#1.#2)%
}%
- \xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
+ %\xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
}
\else
\if@anim@@dvipdfmx
@@ -712,7 +716,7 @@
/T (#1.#2)%
>>%
}%
- \special{pdf:put @anim@fields @annot@\the\@anim@fieldnum}%
+ %\special{pdf:put @anim@fields @annot@\the\@anim@fieldnum}%
\global\advance\@anim@fieldnum by \@ne%
}
\else
@@ -789,7 +793,7 @@
/AP <</N {@anim@anmfrm@#1@#2}>>%
/T (#1.#2)%
/ANN pdfmark
- mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
+ %mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
}%
\global\advance\@anim@fieldnum by \@ne%
}
@@ -1773,7 +1777,7 @@
>>%
}%
%append widget reference to Fields array of the AcroForm dict
- \xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
+ %\xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
\hbox to \@anim@animwidth\p@ {%
\vrule width 0pt height \@anim@animheight\p@ depth \@anim@animdepth\p@%
\hss%
@@ -1801,7 +1805,7 @@
>>
>>%
}%
- \special{pdf:put @anim@fields @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@%
@@ -1845,7 +1849,7 @@
\@anim@otherjscriptkey%
>>%
/ANN pdfmark
- mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
+ %mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
}%
\global\advance\@anim@fieldnum by \@ne%
\hbox to \@anim@animwidth\p@ {%
@@ -1876,7 +1880,7 @@
\@anim@tooltip%
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
}%
- \xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
+ %\xdef\@anim@fields{\@anim@fields\space\the\pdflastannot\space 0 R}%
\vrule width 0pt height \@anim@tmpdima depth 0pt%
\hss%
}%
@@ -1900,7 +1904,7 @@
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
>>%
}%
- \special{pdf:put @anim@fields @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%
@@ -1938,7 +1942,7 @@
\@anim@tooltip%
/A <</S/JavaScript/JS (\@anim@upjscriptstring)>>%
/ANN pdfmark
- mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
+ %mark {\@anim@fields} {annot@\the\@anim@fieldnum} /APPEND pdfmark
}%
\global\advance\@anim@fieldnum by \@ne%
\hbox to \the\@anim@tmpdima {%