diff options
author | Karl Berry <karl@freefriends.org> | 2015-08-28 22:54:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-08-28 22:54:55 +0000 |
commit | 5122d8c1609584ae039c2bc77fcef68eb1abb256 (patch) | |
tree | cf24969a6d4d23106d0b2f0f49d39c4fbf38ed6a /Master/texmf-dist/tex | |
parent | b009ce392cdc91507c2298a0f228d19089d2e6f1 (diff) |
animate (28aug15)
git-svn-id: svn://tug.org/texlive/trunk@38230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 357 |
1 files changed, 223 insertions, 134 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index 399b4dd0408..09bcd4dc38b 100644 --- a/Master/texmf-dist/tex/latex/animate/animate.sty +++ b/Master/texmf-dist/tex/latex/animate/animate.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e} -\def\@anim@version{2015/07/18} +\def\@anim@version{2015/08/28} \ProvidesPackage{animate} [\@anim@version\space PDF animations from files and inline graphics] @@ -963,57 +963,78 @@ \if@anim@dvips %stroking commands \def\@anim@btnend{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto + 6.5 1 moveto + 1 1 1 6.5 2 arct + 1 6.5 lineto + 1 14 6.5 14 2 arct + 6.5 14 lineto + 14 14 14 6.5 2 arct + 14 6.5 lineto + 14 1 6.5 1 2 arct closepath + \ifx\empty\@anim@bg\empty\else + gsave \@anim@bg\space fill grestore + \fi stroke + % 1 setlinewidth - 4.5 4 moveto - 9.5 7.5 lineto - 4.5 11 lineto + 4.5 4.7 moveto + 8.6 7.5 lineto + 4.5 10.3 lineto stroke 0 setlinejoin - 10.5 4.4 moveto - 10.5 10.6 lineto + 10.0 4.7 moveto + 10.0 10.3 lineto stroke } \def\@anim@btnstep{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto + 6.5 1 moveto + 1 1 1 6.5 2 arct + 1 6.5 lineto + 1 14 6.5 14 2 arct + 6.5 14 lineto + 14 14 14 6.5 2 arct + 14 6.5 lineto + 14 1 6.5 1 2 arct closepath + \ifx\empty\@anim@bg\empty\else + gsave \@anim@bg\space fill grestore + \fi stroke + % 1 setlinewidth - 5 4 moveto - 10 7.5 lineto - 5 11 lineto + 5.5 4.7 moveto + 9.6 7.5 lineto + 5.5 10.3 lineto stroke } \def\@anim@btnplay{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto - closepath + 0 1 moveto + 14 1 14 6.5 2 arct + 14 6.5 lineto + 14 14 1 14 2 arct + 0 14 lineto + \ifx\empty\@anim@bg\empty\else + gsave closepath \@anim@bg\space fill grestore + \fi + stroke + 0.1 setlinewidth + 0 14 moveto + 0 1 lineto stroke + % 1 setlinewidth 5 4 moveto 5 11 lineto @@ -1022,74 +1043,100 @@ stroke } \def\@anim@btnpause{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth - 0 setlinecap + 0.5 setlinewidth + 1 setlinecap 1 setlinejoin 0 1 moveto - 14 1 lineto - 14 14 lineto + 14 1 14 6.5 2 arct + 14 6.5 lineto + 14 14 1 14 2 arct 0 14 lineto + \ifx\empty\@anim@bg\empty\else + gsave closepath \@anim@bg\space fill grestore + \fi stroke + % + 0 setlinecap 2 setlinewidth 2.2 4 moveto 2.2 11 lineto stroke } \def\@anim@btnminus{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto + 6.5 1 moveto + 1 1 1 6.5 2 arct + 1 6.5 lineto + 1 14 6.5 14 2 arct + 6.5 14 lineto + 14 14 14 6.5 2 arct + 14 6.5 lineto + 14 1 6.5 1 2 arct closepath + \ifx\empty\@anim@bg\empty\else + gsave \@anim@bg\space fill grestore + \fi stroke + % 1.0 setlinewidth 0 setlinecap - 4 7.5 moveto - 11 7.5 lineto + 4.7 7.5 moveto + 10.3 7.5 lineto stroke } \def\@anim@btnplus{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto + 6.5 1 moveto + 1 1 1 6.5 2 arct + 1 6.5 lineto + 1 14 6.5 14 2 arct + 6.5 14 lineto + 14 14 14 6.5 2 arct + 14 6.5 lineto + 14 1 6.5 1 2 arct closepath + \ifx\empty\@anim@bg\empty\else + gsave \@anim@bg\space fill grestore + \fi stroke + % 1.0 setlinewidth 0 setlinecap - 4 7.5 moveto - 11 7.5 lineto - 7.5 4 moveto - 7.5 11 lineto + 4.7 7.5 moveto + 10.3 7.5 lineto + 7.5 4.7 moveto + 7.5 10.3 lineto stroke } \def\@anim@btnreset{% - \@anim@bg\space \@anim@fg\space - 0.25 setlinewidth + 0.5 setlinewidth 1 setlinecap 1 setlinejoin - 1 1 moveto - 14 1 lineto - 14 14 lineto - 1 14 lineto + 6.5 1 moveto + 1 1 1 6.5 2 arct + 1 6.5 lineto + 1 14 6.5 14 2 arct + 6.5 14 lineto + 14 14 14 6.5 2 arct + 14 6.5 lineto + 14 1 6.5 1 2 arct closepath + \ifx\empty\@anim@bg\empty\else + gsave \@anim@bg\space fill grestore + \fi stroke + % 1 setlinewidth - 7.5 4 moveto - 7.5 11 lineto + 7.5 4.7 moveto + 7.5 10.3 lineto stroke 0 setlinejoin 3.5 5 moveto @@ -1147,108 +1194,167 @@ \else %pdftex/dvipdfmx/xetex %stroking commands \def\@anim@btnend{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re - S + 65 10 m + 30 10 l + 18.957 10 10 18.957 10 30 c + 10 120 l + 10 131.043 18.957 140 30 140 c + 120 140 l + 131.043 140 140 131.043 140 120 c + 140 30 l + 140 18.957 131.043 10 120 10 c + \ifx\empty\@anim@bg\empty s + \else\@anim@bg\space b \fi + % 10 w - 45 40 m - 95 75 l - 45 110 l + 45 47 m + 86 75 l + 45 103 l S 0 j - 105 44 m - 105 106 l + 100 47 m + 100 103 l S } \def\@anim@btnstep{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re - S + 65 10 m + 30 10 l + 18.957 10 10 18.957 10 30 c + 10 120 l + 10 131.043 18.957 140 30 140 c + 120 140 l + 131.043 140 140 131.043 140 120 c + 140 30 l + 140 18.957 131.043 10 120 10 c + \ifx\empty\@anim@bg\empty s + \else\@anim@bg\space b \fi + % 10 w - 50 40 m - 100 75 l - 50 110 l + 55 47 m + 96 75 l + 55 103 l S } \def\@anim@btnplay{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re + 0 10 m + 120 10 l + 131.043 10 140 18.957 140 30 c + 140 120 l + 140 131.043 131.043 140 120 140 c + 0 140 l + \ifx\empty\@anim@bg\empty S + \else\@anim@bg\space B \fi + 1 w + 0 140 m + 0 10 l S + % 10 w 50 40 m 50 110 l 100 75 l - h - S + s } \def\@anim@btnpause{% - \@anim@bg\space - 2.5 w + 5 w + 1 J 1 j \@anim@fg\space 0 10 m - 140 10 l - 140 140 l + 120 10 l + 131.043 10 140 18.957 140 30 c + 140 120 l + 140 131.043 131.043 140 120 140 c 0 140 l - S + \ifx\empty\@anim@bg\empty S + \else\@anim@bg\space B \fi + % + 0 J 20 w 22 40 m 22 110 l S } \def\@anim@btnminus{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re - S + 65 10 m + 30 10 l + 18.957 10 10 18.957 10 30 c + 10 120 l + 10 131.043 18.957 140 30 140 c + 120 140 l + 131.043 140 140 131.043 140 120 c + 140 30 l + 140 18.957 131.043 10 120 10 c + \ifx\empty\@anim@bg\empty s + \else\@anim@bg\space b \fi + % 10 w 0 J - 40 75 m - 110 75 l + 47 75 m + 103 75 l S } \def\@anim@btnplus{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re - S + 65 10 m + 30 10 l + 18.957 10 10 18.957 10 30 c + 10 120 l + 10 131.043 18.957 140 30 140 c + 120 140 l + 131.043 140 140 131.043 140 120 c + 140 30 l + 140 18.957 131.043 10 120 10 c + \ifx\empty\@anim@bg\empty s + \else\@anim@bg\space b \fi + % 10 w 0 J - 40 75 m - 110 75 l - 75 40 m - 75 110 l + 47 75 m + 103 75 l + 75 47 m + 75 103 l S } \def\@anim@btnreset{% - \@anim@bg\space - 2.5 w + 5 w 1 J 1 j \@anim@fg\space - 10 10 130 130 re - S + 65 10 m + 30 10 l + 18.957 10 10 18.957 10 30 c + 10 120 l + 10 131.043 18.957 140 30 140 c + 120 140 l + 131.043 140 140 131.043 140 120 c + 140 30 l + 140 18.957 131.043 10 120 10 c + \ifx\empty\@anim@bg\empty s + \else\@anim@bg\space b \fi + % 10 w - 75 40 m - 75 110 l + 75 47 m + 75 103 l S \@anim@@@fg\space 35 50 m @@ -2764,23 +2870,6 @@ \@anim@colours#2\@nil% }% } -\if@anim@dvips %background frame of buttons - \def\@anim@@@bg{% - 0 setlinejoin - 0 0 moveto - 15 0 lineto - 15 15 lineto - 0 15 lineto - closepath - fill% - } -\else% pdftex and dvipdfmx - \def\@anim@@@bg{% - 0 j - 0 0 150 150 re - f% - } -\fi \define@key{anim@user}{buttonbg}{%background colour of buttons \global\@anim@tmpcnt=\@ne% \gdef\@anim@colour{}% @@ -2788,25 +2877,25 @@ \xdef\@anim@bgcolour{\@anim@colour}% \if@anim@dvips \ifnum\@anim@tmpcnt=\@ne% - \xdef\@anim@bg{\@anim@colour\space setgray\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space setgray}% \else% \ifnum\@anim@tmpcnt=3\relax% - \xdef\@anim@bg{\@anim@colour\space setrgbcolor\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space setrgbcolor}% \else% \ifnum\@anim@tmpcnt=4\relax% - \xdef\@anim@bg{\@anim@colour\space setcmykcolor\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space setcmykcolor}% \fi% \fi% \fi% \else% pdftex and dvipdfmx \ifnum\@anim@tmpcnt=\@ne% - \xdef\@anim@bg{\@anim@colour\space g\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space g}% \else% \ifnum\@anim@tmpcnt=3\relax% - \xdef\@anim@bg{\@anim@colour\space rg\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space rg}% \else% \ifnum\@anim@tmpcnt=4\relax% - \xdef\@anim@bg{\@anim@colour\space k\space\@anim@@@bg}% + \xdef\@anim@bg{\@anim@colour\space k}% \fi% \fi% \fi% @@ -3068,25 +3157,25 @@ \xdef\@anim@@bgcolour{\@anim@colour}% \if@anim@dvips \ifnum\@anim@tmpcnt=\@ne% - \xdef\@anim@@bg{\@anim@colour\space setgray\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space setgray}% \else% \ifnum\@anim@tmpcnt=3\relax% - \xdef\@anim@@bg{\@anim@colour\space setrgbcolor\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space setrgbcolor}% \else% \ifnum\@anim@tmpcnt=4\relax% - \xdef\@anim@@bg{\@anim@colour\space setcmykcolor\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space setcmykcolor}% \fi% \fi% \fi% \else% pdftex and dvipdfmx \ifnum\@anim@tmpcnt=\@ne% - \xdef\@anim@@bg{\@anim@colour\space g\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space g}% \else% \ifnum\@anim@tmpcnt=3\relax% - \xdef\@anim@@bg{\@anim@colour\space rg\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space rg}% \else% \ifnum\@anim@tmpcnt=4\relax% - \xdef\@anim@@bg{\@anim@colour\space k\space\@anim@@@bg}% + \xdef\@anim@@bg{\@anim@colour\space k}% \fi% \fi% \fi% |