summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-25 00:48:31 +0000
committerKarl Berry <karl@freefriends.org>2009-09-25 00:48:31 +0000
commitf453f119c796c9607b391bbf26971fda1826c51c (patch)
tree26fa109a191f782ae3745bbb2fc3f4d19bb4a606 /Master/texmf-dist/tex
parent0fa65f4a98aa2579f8a69b4fa5d55458fcc2ec3b (diff)
animate update (24sep09)
git-svn-id: svn://tug.org/texlive/trunk@15451 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty63
1 files changed, 44 insertions, 19 deletions
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<this.numFields;i++){%
var fldName=this.getNthFieldName(i).split('.');%
if(fldName[0]==#1){%
a#1.fr[fldName[1]]=this.getField(this.getNthFieldName(i));%
}%
}%
- \if@anim@controls%
- \if@anim@step\else
- %get array of ocgs of current page
- var ocg=this.getOCGs(this.pageNum);%
- for(var i in ocg){%
- var ocgName=ocg[i].name.split('.');%
- if(ocgName[0]==#1){%
- a#1.btn[ocgName[1]]=ocg[i];%
- %set basic button state
- a#1.btn[ocgName[1]].state=ocg[i].initState;%
- }%
+ \if@anim@controls\if@anim@step\else
+ var ocg=this.getOCGs(this.pageNum);%
+ for(var i in ocg){%
+ var ocgName=ocg[i].name.split('.');%
+ if(ocgName[0]==#1){%
+ a#1.btn[ocgName[1]]=ocg[i];%
+ %set basic button state
+ a#1.btn[ocgName[1]].state=ocg[i].initState;%
}%
- \fi%
- \fi%
+ }%
+ \fi\fi%
\fi%
\ifx\@anim@poster\@anim@posterlast % set default frame
%holds index of the frame to be displayed