annotate Report/qmwphd.cls @ 47:b0186d4a4496 tip

Move 7Digital dataset to Downloads
author Paulo Chiliguano <p.e.chiliguano@se14.qmul.ac.uk>
date Sat, 09 Jul 2022 00:50:43 -0500
parents cb62e1df4493
children
rev   line source
p@2 1 % QMW PhD Thesis Class
p@2 2 % 7.8.1998
p@2 3 % Modified from:
p@2 4
p@2 5 % File: ssxdphil.cls
p@2 6 % Author: J. K. Brook <joannab@cogs.susx.ac.uk>
p@2 7 % Date: 1997/03/10
p@2 8 % Purpose: Sussex D.Phil. Thesis Class
p@2 9
p@2 10 \NeedsTeXFormat{LaTeX2e}
p@2 11
p@2 12 \ProvidesClass{qmwphd}
p@2 13 [1997/07/22 QMW DCS PhD Thesis Class]
p@2 14
p@2 15 % based on 11pt report
p@2 16
p@2 17 % default font Times-Roman
p@2 18
p@2 19 \RequirePackage{amsfonts}
p@2 20 \RequirePackage{amssymb}
p@2 21 \RequirePackage{stmaryrd}
p@2 22 \RequirePackage{times} % to get helvetica sans serif - berdine
p@2 23 \RequirePackage{mathptmx}
p@2 24 \DeclareSymbolFont{symbols}{OMS}{cmsy}{m}{n} % to get sane \mathcal
p@2 25 % letters - berdine
p@2 26
p@2 27 % Defaults to single-spacing throughout to save paper.
p@2 28 % The figure of 1.21 is based on the baselinestretch given in the
p@2 29 % doublespace package for one-and-a-half spacing at 11pt
p@2 30 % (LaTeX Companion p. 53)
p@2 31
p@2 32 % The spaced option only affects line spacing (and hence page breaks).
p@2 33
p@2 34 \newcommand{\globalbaselinestretch}{1}
p@2 35
p@2 36 \DeclareOption{spaced}{%
p@2 37 \AtBeginDocument{%
p@2 38 \renewcommand{\globalbaselinestretch}{1.62}
p@2 39 \renewcommand{\baselinestretch}{1.62}\normalsize
p@2 40 }%
p@2 41 }
p@2 42
p@2 43 % The draft option centres the text (which works better with dvi viewers),
p@2 44 % prints `DRAFT' at the top of each page and the time and date at the
p@2 45 % bottom and suppresses page numbers (so that the draft thesis
p@2 46 % can be kept in a ring binder and sections replaced with longer or
p@2 47 % shorter versions). It should not affect page breaks.
p@2 48
p@2 49 \newif\if@draft
p@2 50 \@draftfalse
p@2 51
p@2 52 \DeclareOption{draft}{%
p@2 53 \@drafttrue%
p@2 54 % \AtBeginDocument{%
p@2 55 % \PassOptionsToClass{openright}{report}
p@2 56 % }%
p@2 57 }
p@2 58
p@2 59 %-ae \DeclareOption{csrp}{%
p@2 60 %-ae \PassOptionsToClass{twoside}{report}%
p@2 61 %-ae \AtBeginDocument{%
p@2 62 %-ae \renewcommand{\baselinestretch}{1}\normalsize
p@2 63 %-ae \let\maketitle\makecover
p@2 64 %-ae }%
p@2 65 %-ae }
p@2 66
p@2 67 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
p@2 68 \ProcessOptions
p@2 69 \LoadClass[11pt,a4paper]{report}
p@2 70
p@2 71 % defaults for customisable things
p@2 72
p@2 73 \newcommand{\partnamestyle}{\LARGE\bfseries}
p@2 74 \newcommand{\chapnamestyle}{\LARGE\bfseries}
p@2 75 \newcommand{\secnamestyle}{\large\bfseries}
p@2 76 \newcommand{\subsecnamestyle}{\normalsize\bfseries}
p@2 77 \newcommand{\subsubsecnamestyle}{\normalsize\itshape}
p@2 78 \newcommand{\paranamestyle}{\normalsize\itshape}
p@2 79 \newcommand{\subparanamestyle}{\normalsize\itshape}
p@2 80
p@2 81 \newcommand{\abstractnamestyle}{\Large\bfseries}
p@2 82 \newcommand{\titlestyle}{\LARGE\bfseries}
p@2 83 \newcommand{\authornamestyle}{\large\bfseries}
p@2 84
p@2 85 \newcommand{\captionnamestyle}{\normalsize\itshape}
p@2 86 \newcommand{\captionstyle}{\normalsize}
p@2 87
p@2 88 \newcommand{\prefacename}{Preface}
p@2 89 \newcommand{\summaryname}{Abstract} % U. of London reg.s -ae
p@2 90 \newcommand{\acknowledgementsname}{Acknowledgements}
p@2 91 %-ae \newcommand{\declarationname}{Declaration}
p@2 92 %-ae \newcommand{\signaturename}{Signature}
p@2 93
p@2 94
p@2 95 % ae begin.
p@2 96 \newcount\hour
p@2 97 \newcount\minute
p@2 98 \hour=\time
p@2 99 \divide\hour by 60
p@2 100 \minute=\time
p@2 101 \multiply\hour by 60
p@2 102 \advance\minute by -\hour
p@2 103 \divide\hour by 60
p@2 104
p@2 105 \def\timenow{\number\hour {.}%
p@2 106 \ifnum\minute<10 0\number\minute\else\number\minute\fi}
p@2 107
p@2 108 \def\today{\number\day\space
p@2 109 \ifcase\month\or January\or February\or March\or April\or May\or June\or
p@2 110 July\or August\or September\or October\or November\or December\fi\space
p@2 111 \number\year}
p@2 112
p@2 113 \def\timetoday{\timenow, \today}
p@2 114 % ae end.
p@2 115
p@2 116
p@2 117 % A version of \raggedright that tries its best to balance the rhs of
p@2 118 % the paragraph.
p@2 119
p@2 120 \newcommand{\balancedraggedright}{%
p@2 121 \raggedright
p@2 122 \rightskip 0pt plus \textwidth
p@2 123 \@rightskip \rightskip
p@2 124 \parfillskip \rightskip
p@2 125 }
p@2 126
p@2 127 % Chapter-head displays for mainmatter/numbered chapters
p@2 128 % -- based on MIT Press Cognitive Science books
p@2 129
p@2 130 \renewcommand{\@makechapterhead}[1]{%
p@2 131 \vspace*{1.32cm}%
p@2 132 {\parindent\z@ \balancedraggedright \normalfont
p@2 133 \ifnum \c@secnumdepth >\m@ne
p@2 134 \chapnamestyle \@chapapp{} \chapnamestyle \thechapter
p@2 135 \par\nobreak
p@2 136 \vskip 1.2ex
p@2 137 \fi
p@2 138 \interlinepenalty\@M
p@2 139 \chapnamestyle #1\par\nobreak
p@2 140 \vskip 2.38cm
p@2 141 \rule{\linewidth}{0.2mm}%
p@2 142 \vskip 15\p@
p@2 143 }}
p@2 144
p@2 145 % for unnumbered and frontmatter sections e.g., preface
p@2 146
p@2 147 \renewcommand{\@makeschapterhead}[1]{%
p@2 148 \vspace*{1.32cm}%
p@2 149 {\parindent \z@ \balancedraggedright
p@2 150 \normalfont
p@2 151 \interlinepenalty\@M
p@2 152 \chapnamestyle #1\par\nobreak
p@2 153 \vskip 1.7ex
p@2 154 }}
p@2 155
p@2 156 % Chapters run with a blank page before them if necessary to open right.
p@2 157
p@2 158 \renewcommand\part{%
p@2 159 \clearpage
p@2 160 \thispagestyle{headings}
p@2 161 \if@openright{\cleardoublepage}\fi
p@2 162 \thispagestyle{headings}
p@2 163 \if@twocolumn
p@2 164 \onecolumn
p@2 165 \@tempswatrue
p@2 166 \else
p@2 167 \@tempswafalse
p@2 168 \fi
p@2 169 \secdef\@part\@spart}
p@2 170
p@2 171
p@2 172 \def\@part[#1]#2{%
p@2 173 \ifnum \c@secnumdepth >-2\relax
p@2 174 \refstepcounter{part}%
p@2 175 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
p@2 176 \else
p@2 177 \addcontentsline{toc}{part}{#1}%
p@2 178 \fi
p@2 179 \markboth{}{}%
p@2 180 {\vspace*{1.32cm}%
p@2 181 \parindent\z@ \balancedraggedright \normalfont
p@2 182 \ifnum \c@secnumdepth >-2\relax
p@2 183 \partnamestyle \partname~\thepart
p@2 184 \par\nobreak
p@2 185 \vskip 1.2ex
p@2 186 \fi
p@2 187 \interlinepenalty \@M
p@2 188 \partnamestyle #2\par\nobreak}%
p@2 189 \@endpart}
p@2 190 \def\@spart#1{%
p@2 191 {\vspace*{1.32cm}%
p@2 192 \parindent\z@ \balancedraggedright
p@2 193 \normalfont
p@2 194 \interlinepenalty \@M
p@2 195 \partnamestyle #1\par\nobreak}%
p@2 196 \@endpart}
p@2 197 \def\@endpart{\vfil\newpage
p@2 198 \if@twoside
p@2 199 \null
p@2 200 \thispagestyle{headings}%
p@2 201 \newpage
p@2 202 \fi
p@2 203 \if@tempswa
p@2 204 \twocolumn
p@2 205 \fi}
p@2 206
p@2 207 \renewcommand\chapter{%
p@2 208 \clearpage
p@2 209 \thispagestyle{headings}
p@2 210 \if@openright{\cleardoublepage}\fi
p@2 211 \thispagestyle{headings}
p@2 212 \global\@topnum\z@
p@2 213 \@afterindentfalse
p@2 214 \secdef\@chapter\@schapter
p@2 215 }
p@2 216
p@2 217 % Starred chapters update the running head.
p@2 218
p@2 219 \renewcommand\@schapter[1]{%
p@2 220 \markboth{#1}{}%
p@2 221 \if@twocolumn
p@2 222 \@topnewpage[\@makeschapterhead{#1}]%
p@2 223 \else
p@2 224 \@makeschapterhead{#1}%
p@2 225 \@afterheading
p@2 226 \fi
p@2 227 }
p@2 228
p@2 229 % Regulations: Bound margin no less than 40mm (before binding),
p@2 230 % other margins no less than 20mm.
p@2 231
p@2 232 \topmargin -0.20in
p@2 233 \textheight 24.3cm
p@2 234 \textwidth 14.8cm
p@2 235
p@2 236 % The figures below need an inch taken off them because LL decided to
p@2 237 % use DEK's (1in,1in) origin. [Sigh] The draft option centres the
p@2 238 % text for better viewing on xdvi.
p@2 239
p@2 240 \if@draft
p@2 241 \oddsidemargin 3cm \advance\oddsidemargin by -1in
p@2 242 \evensidemargin 3cm \advance\evensidemargin by -1in
p@2 243 \else
p@2 244 \oddsidemargin 4cm \advance\oddsidemargin by -1in
p@2 245 \evensidemargin 2cm \advance\evensidemargin by -1in
p@2 246 \fi
p@2 247
p@2 248 % running heads
p@2 249
p@2 250 \renewcommand{\chaptermark}[1]{%
p@2 251 \markboth{\@chapapp\ \thechapter.\enspace #1}{}%
p@2 252 }
p@2 253 \renewcommand{\sectionmark}[1]{%
p@2 254 \markright{\thesection.\enspace #1}%
p@2 255 }
p@2 256
p@2 257 % For the one-sided version, we run with:
p@2 258 %
p@2 259 % N.M. Section Title Folio
p@2 260 %
p@2 261 % For the two-sided verso, we run with:
p@2 262 %
p@2 263 % Folio Chapter N. Chapter title
p@2 264 %
p@2 265 % For the two-sided recto, we run with:
p@2 266 %
p@2 267 % N.M. Section Title Folio
p@2 268 %
p@2 269
p@2 270 \if@draft
p@2 271 \renewcommand{\ps@headings}{%
p@2 272 \renewcommand{\@oddhead}{{\bf DRAFT}%
p@2 273 \hfil\textit\rightmark}%
p@2 274 \renewcommand{\@evenhead}{\textit\leftmark\hfil%
p@2 275 {\bf DRAFT}}%
p@2 276 \renewcommand{\@oddfoot}{\hfil\timetoday---\thepage}%
p@2 277 \renewcommand{\@evenfoot}{\thepage---\timetoday\hfil}%
p@2 278 }
p@2 279 \else
p@2 280 \renewcommand{\ps@headings}{%
p@2 281 \renewcommand{\@oddhead}{\hfil\textit\rightmark\quad\textrm\thepage}%
p@2 282 \renewcommand{\@evenhead}{\textrm\thepage\quad\textit\leftmark\hfil}%
p@2 283 \renewcommand{\@oddfoot}{}%
p@2 284 \renewcommand{\@evenfoot}{\@oddfoot}%
p@2 285 }
p@2 286 \fi
p@2 287
p@2 288 \pagestyle{headings}
p@2 289
p@2 290 % A number on every page. -ae
p@2 291
p@2 292 \if@draft
p@2 293 \renewcommand{\ps@headings}{%
p@2 294 \renewcommand{\@oddhead}{{\bf DRAFT}%
p@2 295 \hfil}%
p@2 296 \renewcommand{\@evenhead}{\hfil%
p@2 297 {\bf DRAFT}}%
p@2 298 \renewcommand{\@oddfoot}{\hfil\timetoday---\thepage}%
p@2 299 \renewcommand{\@evenfoot}{\thepage---\timetoday\hfil}%
p@2 300 }
p@2 301 \else
p@2 302 \renewcommand{\ps@headings}{%
p@2 303 \renewcommand{\@oddhead}{\hfil\thepage}%
p@2 304 \renewcommand{\@evenhead}{\thepage\hfil}%
p@2 305 \renewcommand{\@oddfoot}{}%
p@2 306 \renewcommand{\@evenfoot}{\@oddfoot}%
p@2 307 }
p@2 308 \fi
p@2 309
p@2 310 % All lists are set in single-spacing (this is a horrid hack!)
p@2 311 % Pablo prefers double spaced lists.
p@2 312 %\let\qmwphd@list=\list
p@2 313 %\renewcommand{\list}{%
p@2 314 % \par
p@2 315 % \renewcommand{\baselinestretch}{1}\@currsize
p@2 316 % \qmwphd@list
p@2 317 %}
p@2 318
p@2 319 % hack parboxes to be single spaced
p@2 320 %? \makeatletter
p@2 321 \let\qmwphd@parbox=\parbox
p@2 322 \renewcommand{\parbox}{%
p@2 323 \par
p@2 324 \renewcommand{\baselinestretch}{1}\@currsize
p@2 325 \qmwphd@parbox
p@2 326 }
p@2 327
p@2 328 % hack eqnarray too (was ...array@i - why?)
p@2 329 \let\qmwphd@eqnarray=\eqnarray
p@2 330 \renewcommand{\eqnarray}{%
p@2 331 \par
p@2 332 \renewcommand{\baselinestretch}{1}\@currsize
p@2 333 \qmwphd@eqnarray
p@2 334 }
p@2 335
p@2 336 % footnotes are single-spaced and \small instead of \footnotesize.
p@2 337
p@2 338 \renewcommand{\@makefntext}[1]
p@2 339 {\renewcommand{\baselinestretch}{1}\small
p@2 340 \parindent 1em%
p@2 341 \noindent
p@2 342 \hb@xt@1.8em{\hss\@makefnmark}#1}
p@2 343
p@2 344 % This seems to work.
p@2 345
p@2 346 \newenvironment{notspaced}{\renewcommand{\baselinestretch}{1}\@currsize}{}
p@2 347
p@2 348 % sectioning commands adapted from report.cls
p@2 349 % reduced space measurements from Richard Dallaway's iot.sty
p@2 350
p@2 351 \renewcommand{\section}{\@startsection{section}{1}{\z@}
p@2 352 {-3.5ex \@plus -1ex \@minus -.2ex}
p@2 353 {1.5ex plus.2ex}
p@2 354 {\balancedraggedright\secnamestyle}}
p@2 355 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
p@2 356 {-3.25ex\@plus -1ex \@minus -.2ex}%
p@2 357 %{1.5ex \@plus .2ex}%
p@2 358 {0.5ex \@plus .2ex}%
p@2 359 {\balancedraggedright\subsecnamestyle}}
p@2 360 \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
p@2 361 %{-3.25ex\@plus -1ex \@minus -.2ex}%
p@2 362 {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2 363 %{1.5ex \@plus .2ex}%
p@2 364 {0.25ex \@plus .1ex}%
p@2 365 {\balancedraggedright\subsubsecnamestyle}}
p@2 366 \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
p@2 367 %{3.25ex \@plus1ex \@minus.2ex}%
p@2 368 {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2 369 {-1em}%
p@2 370 {\paranamestyle}}
p@2 371 \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
p@2 372 %{3.25ex \@plus1ex \@minus .2ex}%
p@2 373 {-1ex\@plus -0.5ex \@minus -.1ex}%
p@2 374 {-1em}%
p@2 375 {\subparanamestyle}}
p@2 376 % frontmatter
p@2 377
p@2 378 % order of frontmatter from regulations:
p@2 379
p@2 380 %Title page % U. of London says
p@2 381 %Summary % Abstract follows Title Page
p@2 382 %Contents % and then Contents etc.
p@2 383 %List of tables, figures, etc.
p@2 384
p@2 385 %Acknowledgements (if any)
p@2 386
p@2 387 % mainmatter
p@2 388
p@2 389 %Chapters
p@2 390 %Bibliography
p@2 391
p@2 392 % backmatter
p@2 393
p@2 394 %Appendices
p@2 395
p@2 396 % title page definitions:
p@2 397 % \author, \title, \qualification, \university, \date (month and year of
p@2 398 % submission)
p@2 399
p@2 400 \renewcommand\author[1]{\gdef\@author{#1}}
p@2 401 \renewcommand\title[1]{\gdef\@title{#1}}
p@2 402 \newcommand\qualification[1]{\gdef\@qualification{#1}}
p@2 403
p@2 404 \qualification{Doctor of Philosophy}
p@2 405
p@2 406 % the university to which the degree is being submitted % = College -ae
p@2 407
p@2 408 \newcommand\university[1]{\gdef\@university{#1}}
p@2 409
p@2 410 \university{Queen Mary, University of London} % College name. -ae
p@2 411
p@2 412 %-ae \renewcommand{\today}{
p@2 413 %-ae \ifcase\month\or
p@2 414 %-ae January\or February\or March\or April\or May\or June\or
p@2 415 %-ae July\or August\or September\or October\or November\or December\fi,
p@2 416 %-ae \space \number\year}
p@2 417 \newcommand{\yeartoday}{\number\year}
p@2 418
p@2 419 \renewcommand\date[1]{\gdef\@date{#1}}
p@2 420
p@2 421 %-ae % default to \today
p@2 422
p@2 423 %-ae \date{\today}
p@2 424 \date{\yeartoday}
p@2 425
p@2 426 % declaration
p@2 427
p@2 428 % No declaration. -ae
p@2 429 %-ae \newcommand{\declaration}[1]{\gdef\@declaration{#1}}
p@2 430
p@2 431 % default from regulations
p@2 432
p@2 433 %-ae \declaration{%
p@2 434 %-ae I hereby declare that this thesis has not been submitted, either in
p@2 435 %-ae the same or different form, to this or any other university for a
p@2 436 %-ae degree.%
p@2 437 %-ae }
p@2 438
p@2 439 % Acknowledgements (optional).
p@2 440 \newenvironment{acknowledgements}{%
p@2 441 \chapter*{\acknowledgementsname}%
p@2 442 %\addcontentsline{toc}{chapter}{\acknowledgementsname}%
p@2 443 }{%
p@2 444 \clearpage
p@2 445 }
p@2 446
p@2 447 % preface -- sources and extent of any joint work
p@2 448
p@2 449 % No preface. -ae
p@2 450 %-ae \newenvironment{preface}{%
p@2 451 %-ae \chapter*{\prefacename}%
p@2 452 %-ae % \addcontentsline{toc}{chapter}{\prefacename}%
p@2 453 %-ae}{%
p@2 454 %-ae \clearpage
p@2 455 %-ae}
p@2 456
p@2 457 % summary (or abstract) -- 300 words
p@2 458 % This shares a lot of code with \maketitle:
p@2 459
p@2 460 \newcommand{\ssxdphil@summary@maketitle@top}{{%
p@2 461 \clearpage
p@2 462 \thispagestyle{headings}% Was empty. -ae
p@2 463 \balancedraggedright
p@2 464 \vspace*{1.32cm} % same as chapter-head display
p@2 465 \titlestyle\@title \par
p@2 466 \bigskip
p@2 467 \authornamestyle \@author \par
p@2 468 \normalfont\normalsize
p@2 469 \vspace{1cm}%
p@2 470 }}
p@2 471
p@2 472 \newcommand{\ssxdphil@summary@maketitle@bot}{{%
p@2 473 \par\vfill\balancedraggedright
p@2 474 Submitted for the degree of \@qualification \par
p@2 475 \medskip
p@2 476 \@university \par
p@2 477 \medskip
p@2 478 \@date \par
p@2 479 }}
p@2 480
p@2 481 % The summary is run single-spaced.
p@2 482
p@2 483 \newenvironment{summary}{%
p@2 484 \cleardoublepage
p@2 485 \ssxdphil@summary@maketitle@top
p@2 486 \renewcommand{\baselinestretch}{1}\normalsize
p@2 487 \section*{\summaryname}%
p@2 488 }{%
p@2 489 \par
p@2 490 \renewcommand{\baselinestretch}{\globalbaselinestretch}\normalsize
p@2 491 \ssxdphil@summary@maketitle@bot
p@2 492 \clearpage
p@2 493 }
p@2 494
p@2 495 % Title-page
p@2 496
p@2 497 \renewcommand{\maketitle}{%
p@2 498 \ssxdphil@summary@maketitle@top
p@2 499 \ssxdphil@summary@maketitle@bot
p@2 500 \clearpage
p@2 501 %-ae \chapter*{\declarationname}%
p@2 502 %-ae \@declaration\par
p@2 503 %-ae \vspace{5cm}%
p@2 504 %-ae \noindent\signaturename:\par
p@2 505 %-ae \clearpage
p@2 506 }
p@2 507
p@2 508 % Gross document structure
p@2 509
p@2 510 %\newcommand{\frontmatter}{\clearpage\pagenumbering{roman}}
p@2 511 % All pages arabic. -ae
p@2 512 \newcommand{\frontmatter}{\clearpage}
p@2 513 %-ae \newcommand{\mainmatter}{\clearpage\pagenumbering{arabic}}
p@2 514 \newcommand{\mainmatter}{\clearpage}
p@2 515 \newcommand{\backmatter}{\clearpage\appendix}
p@2 516
p@2 517 % Float parameters
p@2 518
p@2 519 \setcounter{topnumber}{2}
p@2 520 \renewcommand{\topfraction}{.7}
p@2 521 \setcounter{bottomnumber}{1}
p@2 522 \renewcommand{\bottomfraction}{.3}
p@2 523 \setcounter{totalnumber}{3}
p@2 524 \renewcommand{\textfraction}{.2}
p@2 525 \renewcommand{\floatpagefraction}{.5}
p@2 526 \setcounter{dbltopnumber}{2}
p@2 527 \renewcommand{\dbltopfraction}{.7}
p@2 528 \renewcommand{\dblfloatpagefraction}{.5}
p@2 529
p@2 530 % Floats can't go at the bottom or in-line by default:
p@2 531
p@2 532 \renewcommand{\fps@figure}{tp}
p@2 533 \renewcommand{\fps@table}{tp}
p@2 534
p@2 535 % Caption name set in \captionnamestyle with name in \captionstyle.
p@2 536
p@2 537 %\renewcommand{\@makecaption}[2]{
p@2 538 % \medskip
p@2 539 % \setbox\@tempboxa\hbox{{\captionnamestyle#1.} {\captionstyle#2}}
p@2 540 % \ifdim \wd\@tempboxa >\hsize {\centering{\captionnamestyle #1.}
p@2 541 % {\captionstyle#2\par}} \else \hbox
p@2 542 %to\hsize{\hfil\box\@tempboxa\hfil}
p@2 543 % \fi}
p@2 544
p@2 545 % sje -- change caption style
p@2 546 % This taken from report.cls
p@2 547 \long\def\@makecaption#1#2{%
p@2 548 \vskip\abovecaptionskip
p@2 549 \sbox\@tempboxa{#1: #2}%
p@2 550 \ifdim \wd\@tempboxa >\hsize
p@2 551 #1: #2\par
p@2 552 \else
p@2 553 \global \@minipagefalse
p@2 554 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
p@2 555 \fi
p@2 556 \vskip\belowcaptionskip}
p@2 557
p@2 558 % Bibliography adds a toc entry.
p@2 559
p@2 560 \renewenvironment{thebibliography}[1]
p@2 561 {\chapter*{\bibname}%
p@2 562 \addcontentsline{toc}{chapter}{\bibname}%%%% ADDITION
p@2 563 \list{\@biblabel{\@arabic\c@enumiv}}%
p@2 564 {\settowidth\labelwidth{\@biblabel{#1}}%
p@2 565 \leftmargin\labelwidth
p@2 566 \advance\leftmargin\labelsep
p@2 567 %-ae \if@openbib
p@2 568 %-ae \advance\leftmargin\bibindent
p@2 569 %-ae \itemindent -\bibindent
p@2 570 %-ae \listparindent \itemindent
p@2 571 %-ae \parsep \z@
p@2 572 %-ae \fi
p@2 573 \usecounter{enumiv}%
p@2 574 \let\p@enumiv\@empty
p@2 575 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
p@2 576 %-ae \if@openbib
p@2 577 %-ae \renewcommand\newblock{\par}%
p@2 578 %-ae \else
p@2 579 \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
p@2 580 %-ae \fi
p@2 581 \sloppy\clubpenalty4000\widowpenalty4000%
p@2 582 \sfcode`\.=\@m}
p@2 583 {\def\@noitemerr
p@2 584 {\@latex@warning{Empty `thebibliography' environment}}%
p@2 585 \endlist}
p@2 586
p@2 587 % Index adds a toc entry.
p@2 588
p@2 589 \renewenvironment{theindex}
p@2 590 {\if@twocolumn
p@2 591 \@restonecolfalse
p@2 592 \else
p@2 593 \@restonecoltrue
p@2 594 \fi
p@2 595 \columnseprule \z@
p@2 596 \columnsep 35\p@
p@2 597 \twocolumn[\@makeschapterhead{\indexname}]%
p@2 598 \markboth{\indexname}{}%
p@2 599 \addcontentsline{toc}{chapter}{\indexname}%%%% ADDITION
p@2 600 \thispagestyle{headings}\parindent\z@%%% Was empty. -ae
p@2 601 \parskip\z@ \@plus .3\p@\relax
p@2 602 \let\item\@idxitem}
p@2 603 {\if@restonecol\onecolumn\else\clearpage\fi}
p@2 604
p@2 605 %%% CHANGELOG
p@2 606
p@2 607 % jkb, 1995/09/19: Created MIT Press-style chapterhead
p@2 608
p@2 609 % jkb, 1995/09/19: Sorted out top/bottom margins
p@2 610
p@2 611 % jkb, 1995/09/19: Reduced space around headings
p@2 612
p@2 613 % jkb, 1995/09/20: Roughed out titlepage with ssxcrest
p@2 614
p@2 615 % jkb, 1995/09/20: Roughed out declaration page
p@2 616
p@2 617 % jkb, 1995/09/20: Changed epsfig to graphics
p@2 618
p@2 619 % jkb, 1995/09/20: Changed font package from times to mathptm --
p@2 620 % has the effect of changing \sfdefault from phv to cmss
p@2 621 % and \ttdefault from Courier
p@2 622
p@2 623 % jkb, 1995/09/20: Discovered that thesis.sty has bottom-centred
p@2 624 % page-numbers and is still approved by the PG office
p@2 625
p@2 626 % jkb, 1995/09/20: Added book.cls-style \frontmatter and \mainmatter commands
p@2 627
p@2 628 % jkb, 1995/10/20: Tried creating left-justified title-page and summary
p@2 629
p@2 630 % jkb, 1995/10/20: Added default empty acknowledgements command
p@2 631
p@2 632 % jkb, 1995/10/25: First draft version completed
p@2 633
p@2 634 % ASAJ, 1995/12/07: Made summary, etc. non-declarative.
p@2 635
p@2 636 % ASAJ, 1995/12/07: Removed the \summary* commands.
p@2 637
p@2 638 % ASAJ, 1995/12/07: Removed \makefrontmatter.
p@2 639
p@2 640 % ASAJ, 1995/12/07: Replaced `spacing' option by `thesis' option, and
p@2 641 % made it one-sided by default. Added the csrp option.
p@2 642
p@2 643 % ASAJ, 1995/12/07: Added \backmatter.
p@2 644
p@2 645 % ASAJ, 1995/12/07: Added a ghastly hack to get all lists set
p@2 646 % single-spaced.
p@2 647
p@2 648 % ASAJ, 1995/12/07: Made title page and summary page similar in style.
p@2 649
p@2 650 % ASAJ, 1995/12/08: Made the title page and summary page share code,
p@2 651 % and removed the crest.
p@2 652
p@2 653 % ASAJ, 1995/12/08: Redesigned the running heads.
p@2 654
p@2 655 % ASAJ, 1995/12/08: Made section heads ragged right.
p@2 656
p@2 657 % ASAJ, 1995/12/08: Made ragged right material try to be more balanced.
p@2 658
p@2 659 % ASAJ, 1995/12/08: Added \clearpage before setting the pagestyle.
p@2 660
p@2 661 % jkb, 1995/12/13: Removed \addtoclines from acknowledgements and preface
p@2 662 % to sort out conflict between lack of folios and contents-page numbering
p@2 663
p@2 664 % jkb, 1995/12/13: Fixed margins in twoside version -- both were
p@2 665 % set using \oddsidemargin. For CSRP version want same
p@2 666 % textwidth so as not to cause problems with explicitly sized
p@2 667 % figures etc., but can have more reasonable margins.
p@2 668
p@2 669 % jkb, 1996/02/12: Added \university command.
p@2 670
p@2 671 % jkb, 1996/02/12: Added final full point to D. Phil. (Hart's Rules).
p@2 672
p@2 673 % jkb, 1996/02/14: Tidied comments. First release version completed.
p@2 674
p@2 675 % ASAJ, 1996/04/01: Made the default title size \LARGE rather than
p@2 676 % \Large, so it's the same size as chapter openings.
p@2 677
p@2 678 % ASAJ, 1996/05/03: Replaced \chaptername by \@chapapp in running heads.
p@2 679
p@2 680 % ASAJ, 1996/05/14: \chapter* now updates the running head. \theindex
p@2 681 % and \thebibliography now add to the toc.
p@2 682
p@2 683 % ASAJ, 1996/09/20: Footnotes are now in \footnotesize. `Submitted
p@2 684 % for the degree of' stuff is now at the page foot.
p@2 685
p@2 686 % sje, 1997/02/05: Better setting of captions
p@2 687
p@2 688 % ASAJ 1997/03/10: Corrected setting of running heads for index.
p@2 689
p@2 690