% Macros used in document headers.
% Gary Houston.

\def\docnum#1{\gdef\@docnum{#1}}
\def\@docnum{}

% Macro which allows \pagestyle{docnum} to put a ref: label at the foot
% of the first page.
\def\ps@docnum{%
  \def\@oddfoot{%
    \ifx\@empty\@docnum
    \relax
    \else
    \rm{\footnotesize ref: \@docnum}%
    \fi
    \hfil
    }%
  \let\@evenfoot\@oddfoot\def\@oddhead{}\def\@evenhead{}%
  }

\def\@copyrite{}
\long\def\copyrite#1{\def\@copyrite{#1}}

\def\@abstract{}
\long\def\gfabstract#1{\def\@abstract{#1}}

% Table of contents.
\def\@needtoc{0}
\def\gftoc{\def\@needtoc{1}}

% List of figures.
\def\@needlof{0}
\def\gflof{\def\@needlof{1}}

\def\@thanks{}
\long\def\thanks#1{\def\@thanks{#1}}
