summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cntdwn/examples/shrtcntdwn_tst.tex
blob: 4ebf62acae83dd77c49615a29858179d2e6715fc (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
\documentclass{article}
\usepackage[designi,usesf]{web}
\usepackage{eforms}
\usepackage{cntdwn}

\title{The \texttt{cntdwn} Package
    \texorpdfstring{\\[6pt]}{: }Short Countdown}
\author{D. P. Story}
\subject{Demo file illustrating the short countdown of the cntdwn package}
\keywords{AeB, AcroTeX, clocks, countdown, cntdwn package}

\university{Acro\negthinspace\TeX.Net}
\email{dpstory@acrotex.net}
\version{1.0}
\copyrightyears{2010}
\revisionLabel{}

\thispagestyle{empty}
\parindent0pt\parskip6pt

\setShortCntDwn{CntDwnTimer}
{%
    autorun,
    length=1*\minutes,
    notify1=45*\seconds,
    notify2=30*\seconds,
    notify3=15*\seconds
}
\setShortCntDwn{CntUpTimer}
{%
    stopwatch,
    length=1*\minutes,
    notify1=15*\seconds,
    notify2=30*\seconds,
    notify3=45*\seconds,
    endmsg=Thank you for trying the cntdwn package from AcroTeX!,
    onfinish=continue,
}
\begin{document}

\maketitle


Counting down: Length 1 minute, \texttt{notify1} at 45 seconds, \texttt{notify2} at 30
seconds, and \texttt{notify3} at 15 seconds.

Time Remaining:
\cntdwnDisplay{CntDwnTimer}{.5in}{11bp}
\cntdwnStartT{CntDwnTimer}{11bp}{11bp}
\cntdwnPauseT{CntDwnTimer}{11bp}{11bp}
\cntdwnStopT{CntDwnTimer}{11bp}{11bp}

\begin{center}
\cntdwnEndTarget[\BC{}\textSize{20}\textColor{blue}\Q{1}]{CntDwnTimer}{.67\linewidth}{1in}
\end{center}

\newpage

Counting up: Length 1 minute, \texttt{notify1} at 15 seconds, \texttt{notify2} at 30
seconds, and \texttt{notify3} at 45 seconds. This counter set to start
manually, press the Start button (second from left).

Time Remaining:
\cntdwnDisplay{CntUpTimer}{.5in}{11bp}
\cntdwnStartT{CntUpTimer}{11bp}{11bp}
\cntdwnPauseT{CntUpTimer}{11bp}{11bp}
\cntdwnStopT{CntUpTimer}{11bp}{11bp}

You can optionally have explicit buttons instead of, or in addition to, the
three right most buttons:
\cntdwnStart[\CA{Start}\textSize{7}]{CntUpTimer}{}{9bp}
\cntdwnPause[\CA{Pause}\textSize{7}]{CntUpTimer}{}{9bp}
\cntdwnStop[\CA{Stop}\textSize{7}]{CntUpTimer}{}{9bp}

\begin{center}
\cntdwnEndTarget[\BC{}\textSize{20}\textColor{blue}\Q{1}]{CntUpTimer}{.67\linewidth}{1in}
\end{center}

\end{document}