%% 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}
