blob: c98c9fae9ab26991f333f6a171ba4d907f20c5eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
%%
%% This is file `btnnanime.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% aeb_pro.dtx (with options: `copyright,btnanime')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% aeb_pro.sty package, %%
%% Copyright (C) 2006--2018 D. P. Story %%
%% dpstory@acrotex.net %%
%% %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License %%
%% Distributed from CTAN archives in directory %%
%% macros/latex/base/lppl.txt; either version 1.2 of %%
%% the License, or (at your option) any later version. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\btnAnime}[3]{\begingroup\animeSetup{#1}%
\ifx\animeBtnFieldName\@empty\PackageError{aeb_pro}%
{The fieldName key is required}{}\fi
\ifx\animeBtnBaseName\@empty\PackageError{aeb_pro}%
{The iconName key is required}{}\fi
\ifx\nFrames\@empty\PackageError{aeb_pro}%
{The nFrames key is required}{}\fi
\parbox[t][#3]{#2}{%
\everyPushButton{\BC{}\BG{}\S{S}\autoCenter{n}\FB{true}\TP{1}%
\Ff{\FfReadOnly}\presets{\aeb@btnAnimePresets}\I{null}}%
\edef\termLoop{\nFrames}\edef\firstBtnOpts{%
\ifnum\aebp@btnAnime@poster=0 \else\noexpand\F{\FHidden}\fi
\noexpand\AA{\ifKV@btnAnime@autorun
\aebp@autoplayevent{\noexpand\btnAnimePFAction}\fi
\ifKV@btnAnime@autopause
\aebp@autopauseevent{\noexpand\btnAnimePauseAction}\fi}}%
\makebox[0pt][l]{\expandafter\pushButton
\expandafter[\firstBtnOpts]{\animeBtnFieldName.0}{#2}{#3}}%
\ifnum\aebp@btnAnime@poster=1
\count0=\nFrames\relax\advance\count0by-1
\edef\termLoop{\the\count0}\fi\@tempcnta=1
\loop\ifnum\@tempcnta<\termLoop\relax
\makebox[0pt][l]{\pushButton[\F{\FHidden}]{%
\animeBtnFieldName.\the\@tempcnta}{#2}{#3}}%
\advance\@tempcnta1\relax\repeat
\ifnum\aebp@btnAnime@poster=1\relax\makebox[0pt][l]{%
\pushButton{\animeBtnFieldName.\termLoop}{#2}{#3}}%
\fi\hfill\ifx\aep@btn@anime@controls\@empty\else
\offinterlineskip\vcgBdry[\vspacectrlsep]%
\everyPushButton{}\centering
\ctrlButtonsWrapper{\insertCtrlButtons}\fi
}%parbox
\endgroup
}
\endinput
%%
%% End of file `btnnanime.def'.
|