diff options
Diffstat (limited to 'texmf-dist/source/latex/cntdwn/examples')
3 files changed, 197 insertions, 0 deletions
diff --git a/texmf-dist/source/latex/cntdwn/examples/clock_tst.tex b/texmf-dist/source/latex/cntdwn/examples/clock_tst.tex new file mode 100644 index 00000000..ee2b4f8a --- /dev/null +++ b/texmf-dist/source/latex/cntdwn/examples/clock_tst.tex @@ -0,0 +1,56 @@ +\documentclass{article} +\usepackage[designvi,usesf,tight]{web} +\usepackage{eforms} +\usepackage[longcount]{cntdwn} + +\title{The \texttt{cntdwn} Package + \texorpdfstring{\\[6pt]}{: }Clock Timers} +\author{D. P. Story} +\subject{Demo file illustrating clocks, local and foreign time zones} +\keywords{AeB, AcroTeX, clocks, countdown, cntdwn package} + +\university{Acro\negthinspace\TeX.Net} +\email{dpstory@acrotex.net} +\version{1.0} +\copyrightyears{2010} +\revisionLabel{} + +\setClockTimer{LocalClock}{} +\setClockTimer{CESTClock}{tzoffset=+0200} % this is summer time, CET is +0100 + +\parskip6pt\parindent0pt + +\begin{document} + +\maketitle + +The clocks below show local time and date (the time/date your computer +shows), and the time and date of Central Europe during the summer (CEST), the +time when this demo file was originally created. + +\begin{tabular}{rcc} +Local Time: &% +\cntdwnclocktime{LocalClock}{1in}{11bp}&% +\cntdwnclockdate{LocalClock}{1in}{11bp}\\[3bp] +CEST: &% +\cntdwnclocktime{CESTClock}{1in}{11bp}&% +\cntdwnclockdate{CESTClock}{1in}{11bp}% +\end{tabular} + +In the preamble we have +\begin{verbatim} +\setClockTimer{LocalClock}{} +\setClockTimer{CESTClock}{tzoffset=+0200} +\end{verbatim} +and in the body of the document we have +\begin{verbatim} +\begin{tabular}{rcc} +Local Time: &\cntdwnclocktime{LocalClock}{1in}{11bp}&% +\cntdwnclockdate{LocalClock}{1in}{11bp}\\[3bp] +CEST: &\cntdwnclocktime{CESTClock}{1in}{11bp}&% +\cntdwnclockdate{CESTClock}{1in}{11bp}% +\end{tabular} +\end{verbatim} +These commands are available through the \texttt{longcount} option of the \texttt{cntdwn} +package. +\end{document} diff --git a/texmf-dist/source/latex/cntdwn/examples/lngcntdwn_tst.tex b/texmf-dist/source/latex/cntdwn/examples/lngcntdwn_tst.tex new file mode 100644 index 00000000..e4b0ae7d --- /dev/null +++ b/texmf-dist/source/latex/cntdwn/examples/lngcntdwn_tst.tex @@ -0,0 +1,62 @@ +\documentclass{article} +\usepackage[designi,usesf]{web} +\usepackage{eforms} +\usepackage[longcount]{cntdwn} + +\title{The \texttt{cntdwn} Package + \texorpdfstring{\\[6pt]}{: }Long Countdown} +\author{D. P. Story} +\subject{Demo file illustrating the long 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 + + +\setLongCntDwn{NewYearsLocal} +{% + date=2015/01/01, + time=00:01:00, + endmsg=Happy New Year from wherever I currently am!, + onfinish=stop +} +\setLongCntDwn{NewYearsCET} +{% + date=2015/01/01, + time=00:01:00, + tzoffset=+0100, + endmsg=Happy New Year from wherever central Europe!, + onfinish=stop +} + + +\begin{document} + +\maketitle + +The long countdown shows the time remaining to an event in the (usually +distant) future. + +\begin{tabular}{rc} +\multicolumn{2}{c}{Time to New Years Day}\\[3bp] +Local:&\lcntdwnDisplay{NewYearsLocal}{2.5in}{11bp}\\[3bp] +CET:&\lcntdwnDisplay{NewYearsCET}{2.5in}{11bp} +\end{tabular} + +In central Europe, the two countdowns should read the same, in the U.S., +they may differ by at least 5 hours. + +When the count has reached 0 seconds, a message appears in the text field +wishing you a Happy New Year, from Acro\negthinspace\TeX. I hope you stay +up until 1 second after midnight to see the message. Then, you can set +the dates to \texttt{2016/01/01} for me, now there's a good fellow. + +This code is available through the \texttt{longcount} option of the \texttt{cntdwn} package. + +\end{document} diff --git a/texmf-dist/source/latex/cntdwn/examples/shrtcntdwn_tst.tex b/texmf-dist/source/latex/cntdwn/examples/shrtcntdwn_tst.tex new file mode 100644 index 00000000..4ebf62ac --- /dev/null +++ b/texmf-dist/source/latex/cntdwn/examples/shrtcntdwn_tst.tex @@ -0,0 +1,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} |