
p@2: % QMW PhD Thesis Class
p@2: % 7.8.1998
p@2: % Modified from:
p@2: 
p@2: % File:         ssxdphil.cls
p@2: % Author:       J. K. Brook <joannab@cogs.susx.ac.uk>
p@2: % Date:         1997/03/10
p@2: % Purpose:      Sussex D.Phil. Thesis Class
p@2: 
p@2: \NeedsTeXFormat{LaTeX2e}
p@2: 
p@2: \ProvidesClass{qmwphd}
p@2:    [1997/07/22 QMW DCS PhD Thesis Class]
p@2: 
p@2: % based on 11pt report 
p@2: 
p@2: % default font Times-Roman
p@2: 
p@2: \RequirePackage{amsfonts}
p@2: \RequirePackage{amssymb}
p@2: \RequirePackage{stmaryrd}
p@2: \RequirePackage{times} % to get helvetica sans serif - berdine
p@2: \RequirePackage{mathptmx} 
p@2: \DeclareSymbolFont{symbols}{OMS}{cmsy}{m}{n} % to get sane \mathcal
p@2:                                               % letters - berdine
p@2: 
p@2: % Defaults to single-spacing throughout to save paper.
p@2: % The figure of 1.21 is based on the baselinestretch given in the
p@2: % doublespace package for one-and-a-half spacing at 11pt 
p@2: % (LaTeX Companion p. 53) 
p@2: 
p@2: % The spaced option only affects line spacing (and hence page breaks). 
p@2: 
p@2: \newcommand{\globalbaselinestretch}{1}
p@2: 
p@2: \DeclareOption{spaced}{%
p@2:    \AtBeginDocument{%
p@2:       \renewcommand{\globalbaselinestretch}{1.62}
p@2:       \renewcommand{\baselinestretch}{1.62}\normalsize
p@2:    }%
p@2: }
p@2: 
p@2: % The draft option centres the text (which works better with dvi viewers),
p@2: % prints `DRAFT' at the top of each page and the time and date at the
p@2: % bottom and suppresses page numbers (so that the draft thesis
p@2: % can be kept in a ring binder and sections replaced with longer or
p@2: % shorter versions).  It should not affect page breaks.
p@2: 
p@2: \newif\if@draft
p@2: \@draftfalse
p@2: 
p@2: \DeclareOption{draft}{%
p@2:    \@drafttrue%
p@2: %   \AtBeginDocument{%
p@2: %   \PassOptionsToClass{openright}{report}
p@2: %   }%
p@2: }
p@2: 
p@2: %-ae \DeclareOption{csrp}{%
p@2: %-ae    \PassOptionsToClass{twoside}{report}%
p@2: %-ae    \AtBeginDocument{%
p@2: %-ae       \renewcommand{\baselinestretch}{1}\normalsize
p@2: %-ae       \let\maketitle\makecover
p@2: %-ae    }%
p@2: %-ae }
p@2: 
p@2: \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
p@2: \ProcessOptions
p@2: \LoadClass[11pt,a4paper]{report}
p@2: 
p@2: % defaults for customisable things 
p@2: 
p@2: \newcommand{\partnamestyle}{\LARGE\bfseries}
p@2: \newcommand{\chapnamestyle}{\LARGE\bfseries}
p@2: \newcommand{\secnamestyle}{\large\bfseries}
p@2: \newcommand{\subsecnamestyle}{\normalsize\bfseries}
p@2: \newcommand{\subsubsecnamestyle}{\normalsize\itshape}
p@2: \newcommand{\paranamestyle}{\normalsize\itshape}
p@2: \newcommand{\subparanamestyle}{\normalsize\itshape}
p@2: 
p@2: \newcommand{\abstractnamestyle}{\Large\bfseries}
p@2: \newcommand{\titlestyle}{\LARGE\bfseries}
p@2: \newcommand{\authornamestyle}{\large\bfseries}
p@2: 
p@2: \newcommand{\captionnamestyle}{\normalsize\itshape}
p@2: \newcommand{\captionstyle}{\normalsize}
p@2: 
p@2: \newcommand{\prefacename}{Preface}
p@2: \newcommand{\summaryname}{Abstract} % U. of London reg.s -ae
p@2: \newcommand{\acknowledgementsname}{Acknowledgements} 
p@2: %-ae \newcommand{\declarationname}{Declaration}
p@2: %-ae \newcommand{\signaturename}{Signature}
p@2: 
p@2: 
p@2: % ae begin.
p@2: \newcount\hour
p@2: \newcount\minute
p@2: \hour=\time
p@2: \divide\hour by 60
p@2: \minute=\time
p@2: \multiply\hour by 60
p@2: \advance\minute by -\hour
p@2: \divide\hour by 60
p@2: 
p@2: \def\timenow{\number\hour {.}%
p@2: \ifnum\minute<10 0\number\minute\else\number\minute\fi}
p@2: 
p@2: \def\today{\number\day\space
p@2:   \ifcase\month\or January\or February\or March\or April\or May\or June\or
p@2:   July\or August\or September\or October\or November\or December\fi\space
p@2:   \number\year}
p@2: 
p@2: \def\timetoday{\timenow, \today}
p@2: % ae end.
p@2: 
p@2: 
p@2: % A version of \raggedright that tries its best to balance the rhs of
p@2: % the paragraph.
p@2: 
p@2: \newcommand{\balancedraggedright}{%
p@2:    \raggedright
p@2:    \rightskip 0pt plus \textwidth
p@2:    \@rightskip \rightskip
p@2:    \parfillskip \rightskip
p@2: }
p@2: 
p@2: % Chapter-head displays for mainmatter/numbered chapters
p@2: % -- based on MIT Press Cognitive Science books
p@2: 
p@2: \renewcommand{\@makechapterhead}[1]{%
p@2:   \vspace*{1.32cm}%
p@2:   {\parindent\z@ \balancedraggedright \normalfont
p@2:     \ifnum \c@secnumdepth >\m@ne
p@2:         \chapnamestyle \@chapapp{} \chapnamestyle \thechapter
p@2:         \par\nobreak
p@2:         \vskip 1.2ex
p@2:     \fi
p@2:     \interlinepenalty\@M
p@2:     \chapnamestyle #1\par\nobreak
p@2:     \vskip 2.38cm 
p@2:     \rule{\linewidth}{0.2mm}%
p@2:     \vskip 15\p@
p@2:   }}
p@2: 
p@2: % for unnumbered and frontmatter sections e.g., preface
p@2: 
p@2: \renewcommand{\@makeschapterhead}[1]{%
p@2:   \vspace*{1.32cm}%
p@2:   {\parindent \z@ \balancedraggedright
p@2:     \normalfont
p@2:     \interlinepenalty\@M
p@2:     \chapnamestyle #1\par\nobreak
p@2:         \vskip 1.7ex
p@2:   }}
p@2: 
p@2: % Chapters run with a blank page before them if necessary to open right.
p@2: 
p@2: \renewcommand\part{%
p@2:    \clearpage
p@2:    \thispagestyle{headings}
p@2:    \if@openright{\cleardoublepage}\fi
p@2:    \thispagestyle{headings}
p@2:   \if@twocolumn
p@2:     \onecolumn
p@2:     \@tempswatrue
p@2:   \else
p@2:     \@tempswafalse
p@2:   \fi
p@2:   \secdef\@part\@spart}
p@2: 
p@2: 
p@2: \def\@part[#1]#2{%
p@2:     \ifnum \c@secnumdepth >-2\relax
p@2:       \refstepcounter{part}%
p@2:       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
p@2:     \else
p@2:       \addcontentsline{toc}{part}{#1}%
p@2:     \fi
p@2:     \markboth{}{}%
p@2:     {\vspace*{1.32cm}%
p@2:      \parindent\z@ \balancedraggedright \normalfont
p@2:      \ifnum \c@secnumdepth >-2\relax
p@2:        \partnamestyle \partname~\thepart
p@2:        \par\nobreak
p@2:        \vskip 1.2ex
p@2:      \fi
p@2:      \interlinepenalty \@M
p@2:      \partnamestyle #2\par\nobreak}%
p@2:     \@endpart}
p@2: \def\@spart#1{%
p@2:     {\vspace*{1.32cm}%
p@2:      \parindent\z@ \balancedraggedright 
p@2:      \normalfont
p@2:      \interlinepenalty \@M
p@2:      \partnamestyle #1\par\nobreak}%
p@2:     \@endpart}
p@2: \def\@endpart{\vfil\newpage
p@2:               \if@twoside
p@2:                 \null
p@2:                 \thispagestyle{headings}%
p@2:                 \newpage
p@2:               \fi
p@2:               \if@tempswa
p@2:                 \twocolumn
p@2:               \fi}
p@2: 
p@2: \renewcommand\chapter{%
p@2:    \clearpage
p@2:    \thispagestyle{headings}
p@2:    \if@openright{\cleardoublepage}\fi
p@2:    \thispagestyle{headings}
p@2:    \global\@topnum\z@
p@2:    \@afterindentfalse
p@2:    \secdef\@chapter\@schapter
p@2: }
p@2: 
p@2: % Starred chapters update the running head.
p@2: 
p@2: \renewcommand\@schapter[1]{%
p@2:    \markboth{#1}{}%
p@2:    \if@twocolumn
p@2:       \@topnewpage[\@makeschapterhead{#1}]%
p@2:    \else
p@2:       \@makeschapterhead{#1}%
p@2:       \@afterheading
p@2:    \fi
p@2: }
p@2: 
p@2: % Regulations: Bound margin no less than 40mm (before binding), 
p@2: %              other margins no less than 20mm.
p@2: 
p@2: \topmargin -0.20in 
p@2: \textheight 24.3cm 
p@2: \textwidth  14.8cm  
p@2: 
p@2: % The figures below need an inch taken off them because LL decided to
p@2: % use DEK's (1in,1in) origin.  [Sigh]  The draft option centres the
p@2: % text for better viewing on xdvi.
p@2: 
p@2: \if@draft
p@2:    \oddsidemargin 3cm  \advance\oddsidemargin by -1in 
p@2:    \evensidemargin 3cm  \advance\evensidemargin by -1in
p@2: \else
p@2:    \oddsidemargin 4cm  \advance\oddsidemargin by -1in 
p@2:    \evensidemargin 2cm  \advance\evensidemargin by -1in 
p@2: \fi                                                    
p@2: 
p@2: % running heads
p@2: 
p@2: \renewcommand{\chaptermark}[1]{%
p@2:    \markboth{\@chapapp\ \thechapter.\enspace   #1}{}%
p@2: }
p@2: \renewcommand{\sectionmark}[1]{%
p@2:    \markright{\thesection.\enspace   #1}%
p@2: }
p@2: 
p@2: % For the one-sided version, we run with:
p@2: %
p@2: %                                           N.M. Section Title   Folio
p@2: %
p@2: % For the two-sided verso, we run with:
p@2: %
p@2: %    Folio   Chapter N. Chapter title
p@2: %
p@2: % For the two-sided recto, we run with:
p@2: %
p@2: %                                           N.M. Section Title   Folio
p@2: %
p@2: 
p@2: \if@draft
p@2:    \renewcommand{\ps@headings}{%
p@2:         \renewcommand{\@oddhead}{{\bf DRAFT}%
p@2:                                  \hfil\textit\rightmark}%
p@2:         \renewcommand{\@evenhead}{\textit\leftmark\hfil%
p@2:                                   {\bf DRAFT}}%
p@2:         \renewcommand{\@oddfoot}{\hfil\timetoday---\thepage}%
p@2:         \renewcommand{\@evenfoot}{\thepage---\timetoday\hfil}%
p@2:    }
p@2: \else
p@2:    \renewcommand{\ps@headings}{%
p@2:         \renewcommand{\@oddhead}{\hfil\textit\rightmark\quad\textrm\thepage}%
p@2:         \renewcommand{\@evenhead}{\textrm\thepage\quad\textit\leftmark\hfil}%
p@2:         \renewcommand{\@oddfoot}{}%
p@2:         \renewcommand{\@evenfoot}{\@oddfoot}%
p@2:    }
p@2: \fi
p@2: 
p@2: \pagestyle{headings}
p@2: 
p@2: % A number on every page. -ae
p@2: 
p@2: \if@draft
p@2:    \renewcommand{\ps@headings}{%
p@2:         \renewcommand{\@oddhead}{{\bf DRAFT}%
p@2:                                  \hfil}%
p@2:         \renewcommand{\@evenhead}{\hfil%
p@2:                                   {\bf DRAFT}}%
p@2:         \renewcommand{\@oddfoot}{\hfil\timetoday---\thepage}%
p@2:         \renewcommand{\@evenfoot}{\thepage---\timetoday\hfil}%
p@2:    }
p@2: \else
p@2:    \renewcommand{\ps@headings}{%
p@2:         \renewcommand{\@oddhead}{\hfil\thepage}%
p@2:         \renewcommand{\@evenhead}{\thepage\hfil}%
p@2:         \renewcommand{\@oddfoot}{}%
p@2:         \renewcommand{\@evenfoot}{\@oddfoot}%
p@2:    }
p@2: \fi
p@2: 
p@2: % All lists are set in single-spacing (this is a horrid hack!)
p@2: % Pablo prefers double spaced lists.
p@2: %\let\qmwphd@list=\list
p@2: %\renewcommand{\list}{%
p@2: %   \par
p@2: %   \renewcommand{\baselinestretch}{1}\@currsize
p@2: %   \qmwphd@list
p@2: %}
p@2: 
p@2: % hack parboxes to be single spaced
p@2: %? \makeatletter
p@2: \let\qmwphd@parbox=\parbox
p@2: \renewcommand{\parbox}{%
p@2:    \par
p@2:    \renewcommand{\baselinestretch}{1}\@currsize
p@2:    \qmwphd@parbox
p@2: }
p@2: 
p@2: % hack eqnarray too (was ...array@i - why?)
p@2: \let\qmwphd@eqnarray=\eqnarray
p@2: \renewcommand{\eqnarray}{%
p@2:    \par
p@2:    \renewcommand{\baselinestretch}{1}\@currsize
p@2:    \qmwphd@eqnarray
p@2: }
p@2: 
p@2: % footnotes are single-spaced and \small instead of \footnotesize.
p@2: 
p@2: \renewcommand{\@makefntext}[1]
p@2: {\renewcommand{\baselinestretch}{1}\small
p@2: \parindent 1em%
p@2:     \noindent
p@2:     \hb@xt@1.8em{\hss\@makefnmark}#1}
p@2: 
p@2: % This seems to work.
p@2: 
p@2: \newenvironment{notspaced}{\renewcommand{\baselinestretch}{1}\@currsize}{}
p@2: 
p@2: % sectioning commands adapted from report.cls
p@2: % reduced space measurements from Richard Dallaway's iot.sty
p@2: 
p@2: \renewcommand{\section}{\@startsection{section}{1}{\z@}
p@2:                                      {-3.5ex \@plus -1ex \@minus -.2ex}
p@2:                                      {1.5ex plus.2ex}
p@2:                                      {\balancedraggedright\secnamestyle}}
p@2: \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
p@2:                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
p@2:                                      %{1.5ex \@plus .2ex}%
p@2:                                      {0.5ex \@plus .2ex}%
p@2:                                      {\balancedraggedright\subsecnamestyle}}
p@2: \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
p@2:                                      %{-3.25ex\@plus -1ex \@minus -.2ex}%
p@2:                                      {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2:                                      %{1.5ex \@plus .2ex}%
p@2:                                      {0.25ex \@plus .1ex}%
p@2:                                      {\balancedraggedright\subsubsecnamestyle}}
p@2: \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
p@2:                                      %{3.25ex \@plus1ex \@minus.2ex}%
p@2:                                      {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2:                                      {-1em}%
p@2:                                      {\paranamestyle}}
p@2: \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
p@2:                                      %{3.25ex \@plus1ex \@minus .2ex}%
p@2:                                      {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2:                                      {-1em}%
p@2:                                      {\subparanamestyle}}
p@2: % frontmatter
p@2: 
p@2: % order of frontmatter from regulations:
p@2: 
p@2: %Title page                    % U. of London says
p@2: %Summary                       % Abstract follows Title Page
p@2: %Contents                      % and then Contents etc.
p@2: %List of tables, figures, etc.
p@2: 
p@2: %Acknowledgements (if any) 
p@2: 
p@2: % mainmatter
p@2: 
p@2: %Chapters
p@2: %Bibliography
p@2: 
p@2: % backmatter
p@2: 
p@2: %Appendices
p@2: 
p@2: % title page definitions:
p@2: % \author, \title, \qualification, \university, \date (month and year of 
p@2: % submission)
p@2: 
p@2: \renewcommand\author[1]{\gdef\@author{#1}}
p@2: \renewcommand\title[1]{\gdef\@title{#1}}
p@2: \newcommand\qualification[1]{\gdef\@qualification{#1}}
p@2: 
p@2: \qualification{Doctor of Philosophy} 
p@2: 
p@2: % the university to which the degree is being submitted % = College -ae
p@2: 
p@2: \newcommand\university[1]{\gdef\@university{#1}}
p@2: 
p@2: \university{Queen Mary, University of London} % College name. -ae
p@2: 
p@2: %-ae \renewcommand{\today}{
p@2: %-ae \ifcase\month\or
p@2: %-ae   January\or February\or March\or April\or May\or June\or
p@2: %-ae   July\or August\or September\or October\or November\or December\fi,
p@2: %-ae   \space \number\year}
p@2: \newcommand{\yeartoday}{\number\year}
p@2: 
p@2: \renewcommand\date[1]{\gdef\@date{#1}}
p@2: 
p@2: %-ae % default to \today
p@2: 
p@2: %-ae \date{\today}
p@2: \date{\yeartoday}
p@2: 
p@2: % declaration
p@2: 
p@2: % No declaration. -ae
p@2: %-ae \newcommand{\declaration}[1]{\gdef\@declaration{#1}} 
p@2: 
p@2: % default from regulations 
p@2: 
p@2: %-ae \declaration{%
p@2: %-ae    I hereby declare that this thesis has not been submitted, either in
p@2: %-ae    the same or different form, to this or any other university for a
p@2: %-ae    degree.%
p@2: %-ae }
p@2: 
p@2: % Acknowledgements (optional).
p@2: \newenvironment{acknowledgements}{%
p@2:    \chapter*{\acknowledgementsname}%
p@2:    %\addcontentsline{toc}{chapter}{\acknowledgementsname}% 
p@2: }{%
p@2:    \clearpage
p@2: }
p@2: 
p@2: % preface -- sources and extent of any joint work
p@2: 
p@2: % No preface. -ae
p@2: %-ae \newenvironment{preface}{%
p@2: %-ae   \chapter*{\prefacename}%
p@2: %-ae  % \addcontentsline{toc}{chapter}{\prefacename}%
p@2: %-ae}{% 
p@2: %-ae   \clearpage
p@2: %-ae}
p@2: 
p@2: % summary (or abstract) -- 300 words 
p@2: % This shares a lot of code with \maketitle:
p@2: 
p@2: \newcommand{\ssxdphil@summary@maketitle@top}{{%
p@2:   \clearpage
p@2:   \thispagestyle{headings}% Was empty. -ae
p@2:   \balancedraggedright
p@2:   \vspace*{1.32cm} % same as chapter-head display
p@2:   \titlestyle\@title \par
p@2:   \bigskip
p@2:   \authornamestyle \@author \par
p@2:   \normalfont\normalsize
p@2:   \vspace{1cm}%
p@2: }}
p@2: 
p@2: \newcommand{\ssxdphil@summary@maketitle@bot}{{%
p@2:   \par\vfill\balancedraggedright
p@2:   Submitted for the degree of \@qualification \par
p@2:   \medskip
p@2:   \@university \par
p@2:   \medskip
p@2:   \@date \par
p@2: }}
p@2: 
p@2: % The summary is run single-spaced.
p@2: 
p@2: \newenvironment{summary}{%
p@2:   \cleardoublepage
p@2:   \ssxdphil@summary@maketitle@top
p@2:   \renewcommand{\baselinestretch}{1}\normalsize
p@2:   \section*{\summaryname}%
p@2: }{%
p@2:   \par
p@2:   \renewcommand{\baselinestretch}{\globalbaselinestretch}\normalsize
p@2:   \ssxdphil@summary@maketitle@bot
p@2:   \clearpage
p@2: }
p@2: 
p@2: % Title-page 
p@2: 
p@2: \renewcommand{\maketitle}{%
p@2:   \ssxdphil@summary@maketitle@top
p@2:   \ssxdphil@summary@maketitle@bot
p@2:   \clearpage
p@2: %-ae  \chapter*{\declarationname}%
p@2: %-ae  \@declaration\par
p@2: %-ae  \vspace{5cm}%
p@2: %-ae  \noindent\signaturename:\par
p@2: %-ae  \clearpage
p@2: }
p@2: 
p@2: % Gross document structure
p@2: 
p@2: %\newcommand{\frontmatter}{\clearpage\pagenumbering{roman}}
p@2: % All pages arabic. -ae 
p@2: \newcommand{\frontmatter}{\clearpage} 
p@2: %-ae \newcommand{\mainmatter}{\clearpage\pagenumbering{arabic}}
p@2: \newcommand{\mainmatter}{\clearpage}
p@2: \newcommand{\backmatter}{\clearpage\appendix}
p@2: 
p@2: % Float parameters
p@2: 
p@2: \setcounter{topnumber}{2}
p@2: \renewcommand{\topfraction}{.7}
p@2: \setcounter{bottomnumber}{1}
p@2: \renewcommand{\bottomfraction}{.3}
p@2: \setcounter{totalnumber}{3}
p@2: \renewcommand{\textfraction}{.2}
p@2: \renewcommand{\floatpagefraction}{.5}
p@2: \setcounter{dbltopnumber}{2}
p@2: \renewcommand{\dbltopfraction}{.7}
p@2: \renewcommand{\dblfloatpagefraction}{.5}
p@2: 
p@2: % Floats can't go at the bottom or in-line by default:
p@2: 
p@2: \renewcommand{\fps@figure}{tp}
p@2: \renewcommand{\fps@table}{tp}
p@2: 
p@2: % Caption name set in \captionnamestyle with name in \captionstyle.
p@2: 
p@2: %\renewcommand{\@makecaption}[2]{
p@2: % \medskip
p@2: % \setbox\@tempboxa\hbox{{\captionnamestyle#1.} {\captionstyle#2}}
p@2: % \ifdim \wd\@tempboxa >\hsize {\centering{\captionnamestyle #1.}
p@2: % {\captionstyle#2\par}} \else \hbox
p@2: %to\hsize{\hfil\box\@tempboxa\hfil}
p@2: % \fi}
p@2: 
p@2: % sje -- change caption style 
p@2: % This taken from report.cls
p@2: \long\def\@makecaption#1#2{%
p@2:   \vskip\abovecaptionskip
p@2:   \sbox\@tempboxa{#1: #2}%
p@2:   \ifdim \wd\@tempboxa >\hsize
p@2:     #1: #2\par
p@2:   \else
p@2:     \global \@minipagefalse
p@2:     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
p@2:   \fi
p@2:   \vskip\belowcaptionskip}
p@2: 
p@2: % Bibliography adds a toc entry.
p@2: 
p@2: \renewenvironment{thebibliography}[1]
p@2:      {\chapter*{\bibname}%
p@2:         \addcontentsline{toc}{chapter}{\bibname}%%%% ADDITION
p@2:       \list{\@biblabel{\@arabic\c@enumiv}}%
p@2:            {\settowidth\labelwidth{\@biblabel{#1}}%
p@2:             \leftmargin\labelwidth
p@2:             \advance\leftmargin\labelsep
p@2: %-ae            \if@openbib
p@2: %-ae              \advance\leftmargin\bibindent
p@2: %-ae              \itemindent -\bibindent
p@2: %-ae              \listparindent \itemindent
p@2: %-ae              \parsep \z@
p@2: %-ae            \fi
p@2:             \usecounter{enumiv}%
p@2:             \let\p@enumiv\@empty
p@2:             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
p@2: %-ae      \if@openbib
p@2: %-ae        \renewcommand\newblock{\par}%
p@2: %-ae      \else
p@2:         \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
p@2: %-ae      \fi
p@2:       \sloppy\clubpenalty4000\widowpenalty4000%
p@2:       \sfcode`\.=\@m}
p@2:      {\def\@noitemerr
p@2:        {\@latex@warning{Empty `thebibliography' environment}}%
p@2:       \endlist}
p@2: 
p@2: % Index adds a toc entry.
p@2: 
p@2: \renewenvironment{theindex}
p@2:                {\if@twocolumn
p@2:                   \@restonecolfalse
p@2:                 \else
p@2:                   \@restonecoltrue
p@2:                 \fi
p@2:                 \columnseprule \z@
p@2:                 \columnsep 35\p@
p@2:                 \twocolumn[\@makeschapterhead{\indexname}]%
p@2:                 \markboth{\indexname}{}%
p@2:                 \addcontentsline{toc}{chapter}{\indexname}%%%% ADDITION
p@2:                 \thispagestyle{headings}\parindent\z@%%% Was empty. -ae
p@2:                 \parskip\z@ \@plus .3\p@\relax
p@2:                 \let\item\@idxitem}
p@2:                {\if@restonecol\onecolumn\else\clearpage\fi}
p@2: 
p@2: %%% CHANGELOG
p@2: 
p@2: % jkb,  1995/09/19: Created MIT Press-style chapterhead
p@2: 
p@2: % jkb,  1995/09/19: Sorted out top/bottom margins 
p@2: 
p@2: % jkb,  1995/09/19: Reduced space around headings
p@2: 
p@2: % jkb,  1995/09/20: Roughed out titlepage with ssxcrest
p@2: 
p@2: % jkb,  1995/09/20: Roughed out declaration page
p@2: 
p@2: % jkb,  1995/09/20: Changed epsfig to graphics
p@2: 
p@2: % jkb,  1995/09/20: Changed font package from times to mathptm --
p@2: %    has the effect of changing \sfdefault from phv to cmss
p@2: %    and \ttdefault from Courier 
p@2: 
p@2: % jkb,  1995/09/20: Discovered that thesis.sty has bottom-centred
p@2: %    page-numbers and is still approved by the PG office
p@2: 
p@2: % jkb,  1995/09/20: Added book.cls-style \frontmatter and \mainmatter commands
p@2: 
p@2: % jkb,  1995/10/20: Tried creating left-justified title-page and summary
p@2: 
p@2: % jkb,  1995/10/20: Added default empty acknowledgements command
p@2: 
p@2: % jkb,  1995/10/25: First draft version completed
p@2: 
p@2: % ASAJ, 1995/12/07: Made summary, etc. non-declarative.
p@2: 
p@2: % ASAJ, 1995/12/07: Removed the \summary* commands.
p@2: 
p@2: % ASAJ, 1995/12/07: Removed \makefrontmatter.
p@2: 
p@2: % ASAJ, 1995/12/07: Replaced `spacing' option by `thesis' option, and
p@2: %    made it one-sided by default.  Added the csrp option.
p@2: 
p@2: % ASAJ, 1995/12/07: Added \backmatter.
p@2: 
p@2: % ASAJ, 1995/12/07: Added a ghastly hack to get all lists set
p@2: %    single-spaced. 
p@2: 
p@2: % ASAJ, 1995/12/07: Made title page and summary page similar in style.
p@2: 
p@2: % ASAJ, 1995/12/08: Made the title page and summary page share code,
p@2: %    and removed the crest.
p@2: 
p@2: % ASAJ, 1995/12/08: Redesigned the running heads.
p@2: 
p@2: % ASAJ, 1995/12/08: Made section heads ragged right.
p@2: 
p@2: % ASAJ, 1995/12/08: Made ragged right material try to be more balanced.
p@2: 
p@2: % ASAJ, 1995/12/08: Added \clearpage before setting the pagestyle.
p@2: 
p@2: % jkb,  1995/12/13: Removed \addtoclines from acknowledgements and preface
p@2: %    to sort out conflict between lack of folios and contents-page numbering
p@2: 
p@2: % jkb,  1995/12/13: Fixed margins in twoside version -- both were
p@2: %    set using \oddsidemargin.  For CSRP version want same
p@2: %    textwidth so as not to cause problems with explicitly sized
p@2: %    figures etc., but can have more reasonable margins.
p@2: 
p@2: % jkb,  1996/02/12: Added \university command.
p@2: 
p@2: % jkb,  1996/02/12: Added final full point to D. Phil. (Hart's Rules).
p@2: 
p@2: % jkb,  1996/02/14: Tidied comments. First release version completed.
p@2: 
p@2: % ASAJ, 1996/04/01: Made the default title size \LARGE rather than
p@2: %    \Large, so it's the same size as chapter openings.
p@2: 
p@2: % ASAJ, 1996/05/03: Replaced \chaptername by \@chapapp in running heads.
p@2: 
p@2: % ASAJ, 1996/05/14: \chapter* now updates the running head.  \theindex
p@2: %    and \thebibliography now add to the toc.
p@2: 
p@2: % ASAJ, 1996/09/20: Footnotes are now in \footnotesize.  `Submitted
p@2: %    for the degree of' stuff is now at the page foot.
p@2: 
p@2: % sje, 1997/02/05: Better setting of captions
p@2: 
p@2: % ASAJ 1997/03/10: Corrected setting of running heads for index.
p@2: 
p@2: 




