From 9f85d0a8471c373b5f08275607bc6ffae1e0b700 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 19 Jul 2013 22:20:05 +0000 Subject: animate (19jul13) git-svn-id: svn://tug.org/texlive/trunk@31241 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/animate/ChangeLog | 3 ++ Master/texmf-dist/doc/latex/animate/animate.pdf | Bin 3648596 -> 3646605 bytes Master/texmf-dist/tex/latex/animate/animate.sty | 62 +++++++++++++----------- 3 files changed, 36 insertions(+), 29 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/animate/ChangeLog b/Master/texmf-dist/doc/latex/animate/ChangeLog index ddc53244c70..aa3fab2a602 100644 --- a/Master/texmf-dist/doc/latex/animate/ChangeLog +++ b/Master/texmf-dist/doc/latex/animate/ChangeLog @@ -1,3 +1,6 @@ +2013-07-19 + * minor, non-vital change of /AcroForm contents + 2013-04-23 * Fix: spaces in file names possible (at least with pdflatex) diff --git a/Master/texmf-dist/doc/latex/animate/animate.pdf b/Master/texmf-dist/doc/latex/animate/animate.pdf index d91849d307e..6a71e15e9ff 100644 Binary files a/Master/texmf-dist/doc/latex/animate/animate.pdf and b/Master/texmf-dist/doc/latex/animate/animate.pdf differ 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 <> + %/AcroForm <> + /AcroForm <> /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 <> + %/AcroForm <> + /AcroForm <> /OCProperties << /OCGs @anim@ocgs /D <> >> >>} \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 <> + %/AcroForm <> + /AcroForm <> >> /PUT pdfmark } } @@ -650,7 +654,7 @@ /AP <>% /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 <>% /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 <>% }% - \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 <>% >>% }% - \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 <>% /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 {% -- cgit v1.2.3