% NOTES LaTeX document style option 
% JF Lamy, November 1986
%
% Select headers for lecture notes a la "Wayne Eberly" - LaTeX version
% 
% This defines \pagestyle{notes} to give two-line headers
% that show the date of the lecture, the lecturer, the course number,
% the lecture number, the scribe and the page no.
%
% Example:
%   \documentstyle[moretext,notes]{article}
%   \pagestyle{notes}
%   \begin{document}
%
%   \newcommand{rptdate}{1986-12-25}    % Set this to the date of the notes.
%   \newcommand{crstitle}{\LaTeX 108}   % Set this to the course no. and title.
%   \newcommand{crsnmbr}{Lecture 0}     % Set this to the lecture number
%   \newcommand{lecturer}{A. Cademic}   % Set this to the name of the lecturer.
%   \newcommand{scribe}{J.-F. Lamy}     % Set this to the name of the scribe.
%
%   This is a simple example that shows that it is indeed possible to get
%   headers {\em \`a la} Wayne Eberly while using \LaTeX.
%   \end{document}
%
% The modifications made here involve using @@line instead of line,
% cajoling LaTeX into fitting a 25pt box inside a 12pt box by using negative
% glue and forcing it to produce a header on page 1.
%

\newtoks\headertop \headertop={\hfil}
\newtoks\headerbottom \headerbottom={\hfil}
\def\headline{
 \vbox to 0pt{
  \vss
  \hrule
  \vskip 4pt
  \@@line {\vbox to 8.5pt{}\the\headertop}
  \@@line {\vbox to 8.5pt{}\the\headerbottom}
  \vskip 4pt
  \hrule
  \vskip 4pt\vss}
\hss}

\headertop={\@@line{\rlap{Date: \rptdate}\hfil\qquad\crstitle\hfil\llap{Page: \thepage}}}
\headerbottom={\@@line{\rlap{Lecturer: \lecturer}\hfil\qquad\crsnmbr\hfil\llap{Notes: \scribe}}}

\def\ps@notes{
\def\@oddhead{\protect\headline}
\def\@evenhead{\protect\headline}
\def\@oddfoot{}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}

%\def\rptdate{???}    % Set this to the date of the notes.
%\def\crstitle{???}   % Set this to the couse number and title.
%\def\crsnmbr{???}     % Set this to the lecture number
%\def\lecturer{???}   % Set this to the name of the lecturer.
%\def\scribe{???}     % Set this to the name of the scribe.
