-
Notifications
You must be signed in to change notification settings - Fork 1
/
anuthesis.sty
167 lines (164 loc) · 5.78 KB
/
anuthesis.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
%%
%% anuthesis.sty Copyright (C) 1996, 1997 Steve Blackburn
%%
%% Department of Computer Science, Australian National University
%%
%% \RCS $RCSfile: anuthesis.sty,v $
%% \RCS $Revision: 1.1 $
%% \RCS $Date: 1997/01/02 00:12:43 $
%%
%% This style is for the production of theses in compliance with the
%% ANU PhD thesis guidelines. In addition to complying with ANU
%% guidelines, the style seeks to produce an attractive document. The
%% page style is based on the Cambridge University Press style.
%%
%% The style takes the following options:
%% cm - Typeset in Computer Modern
%% lucida - " " Lucida
%% palatino - " " Palatino
%% times - " " Times
%%
%% By default, Computer Modern is used.
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{anuthesis}
[1996/11/04 v0.1 ANU Thesis Style (SB)]
%%
%% Use English (Australian) style dates
%%
\def\today{\number\day\space\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space\number\year}
\def\thismonth{\ifcase\month\or January\or February\or March\or
April\or May\or June\or July\or August\or September\or October\or
November\or December\fi \space\number\year}
%%
%%
%% Marginpars
%%
% \def\marginlabel#1{\mbox{}\marginpar{\raggedright\hspace{0pt}#1}}
% \reversemarginpar
% \marginparwidth 25mm
%%
%% Get section commands right.
%%
%%
%% Use Sans in chapter titles in toc
%%
% \renewcommand*\l@chapter[2]{%
% \ifnum \c@tocdepth >\m@ne
% \addpenalty{-\@highpenalty}%
% \vskip 1.0em \@plus\p@
% \setlength\@tempdima{1.5em}%
% \begingroup
% \parindent \z@ \rightskip \@pnumwidth
% \parfillskip -\@pnumwidth
% \leavevmode \bfseries
% \advance\leftskip\@tempdima
% \hskip -\leftskip
% #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
% \penalty\@highpenalty
% \endgroup
% \fi}
%%
%% Fix page style to do page numbers properly
%%
\def\dopagenum#1{\rm\bfseries#1}
\def\ps@plain{\let\@mkboth\@gobbletwo
\let\@oddhead\@empty\def\@oddfoot{\reset@font\hfil\dopagenum\thepage
\hfil}\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
%%
%% Fix up captions (Entire captions small, "Figure X" in bold)
%%
\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{{\small{\bfseries #1}: #2}}%
\ifdim \wd\@tempboxa >\hsize
{\small{\bfseries #1:} #2}\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%%
%% Get all the spacing right
%%
% line spacing
\RequirePackage{setspace}
\setstretch{1.045}
% horizontal stuff - page width 210mm
\textwidth 150mm
\oddsidemargin 16.5mm %15mm % 40 - 25.4
\evensidemargin -7mm %
% vertical stuff - page height 297mm
\topmargin -7mm %-12mm %
\headheight 5mm % header box - space for 1 line
\headsep 7mm %
\textheight 240mm %
%%
%% Page style -- modified from Cambridge University Press style
%%
%%
%% Chapter headings (in original case)
%%
\def\ps@headings{\let\@mkboth\markboth\def\@oddfoot{}\def\@evenfoot{}\def
\@evenhead{\vbox{\hbox to \textwidth{\rlap{\dopagenum\thepage}\hfil \sl
\leftmark\hfil}\vskip 16pt\hrule height0.425pt}}\def
\@oddhead{\vbox{\hbox to \textwidth{\hfil\sl\rightmark\hfil\llap{%
\dopagenum\thepage}}\vskip 16pt\hrule height0.425pt}}\def
\chaptermark##1{\markboth {{\ifnum \c@secnumdepth
>\m@ne
\fi ##1}}{}}\def\sectionmark##1{\markright
{{\ifnum \c@secnumdepth >\z@
{\upshape\S\thesection} \ \ \fi ##1}}}}
\def\@rulehead#1{\hrule height0.425pt \vskip 14pt \Huge \sffamily\mdseries\upshape
#1 \vskip 14pt\hrule height0.425pt}
\def\@makechapterhead#1{ { \parindent 0pt
\ifnum \c@secnumdepth >\m@ne \raggedleft\large\sffamily\mdseries\upshape \@chapapp{} \thechapter \par
\vskip 20pt \fi \raggedright \@rulehead{#1} \par
\nobreak \vskip 80pt } }
\def\@makeschapterhead#1{ { \parindent 0pt \raggedright
\@rulehead{#1} \par \nobreak \vskip 40pt } }
\def\thebibliography#1{\chapter*{Bibliography\@mkboth
{Bibliography}{Bibliography}} \addcontentsline{toc}{chapter}{Bibliography}
\list {\@biblabel{\arabic{enumi}}}{\settowidth\labelwidth{\@biblabel{#1}}
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus -.07em}
\sloppy
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\@makeschapterhead{Index}]
\@mkboth{Index}{Index}\thispagestyle{plain}
\addcontentsline{toc}{chapter}{Index}
\parindent\z@
\parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
%The headings are Contents not CONTENTS
\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{Contents\@mkboth{Contents}{Contents}}
\@starttoc{toc}\if@restonecol\twocolumn\fi}
% ditto for list of figures and list of tables
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{List of Figures\@mkboth{List of Figures}{List of Figures}}
\@starttoc{lof}\if@restonecol\twocolumn\fi}
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{List of Tables\@mkboth{List of Tables}{List of Tables}}
\@starttoc{lot}\if@restonecol\twocolumn\fi}
\def\l@part#1#2{\addpenalty{-\@highpenalty}
\addvspace{2.25em plus 1pt} \begingroup
\@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
-\@pnumwidth
{\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
\nobreak \endgroup}
\headheight 30pt \headsep 20pt
\ps@headings %to override previous
%%
%% End of file `anuthesis.sty'.
%%