Debian Codegraph @

texmf-dist/doc/latex/pst-calendar/pst-calendar-doc.tex

raw
1 %% $Id: pst-calendar-doc.tex 230 2021-09-11 18:04:30Z herbert $
2 \RequirePackage{pdfmanagement-testphase}
3 \DeclareDocumentMetadata{}
4 \documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small,
5 headinclude=false,footinclude=false,twoside,english]{pst-doc}
6 \usepackage{pst-calendar}
7 \let\pstFV\fileversion
8 \lstset{pos=l,wide=false,language=PSTricks,
9 morekeywords={multidipole,parallel},basicstyle=\footnotesize\ttfamily}
10 %
11 \def\bgImage{\psscalebox{0.3}{\psCalDodecaeder[Year=2021,style=september]}}
12
13 \addbibresource{\jobname.bib}
14
15 \begin{document}
16
17 \title{\texttt{pst-calendar}}
18 \subtitle{A PSTricks package for creating calendars; v.\pstCalendarVersion}
19 \author{Manuel Luque \\Herbert Voß}
20 \docauthor{Herbert Voß}
21 \date{\today}
22 \settitle
23
24 \tableofcontents
25
26 \clearpage
27
28 \begin{abstract}
29 \noindent
30 \texttt{pst-calendar}
31 provides two macros for creating calendar pages or calendar dodecahedra. The month
32 and year can be freely selected, although calendars are only possible between 2000
33 and 2099. The calculation takes place exclusively with the macros of the \LPack{fp} package.
34 \end{abstract}
35
36
37 \vfill\noindent
38 Thanks to: \\
39 Denis Girou; Timmothy Van Zandt;
40
41 %\tableofcontents
42
43
44 \section{\LPack{pst-calendar} -- different calendars}
45
46
47 The package has the three options \Loption{french}, \Loption{english} and
48 \Loption{ngerman}. \Loption{english} is selected by default, which means that the names
49 of the months and weeks are then output in this language. Ngerman was chosen for this documentation.
50 This package does not offer any calendar operations in the mathematical sense, but allows
51 the output of calendar pages. pst-calendar has special language adaptations for English
52 (standard), French and German. This also applies
53 to the options listed in~\ref{tab:calendrier:options}. There is no special \TeX\
54 version, so adjustments are necessary here if you are not working with \LaTeX.
55
56
57 \begin{BDef}
58 \Lcs{psCalendar}\OptArgs\\
59 \Lcs{psCalDodecaeder}\OptArgs
60 \end{BDef}
61
62 If no data is specified, the current date is always assumed and the corresponding month for
63 \Lcs{psCalendar} and the corresponding months for \Lcs{psCalDodecaeder} are printed.
64
65 \begin{table}[htb]
66 \caption{Available options for \texttt{calendrierfp}}\label{tab:calendrier:options}
67 \begin{tabularx}{\linewidth}{@{} ll@{}c>{\RaggedRight}X@{}}
68 \emph{name} & \emph{value} & \emph{default} & \emph{meaning}\\\hline
69 \Lkeyword{Year} & \Larga{Integer} & \verb+\number\year+ & year\\
70 \Lkeyword{Month} & \Larga{$1\ldots 12$} & \verb+\number\month+ & month\\
71 \Lkeyword{MonthT}& \Larga{$1\ldots 12$} & \verb+\number\month+ & mark the current day in the given month\\
72 \Lkeyword{Day} & \Larga{$1\ldots 31$} & \verb+\number\day+ & month\\
73 \Lkeyword{Style} & \Larga{Month} & \verb+\number\month+ & month on the fron in a dodecaeder
74 \end{tabularx}
75 \end{table}
76
77
78 \bgroup
79 \begin{LTXexample}[pos=t]
80 \psscalebox{0.5}{\psCalendar}
81 \psscalebox{0.5}{\psCalendar[Year=2021,Month=1]}
82 \psscalebox{0.5}{\psCalendar[Year=2021,Tag=23,Month=2,MonthUse=2]}
83 \end{LTXexample}
84 \egroup
85
86
87 The only problem are the holidays, which so far have been based exclusively on the French guidelines.
88 However, the corresponding code sequences in the package are easy to recognize and can be changed accordingly.
89 The output of a complete year can easily be realized with the help of the \Lcs{multido} macro.
90
91 \begin{center}
92 \bgroup
93 \multido{\iM=1+3}{4}{%
94 \multido{\iMM=\iM+1}{3}{\psscalebox{0.5}{\psCalendar[Year=2021,Month=\iMM]}}\\}
95 \egroup
96 \end{center}
97
98 \begin{lstlisting}
99 \multido{\iM=1+3}{4}{%
100 \multido{\iMM=\iM+1}{3}{\psscalebox{0.5}{\psCalendar[Year=2021,Month=\iMM]}}\\}
101 \end{lstlisting}
102
103
104 A much more appealing output enables \Lcs{psCalDodecaeder}, which arranges the months on the sides of a dodecahedron.
105 Without specifying any month or year, January of the current year is assumed. With the option \Lkeyword{style}\texttt{=⟨month⟩}
106 you can always place a different month on the front.
107
108
109 \bgroup\xLcs{psCalDodecaeder}\xLkeyword{Year}\xLkeyword{Month}\xLkeyword{style}\xLkeyval{april}
110 \xLcs{psscalebox}
111 \begin{LTXexample}[pos=t]
112 \psscalebox{0.2}{\psCalDodecaeder}\hfill
113 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,Month=1]}\hfill
114 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=april]}
115 \end{LTXexample}
116 \egroup
117
118 \begin{center}
119 \bgroup\xLkeyval{january}\xLkeyval{february}\xLkeyval{march}\xLkeyval{april}\xLkeyval{may}\xLkeyval{june}
120 \xLkeyval{july}\xLkeyval{august}\xLkeyval{september}\xLkeyval{october}\xLkeyval{november}\xLkeyval{december}
121 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=january]}\hfill
122 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=february]}\hfill
123 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=march]}\\
124 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=april]}\hfill
125 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=may]}\hfill
126 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=june]}\\
127 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=july]}\hfill
128 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=august]}\hfill
129 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=september]}\\
130 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=october]}\hfill
131 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=november]}\hfill
132 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=december]}
133 \egroup
134 \end{center}
135
136 \begin{lstlisting}
137 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=january]}\hfill
138 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=february]}\hfill
139 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=march]}\\
140 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=april]}\hfill
141 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=may]}\hfill
142 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=june]}\\
143 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=july]}\hfill
144 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=august]}\hfill
145 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=september]}\\
146 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=october]}\hfill
147 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=november]}\hfill
148 \psscalebox{0.2}{\psCalDodecaeder[Year=2021,style=december]}
149 \end{lstlisting}
150
151
152 \section{List of the available options for \texttt{pst-calendar}}
153
154 %\begin{center}
155 \xkvview{family=pst-calendar,columns={key,type,default}}
156 %\end{center}
157
158
159
160 \nocite{*}
161 \bgroup
162 \raggedright
163 \printbibliography
164 \egroup
165
166 \printindex
167
168
169 \end{document}