% Cambridge Program for Industry
%
% Style file
%
% ttj10@eng.cam.ac.uk

\input{article.sty}

\oddsidemargin 0.25 in  % One inch less than the distance from the left
                        % edge of the paper to the left margin of the
                        % text on the right-hand pages.

\evensidemargin 0.25 in % Same as \oddsidemargin except for left-hand pages.

\marginparwidth 0 in    % The width of marginal notes.

\marginparsep 0 in      % The amount of horizontal space between the
                        % outer margin and a marginal note.

\topmargin 0.25 in      % One inch less than the distance from the top
                        % edge of the paper to the top of the page's
                        % head.

\headheight 0 in        % The height of (a box containing) the head.

\headsep 0 in           % The amount of vertical space between the
                        % head and the body of a page.

\textheight 9 in        % The normal height of the body of a page.
                        % With \flushbottom in effect, rubber vertical
                        % space will be stretched to make the body
                        % exactly this high.

\textwidth  5.75 in     % The normal width of text on a page (when not
                        % inside an environment that changes the margins).

\topskip 0 in           % The minimum distance from the top of the
                        % body to the bottom of the first line of
                        % text. It acts like \baselineskip for the
                        % first line of a page.

\footheight 0.15 in     % The height of (a box containing) the page's
                        % foot.

\footskip 0.25 in       % The distance from the bottom of the last
                        % line of text in the body of a page to the
                        % bottom of the foot.

\newcommand{\coursetitle}[1]{\def\@coursetitle{#1}}
\newcommand{\lecturetime}[1]{\def\@lecturetime{#1}}
\newcommand{\lectureoutline}[1]{\def\@lectureoutline{#1}}
\newcommand{\foottitle}[1]{\def\@foottitle{#1}}
\newcommand{\shortauthor}[1]{\def\@shortauthor{#1}}

\def\@maketitle{ 
  \begin{titlepage}
    \begin{center}
     \begin{tabular}{c}
      {\Large \sc UNIVERSITY OF CAMBRIDGE }\\
      {\Large \sc PROGRAMME FOR INDUSTRY}\\ \hline
     \end{tabular} \\[0.45in]
    \end{center}

    \centerline{\bf \Large \@coursetitle}
    \vspace{1in}
    \noindent {\bf \@title}
 
    \vspace{0.3in}
    \noindent {\bf \@author}

    \vspace{0.3in}
    \noindent \@lecturetime

    \vspace{0.3in}
    \@lectureoutline
  \end{titlepage}
  }


%
% re-defining the plain headings style
% means that the headings work on the contents page.
%

% I don't know why using \@author doesn't work in the oddfoot
% declaration. It simply doesn't appear on the output.
% Any clues as to what I'm doing wrong would be appreciated.


\def\ps@plain{ 
  \let\@mkboth\markboth 
  \def\@oddfoot{
    \footnotesize{ 
      \centerline{\thepage} \hspace*{-\textwidth} \hspace{-5mm} \today \hfill
      \@shortauthor:~\@foottitle}} 
  \def\@oddhead{} 
  \def\@evenfoot{\@oddfoot}
  \def\@evenhead{}
  }

\pagestyle{plain}

\endinput
