
%%% cs-note.cls
%%% Base style for dream notes.
%%% AlanS 29/7/96
%%% AndrewI 17/10/97
%%%
%%% Revision 1.1  1996/07/29
%%% Initial revision
%%%


% ----------------------------------
%    Identification   
% ----------------------------------

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{cs-note}[1996/07/29 -- CS note class]

% ----------------------------------
%    Initial code   
% ----------------------------------

\def\NoteNumber#1{\def\@NoteNumber{#1}}
\def\@NoteNumber{?}
\def\NoticeFootnote#1{\def\@NoteFootnote{#1}}
\def\@NoteFootnote{?}
\def\NoteNumPrefix#1{\def\@NoteNumPrefix{#1}}
\def\@NoteNumPrefix{}

% ----------------------------------
%    Declaration of options   
% ----------------------------------

\DeclareOption{NotWide}{\AtEndOfClass{\setlength{\textwidth}{17 cm}}} 
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

% ----------------------------------
%    Execution of options   
% ----------------------------------

\ProcessOptions

% ----------------------------------
%    Package Loading   
% ----------------------------------

\LoadClass{article}

% ----------------------------------
%    Main code
% ----------------------------------

\setlength{\oddsidemargin}{0in}
\setlength{\textheight}{25 cm}	
\setlength{\headsep}{.1in}	% headline gets depth shaved off
\setlength{\textwidth}{17.5cm}
\setlength{\headheight}{0pt}
\setlength{\topmargin}{-.55in}	% DR -.5

\renewcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%
                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \@maketitle
    \fi
    \thispagestyle{plain}\@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}
\def\@maketitle{\newpage
 \null
\vbox{\hbox to \textwidth{\hbox	%
        {CS-Note\thanks{\@NoteFootnote} {\ }\@NoteNumPrefix\@NoteNumber}\hfill
	\hbox{\@author}}%
      \hfill\@date }
  \begin{center}
       \begin{LARGE}
          \textbf{\@title}
       \end{LARGE}
  \end{center}}
