summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:29:47 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-02 18:29:47 +0000
commit611df81a297047b3f9760ad0210619ca533f5573 (patch)
treebee6680bfe9b0d1342289db0691841a138021840 /Master/texmf-dist/tex/latex/animate
parente3bf038a5a75574e1168569ac5fcd3716eb15bb1 (diff)
animate 2011-05-30
git-svn-id: svn://tug.org/texlive/trunk@23322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty26
1 files changed, 14 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index 75619a8be0c..13367415fab 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -1,4 +1,4 @@
-% Copyright 2007--2008 Alexander Grahn
+% Copyright 2007--2011 Alexander Grahn
% This material is subject to the LaTeX Project Public License. See
% http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\@anim@version{2010/09/28}
+\def\@anim@version{2011/05/30}
\ProvidesPackage{animate}
[\@anim@version\space PDF animations from files and inline graphics]
@@ -149,7 +149,9 @@
%on their MD5 digest (in order to avoid multiple inclusion); if it is not
%available, hashing will be based on the file name
\expandafter\ifx\csname pdfmdfivesum\endcsname\relax
- \def\pdfmdfivesum file#1{#1}
+ \def\@anim@pdfmdfivesum file#1{#1}
+\else
+ \let\@anim@pdfmdfivesum\pdfmdfivesum
\fi
%creating and using global definitions
@@ -285,11 +287,11 @@
%of xobj, otherwise returns `!'
\def\@anim@fileknown#1#2{% #1 file name, pdf: #2 page No. ps: #2 @anim@num
%identify file by md5sum
- \ifcsname file:\pdfmdfivesum file{#1}.#2\endcsname%
- \@anim@getkeyval{file:\pdfmdfivesum file{#1}.#2}\else!\fi%
+ \ifcsname file:\@anim@pdfmdfivesum file{#1}.#2\endcsname%
+ \@anim@getkeyval{file:\@anim@pdfmdfivesum file{#1}.#2}\else!\fi%
}
\def\@anim@makefileknown#1#2#3{%#1 file name, pdf: #2 page No. ps: #2 @anim@num,
- \@anim@newkey{file:\pdfmdfivesum file{#1}.#2}{#3}% #3 Form XObj ID
+ \@anim@newkey{file:\@anim@pdfmdfivesum file{#1}.#2}{#3}% #3 Form XObj ID
}
%helper macro that typesets graphics file into savebox
@@ -2236,13 +2238,13 @@
\ifthenelse{\equal{\@anim@vartype}{i}\OR\equal{\@anim@vartype}{I}}{%
% integers, prefix i, I
%initialize variable
- \setcounter{@anim@tmpcnt}{#2}%
- \expandafter\edef\csname#1\endcsname{\the@anim@tmpcnt}%
+ \setcounter{@anim@ltxcnt}{#2}%
+ \expandafter\edef\csname#1\endcsname{\the@anim@ltxcnt}%
%global copy that saves current variable value between loops
- \expandafter\xdef\csname#1@old\endcsname{\the@anim@tmpcnt}%
- \setcounter{@anim@tmpcnt}{#3}%
+ \expandafter\xdef\csname#1@old\endcsname{\the@anim@ltxcnt}%
+ \setcounter{@anim@ltxcnt}{#3}%
%global copy of increment
- \expandafter\xdef\csname#1@inc\endcsname{\the@anim@tmpcnt}%
+ \expandafter\xdef\csname#1@inc\endcsname{\the@anim@ltxcnt}%
%append script for updating variable to \@anim@updatevars macro
\g@addto@macro\@anim@updatevars{%
%new value
@@ -2311,7 +2313,7 @@
\newread\@anim@@tmlnfile
\newboolean{@anim@eof}
\newcount\@anim@tmpcnt %scratch counter for different uses
-\newcounter{@anim@tmpcnt} %scratch LaTeX counter for different uses
+\newcounter{@anim@ltxcnt} %scratch LaTeX counter for different uses
\newcount\@anim@curlayer %takes the number of the current layer being processed
\newcount\@anim@lineno %current input line No.