summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/advdate/advdate.tex
blob: bc4e4479d99f21c232dea078fbe47671a5972d9e (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
%% Copyright 1996 Zdenek Wagner
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Zdenek Wagner.
%
% This work consists of all files listed in manifest.txt.
%
%% This licence information was added 2010/11/22 by
%% Clea F. Rees with the permission of Zdenek Wagner.
%
\documentclass[DIV=11, fontsize=12pt, pagesize=auto]{scrartcl}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}

\addtokomafont{title}{\rmfamily}
\addtokomafont{labelinglabel}{\ttfamily}
\setlength{\labelsep}{3mm}

\makeatletter
\l@addto@macro\@listI{%
  \setlength{\parsep}{1.5pt plus 0.5pt minus 0.5pt}%
  \setlength{\itemsep}{1.5pt plus 0.5pt minus 0.5pt}%
}
\makeatother

\title{The \textsf{advdate} package}
\subtitle{Advance Date Package for \LaTeXe}
\author{\textcopyright\ Z. Wagner -- Ice Bear Soft, \texttt{<wagner@mbox.cesnet.cz>}}
\date{20 Oct 1996}


\begin{document}

\maketitle

\noindent
This package contains macros which can add specified number of days
to the current date (as specified in \verb+\today+) and print it. Some other
macros are also provided. It is intended for use e.\,g. in invoices
payable within 14 days from today etc.


\minisec{Macros with one default argument [in square brackets]}

\begin{labeling}{\string\AdvanceDate}
\item[\string\AdvanceDate]   Default: [1]\\
     Advances date the specified number of days and sets the result
     to \verb+\today+
\item[\string\DayAfter]      Default: [1]\\
     Advances date by call to \verb+\AdvanceDate+, prints \verb+\today+ and restores
     the oroginal value of \verb+\today+
\item[\string\SaveDate]      Default: [\verb+\s@v@dT@d@y+]\\
     Saves \verb+\today+ into the specified macro
\item[\string\SetDate]       Default: [\verb+\s@v@dT@d@y+]\\
     Sets the date stored in \verb+\today+. The argument must be in form:
     \texttt{[dd/mm/yyyy]} and may be present in a macro because the argument
     is always expanded before use. The value saved by \verb+\SaveDate+ can
     be used here.
\end{labeling}

     
\minisec{Macros with one mandatory argument}

\begin{labeling}{\string\ThisMonth}
\item[\string\ThisDay]     sets \verb+\day+
\item[\string\ThisMonth]   sets \verb+\month+
\item[\string\ThisYear]    sets \verb+\year+
\item[\string\AdvMonth]    advances \verb+\month+ and fixes it
\item[\string\AdvYear]     advances \verb+\year+
\end{labeling}


\minisec{Macros without arguments}

\begin{labeling}{\string\FixMonth}
\item[\string\FixMonth]    fixes \verb+\today+ so that $0 < \verb+\month+ < 13$
\item[\string\FixDate]     fixes \verb+\today+ so that it is valid
\end{labeling}

\end{document}