
%
% This is a .sty file specifically designed for Jay Berkenbilt's
% memos.
%

%
% First, general page parameters...
%
\errorcontextlines=10
\raggedbottom
\setlength{\headsep}{0in}
\setlength{\topmargin}{.5in}
\setlength{\textheight}{8in}
\setlength{\oddsidemargin}{.5in}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{5.5in}
\setlength{\parskip}{2ex}
\setlength{\parindent}{0em}
\pagestyle{empty}

% We often find the need to skip halfway across  the page...
\newcommand{\halfway}{\hspace*{.5\textwidth}}

\newcommand{\qm@date}{\today}
\newcommand{\qm@from}{Jay Berkenbilt}
\newcommand{\qm@signature}{Jay Berkenbilt}

\newcommand{\qmdate}[1]{\renewcommand{\ql@date}{#1}}
\newcommand{\qmfrom}[1]{\renewcommand{\qm@from}{#1}}
\newcommand{\qmsignature}[1]{\renewcommand{\qm@signature}{#1}}

\newcommand{\qmto}[1]{\newcommand{\qm@to}{#1}}
\newcommand{\qmcc}[1]{\newcommand{\qm@cc}{#1}}
\newcommand{\qmre}[1]{\newcommand{\qm@re}{#1}}

\newenvironment{qmemo}{

\begin{tabbing}
fromxxx \= \kill 
To: \> \qm@to \\
CC: \> \qm@cc \\
From: \> \qm@from \\
Date: \> \qm@date \\
Re: \> \qm@re \\
\end{tabbing}
}{

\vspace*{3\baselineskip}
\noindent \halfway \parbox{.5\textwidth}{
\begin{flushleft}
\qm@signature
\end{flushleft}
}

}
