From f453f119c796c9607b391bbf26971fda1826c51c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Sep 2009 00:48:31 +0000 Subject: animate update (24sep09) git-svn-id: svn://tug.org/texlive/trunk@15451 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/animate/animate.sty | 63 +++++++++++++++++-------- 1 file changed, 44 insertions(+), 19 deletions(-) (limited to 'Master/texmf-dist/tex/latex/animate') diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index b82894f06fc..3f32912c67e 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{2009/08/31} +\def\@anim@version{2009/09/24} \ProvidesPackage{animate} [\@anim@version\space PDF animations from files and inline graphics] @@ -95,6 +95,34 @@ \begingroup% \@anim@document% } + %determine DVI resolution and output warning message if too big + \AtBeginDocument{% + \special{ps: + Resolution 1200 gt VResolution 1200 gt or {% + (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\string\n% + @@\ \ \ \ Warning: DVI resolution greater than 1200 dpi!% + \ \ \ \ \ @@\string\n% + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\string\n% + @@\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ @@\string\n% + @@ Animations may be distorted or invisible.\ \ \ \ \ \ \ \ \ \ \ \ % + \ @@\string\n% + @@ Dvips should be called either without option `-Ppdf':\ @@% + \string\n @@\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ @@\string\n% + @@ \ \ dvips \jobname\string\n @@\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ @@\string\n @@ or with a different resolution setting: \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ @@\string\n @@\ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ @@\string\n @@ \ \ dvips -Ppdf -D1200\ % + \jobname\string\n @@\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ % + @@\string\n% + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@) % + (\%stderr) (w) file exch writestring} if + }% + } %define `?pdfmark' operator as in file hdvips.def from package `hyperref' \AtBeginDvi{% \expandafter\ifx\csname pdfmark\endcsname\relax% @@ -3024,43 +3052,40 @@ for(var i in ocg){% var ocgName=ocg[i].name.split('.');% if(ocgName[0]==#1){% - \if@anim@controls + \if@anim@controls\if@anim@step\else if(ocgName[1].charAt(0)=='P'){% PlayLeft, PauseLeft, ... a#1.btn[ocgName[1]]=ocg[i];% %set basic button state a#1.btn[ocgName[1]].state=ocg[i].initState;% }else{% frame ocg - \fi + \fi\fi a#1.fr[ocgName[1]]=ocg[i];% %set basic frame state a#1.fr[ocgName[1]].state=ocg[i].initState;% - \if@anim@controls% + \if@anim@controls\if@anim@step\else% }% - \fi% + \fi\fi% }% }% \else - %get array of Field objects (frame widgets) of current page + %get array of Field objects belonging to the current animation for(i=0;i