diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate/animate.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index 08d59698785..f1291dfce42 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{2012/12/06} +\def\@anim@version{2013/04/23} \ProvidesPackage{animate} [\@anim@version\space PDF animations from files and inline graphics] @@ -1237,6 +1237,7 @@ \fi %determines file type of the sequence +\def\zap@finalspace#1 \@nil{#1} \ifpdf \def\@anim@getpath#1{% \gdef\@anim@ext{.pdf}% we start with `pdf' @@ -1275,8 +1276,7 @@ Wrong file type? Mis-spelled file name?% }{}% }}}}}}}}}}% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@pathtofile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@pathtofile{\expandafter\zap@finalspace\@filef@und\@nil}% }% \else \if@anim@@dvipdfmx %XeLaTeX, dvipdfmx @@ -1311,8 +1311,7 @@ Wrong file type? Mis-spelled file name?% }{}% }}}}}}}}% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@pathtofile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@pathtofile{\expandafter\zap@finalspace\@filef@und\@nil}% }% \else %dvips \def\@anim@getpath#1{% @@ -1331,8 +1330,7 @@ Wrong file type? Mis-spelled file name?% }{}% }}}% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@pathtofile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@pathtofile{\expandafter\zap@finalspace\@filef@und\@nil}% }% \fi \fi @@ -1426,8 +1424,7 @@ }% }% \if@anim@multipage% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@pathtofile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@pathtofile{\expandafter\zap@finalspace\@filef@und\@nil}% \@anim@filebox{\@anim@pathtofile}{1}% \@anim@curframe=\pdflastximagepages% \advance\@anim@curframe by -\@ne%since \pdfximagepages is 1-based @@ -1464,8 +1461,7 @@ \gdef\@anim@ext{.pdf}% }{}% \if@anim@multipage% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@pathtofile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@pathtofile{\expandafter\zap@finalspace\@filef@und\@nil}% \@anim@curframe=\XeTeXpdfpagecount "\@anim@pathtofile"% \advance\@anim@curframe by -\@ne%since XeTeXpdfpagecount is 1-based \edef\@anim@lastpage{\the\@anim@curframe}% @@ -2889,8 +2885,7 @@ } \define@key{anim@user}{timeline}{% \IfFileExists{#1}{% - \edef\@filef@und{\@filef@und\space}% - \xdef\@anim@tmlnfile{\expandafter\zap@space\@filef@und\@empty}% + \xdef\@anim@tmlnfile{\expandafter\zap@finalspace\@filef@und\@nil}% \setboolean{@anim@timeline}{true}% }{% \PackageError{animate}{timeline file `#1' cannot be opened for reading% |