summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/datepicker-pro/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/datepicker-pro/examples
Initial commit
Diffstat (limited to 'macros/latex/contrib/datepicker-pro/examples')
-rw-r--r--macros/latex/contrib/datepicker-pro/examples/datepicker_tst.pdfbin0 -> 355568 bytes
-rw-r--r--macros/latex/contrib/datepicker-pro/examples/datepicker_tst.tex106
2 files changed, 106 insertions, 0 deletions
diff --git a/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.pdf b/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.pdf
new file mode 100644
index 0000000000..e297fcbdaf
--- /dev/null
+++ b/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.pdf
Binary files differ
diff --git a/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.tex b/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.tex
new file mode 100644
index 0000000000..58911a37aa
--- /dev/null
+++ b/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.tex
@@ -0,0 +1,106 @@
+\documentclass{article}
+\usepackage[%
+ web={extended,tight*,usesf},
+ eforms,graphicxsp={showembeds}
+]{aeb_pro}
+\usepackage{fancyvrb}
+\usepackage{rmannot}
+\usepackage{datepicker-pro}
+
+\margins{.25in}{.25in}{24pt}{.25in} % left,right,top, bottom
+\screensize{5in}{5.5in} % height,width dimensions
+
+\renewcommand{\hproportionwebtitle}{.5}
+
+\iconBenOpts{\F{-\FPrint}}
+
+\DeclareDocInfo
+{
+ title=The datepicker-pro Package\texorpdfstring{\\[6pt]}{: }A date picker built by Adobe Flash Builder and AeB Pro,
+ author=D. P. Story,
+ university=Acro\negthinspace\TeX.Net,
+ email=dpstory@acrotex.net,
+ subject={Demo of the datepicker-pro package, SWF, rmannot, aeb\_pro, AcroTeX},
+ keywords={Adobe Acrobat;JavaScript;Adobe Flash Builder;Flex;ActionScript},
+ talksite=\url{http://www.acrotex.net},
+ talkdate={\today},
+ copyrightStatus=True,
+ copyrightNotice={Copyright (C) \the\year, D. P. Story},
+ copyrightInfoURL=http://www.acrotex.net
+}
+\talkdateLabel{Published:}
+
+\parindent=0pt\parskip6pt\pagestyle{empty}
+
+\useFLEXVer{3} % 3 or 4
+% This path has been move to the dp-pro.cfg configuration file. Find
+% that file in the top level of this distribution and edit it to reflect
+% the path to the SWF folder of this distribution, it must be an absolution path.
+%\definePath{\dppPath}{C:/Users/Public/Documents/My TeX Files/%
+% tex/latex/aeb/aebpro/datepicker-pro/swf}
+\setpickerIcon{../icons/dp_icon1.pdf}{PickADate}
+\setpickerIcon{../icons/dp_icon2.pdf}{GERDate}
+
+\begin{document}
+
+\maketitle
+
+In this short demonstration file, we present two date field styles, one for the U.S.\
+and the another for German.
+
+\begin{flushleft}
+U.S.-style: Pick a date:\ \kern1bp\datepicker{PickADate}{1in}{11bp}\quad
+(MM/DD/YYYY)
+\end{flushleft}
+This is the default style: \verb!\datepicker{PickADate}{1in}{11bp}!
+
+\newcommand{\germanDates}
+{%
+% formatstring=DD.MM.YYYY,
+ formatstring={EEEE, DD. MMMM YYYY},
+ daynames={So,Mo,Di,Mi,Do,Fr,Sa},
+ monthnames={Jan,Febr,Mrz,Apr,Mai,Jun,Jul,Aug,Sept,%
+ Okt,Nov,Dez},
+ daynamesLong={Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,%
+ Freitag,Samstag},
+ daynamesShort={So,Mo,Di,Mi,Do,Fr,Sa},
+ monthnamesLong={Januar,Februar,M\u00E4rz,April,Mai,Juni,Juli,%
+ August,September,Oktober,November,Dezember},
+ monthnamesShort={Jan,Feb,Mrz,Apr,Mai,Jun,Jul,Aug,%
+ Sep,Okt,Nov,Dez},
+ firstday=1,
+ widthOfWindow=200,
+ heightOfWindow=200,
+ voffset=-100
+}
+
+% Di, 13. August 2013
+
+\begin{flushleft}
+German-style: Pick a date:\ \kern1bp\datepicker[\germanDates]{GERDate}{2in}{11bp}\quad
+%(EEEE, DD. MMMM YYYY)
+\end{flushleft}
+
+\end{document}
+
+
+A custom style, the verbatim listing of this field is given below:
+\begin{Verbatim}[xleftmargin=\leftmargini,fontsize=\small,commandchars=!()]
+\newcommand{\germanDates}
+{%
+ formatstring={EEEE, DD. MMMM YYYY},
+ daynames={So,Mo,Di,Mi,Do,Fr,Sa},
+ monthnames={Jan,Febr,Mrz,Apr,Mai,Jun,Jul,Aug,Sept,Okt,Nov,Dez},
+ daynamesLong={Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,
+ Freitag,Samstag},
+ daynamesShort={So,Mo,Di,Mi,Do,Fr,Sa},
+ monthnamesLong={Januar,Februar,M!"(a)rz,April,Mai,Juni,Juli,
+ August,September,Oktober,November,Dezember},
+ monthnamesShort={Jan,Feb,Mrz,Apr,Mai,Jun,Jul,Aug,Sep,
+ Okt,Nov,Dez},
+ firstday=1,widthOfWindow=200,heightOfWindow=200
+}
+\datepicker[\germanDates]{GERDate}{2in}{11bp}
+\end{Verbatim}
+\end{document}
+