| 1 |
%% Copyright 1996 Zdenek Wagner |
| 2 |
% |
| 3 |
% This work may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
% of this license or (at your option) any later version. |
| 6 |
% The latest version of this license is in |
| 7 |
% http://www.latex-project.org/lppl.txt |
| 8 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
% version 2005/12/01 or later. |
| 10 |
% |
| 11 |
% This work has the LPPL maintenance status `maintained'. |
| 12 |
% |
| 13 |
% The Current Maintainer of this work is Zdenek Wagner. |
| 14 |
% |
| 15 |
% This work consists of all files listed in manifest.txt. |
| 16 |
% |
| 17 |
%% This licence information was added 2010/11/22 by |
| 18 |
%% Clea F. Rees with the permission of Zdenek Wagner. |
| 19 |
% |
| 20 |
\documentclass[DIV=11, fontsize=12pt, pagesize=auto]{scrartcl} |
| 21 |
|
| 22 |
\usepackage{lmodern} |
| 23 |
\usepackage[T1]{fontenc} |
| 24 |
\usepackage{textcomp} |
| 25 |
|
| 26 |
\addtokomafont{title}{\rmfamily} |
| 27 |
\addtokomafont{labelinglabel}{\ttfamily} |
| 28 |
\setlength{\labelsep}{3mm} |
| 29 |
|
| 30 |
\makeatletter |
| 31 |
\l@addto@macro\@listI{% |
| 32 |
\setlength{\parsep}{1.5pt plus 0.5pt minus 0.5pt}% |
| 33 |
\setlength{\itemsep}{1.5pt plus 0.5pt minus 0.5pt}% |
| 34 |
} |
| 35 |
\makeatother |
| 36 |
|
| 37 |
\title{The \textsf{advdate} package} |
| 38 |
\subtitle{Advance Date Package for \LaTeXe} |
| 39 |
\author{\textcopyright\ Z. Wagner -- Ice Bear Soft, \texttt{<[email protected]>}} |
| 40 |
\date{20 Oct 1996} |
| 41 |
|
| 42 |
|
| 43 |
\begin{document} |
| 44 |
|
| 45 |
\maketitle |
| 46 |
|
| 47 |
\noindent |
| 48 |
This package contains macros which can add specified number of days |
| 49 |
to the current date (as specified in \verb+\today+) and print it. Some other |
| 50 |
macros are also provided. It is intended for use e.\,g. in invoices |
| 51 |
payable within 14 days from today etc. |
| 52 |
|
| 53 |
|
| 54 |
\minisec{Macros with one default argument [in square brackets]} |
| 55 |
|
| 56 |
\begin{labeling}{\string\AdvanceDate} |
| 57 |
\item[\string\AdvanceDate] Default: [1]\\ |
| 58 |
Advances date the specified number of days and sets the result |
| 59 |
to \verb+\today+ |
| 60 |
\item[\string\DayAfter] Default: [1]\\ |
| 61 |
Advances date by call to \verb+\AdvanceDate+, prints \verb+\today+ and restores |
| 62 |
the oroginal value of \verb+\today+ |
| 63 |
\item[\string\SaveDate] Default: [\verb+\s@v@dT@d@y+]\\ |
| 64 |
Saves \verb+\today+ into the specified macro |
| 65 |
\item[\string\SetDate] Default: [\verb+\s@v@dT@d@y+]\\ |
| 66 |
Sets the date stored in \verb+\today+. The argument must be in form: |
| 67 |
\texttt{[dd/mm/yyyy]} and may be present in a macro because the argument |
| 68 |
is always expanded before use. The value saved by \verb+\SaveDate+ can |
| 69 |
be used here. |
| 70 |
\end{labeling} |
| 71 |
|
| 72 |
|
| 73 |
\minisec{Macros with one mandatory argument} |
| 74 |
|
| 75 |
\begin{labeling}{\string\ThisMonth} |
| 76 |
\item[\string\ThisDay] sets \verb+\day+ |
| 77 |
\item[\string\ThisMonth] sets \verb+\month+ |
| 78 |
\item[\string\ThisYear] sets \verb+\year+ |
| 79 |
\item[\string\AdvMonth] advances \verb+\month+ and fixes it |
| 80 |
\item[\string\AdvYear] advances \verb+\year+ |
| 81 |
\end{labeling} |
| 82 |
|
| 83 |
|
| 84 |
\minisec{Macros without arguments} |
| 85 |
|
| 86 |
\begin{labeling}{\string\FixMonth} |
| 87 |
\item[\string\FixMonth] fixes \verb+\today+ so that $0 < \verb+\month+ < 13$ |
| 88 |
\item[\string\FixDate] fixes \verb+\today+ so that it is valid |
| 89 |
\end{labeling} |
| 90 |
|
| 91 |
\end{document} |