summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/datepicker-pro/examples/datepicker_tst.tex
blob: 58911a37aa6e9f3955ddc1b47315ed7f44801ffb (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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}