% LaTeX style-file for Minutes and Agenda of committee meetings
% Pete Digby, 1.6.89, revised 4.8.89, 8.8.89, 3.4.90

% general fonts for hardware, software, and teletype; abbreviations
% for \label and \ref.  NB commands are in upper-case
\newcommand{\HW}[1]{\mbox{\sc #1}}
\newcommand{\SW}[1]{\mbox{\sf #1}}
\newcommand{\TT}[1]{\mbox{\tt #1}}
\renewcommand{\L}[1]{\label{it:#1}}
\newcommand{\R}[1]{\ref{it:#1}}

% get the preset hardware and software items, and the list of members
\input{mins_xtr.sty}

% overall headings; switches to control output style, page layout etc.
\title{}
\author{Minutes of the {\it whatever it is} meeting}
\newif\ifdraft
\newif\ifagenda
\newif\iffinal
\newcommand{\DRAFT}{\drafttrue
   \title{{\bf DRAFT}{\large \ $\rightarrow$ CHAIR
   \& GOD for comments and corrections $\rightarrow$ PGND}}}
\newcommand{\FINAL}{\finaltrue}
\newcommand{\AGENDA}{\agendatrue}

% fonts for Minute items, and Representatives & CD Report sections;
% flag for `Progress Report on Matters Arising', also inserts entry
%    into .AGA file for agenda; query command
\newcommand{\minitem}[1]{\item{\bf #1}}
\newcommand{\repsection}[1]{\begin{flushleft}{\bf #1}\end{flushleft}}
\newcommand{\progress}[2]{\marginpar{\dag}
   \ifagenda \label{it:#2}
   \addtocontents{aga}{#1 (\protect\ref{it:#2}) \protect\\}
   \else \label{old:#2} \fi
   \index{matter #1 old:#2}}
\newcommand{\query}[1]{\marginpar{\flushleft \bf #1?}}

% environments and commands for bits of the minutes
\newcommand{\whoat}[1]{\date{Held on\ \thisdate\ at\ \thistime}
   \maketitle \begin{flushleft}
   \noindent {\bf Members Present}:\ #1 \end{flushleft}}
\newenvironment{minutes}{\begin{enumerate}
   \ifagenda \addtocontents{aga}{\protect\input{agenda.top}}\fi}{\end{enumerate}}
\newcommand{\apologies}[1]{\minitem{Apologies for absence}\par
   \begin{flushleft} Apologies were received from\ #1.
   \end{flushleft}}
\newcommand{\noapologies}{\minitem{Apologies for absence}\par
   There were no apologies for absence.}
\newcommand{\nocorrections}{There were no corrections to the
   Minutes of the last meeting.}
\newenvironment{matters}{\minitem{Matters arising from the Minutes of
   the last meeting}\begin{enumerate}}{\end{enumerate}}
\newcommand{\matter}[2]{\item {\bf #1}\ (\ref{old:#2})}
\newenvironment{REPS}{\minitem{Representatives
   Report}\begin{enumerate}}{\end{enumerate}}
\newenvironment{CD}{\minitem{Computing Department
   Report}\begin{enumerate}}{\end{enumerate}}
\newenvironment{aob}{\minitem{Any Other
   Business}\begin{enumerate}}{\end{enumerate}}
\newcommand{\noaob}{\minitem{Any Other Business}\par
   There was no other business.}
\newcommand{\nextmeeting}[3]{\minitem{Date of Next Meeting}\par
   The next meeting will be on\ #1\ at\ #2 in\ #3. \par
   \dag\ marks {\bf Matters Arising from these Minutes}, upon which a
   {\it progress report} would be in order at the next meeting.}

% environments and commands for bits of the agenda
\newcommand{\makeagenda}{\newpage\section*{\@mkboth{AGENDA}{AGENDA}}
 \@starttoc{aga}}
\newenvironment{agenda}{\addtocontents{aga}{\protect\end{tabular}}}{\addtocontents{aga}{\protect\input{agenda.end}}}
\newcommand{\agendaitem}[1]{\addtocontents{aga}{\protect\item #1}}
\newenvironment{agendaaob}{\addtocontents{aga}{\protect\item Any Other Business}\addtocontents{aga}{\protect\begin{description}}}{\addtocontents{aga}{\protect\end{description}}}
\newcommand{\aobitem}[2]{\addtocontents{aga}{\protect\item[#1] #2}}
