-
Notifications
You must be signed in to change notification settings - Fork 0
/
erc_bbk.sty
executable file
·272 lines (245 loc) · 7.93 KB
/
erc_bbk.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Adjust margins
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength \textwidth {420\p@}
\setlength \textheight {692\p@}
\setlength \topmargin {36\p@}
\setlength \oddsidemargin {105\p@}
%\setlength \evensidemargin {50\p@}
\setlength \evensidemargin {105\p@}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Renew spacing for listoffigures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{3em}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Renew bib environment to add to contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewenvironment{thebibliography}[1]{%
% \chapter*{%
% \bibname%
% \@mkboth{\bibname}{\bibname}%
% }%
% \addcontentsline{toc}{chapter}{\bibname} % New line
% \list{\@biblabel{\arabic{enumiv}}}%
% {\settowidth \labelwidth{\@biblabel{#1}}%
% \leftmargin \labelwidth%
% \advance \leftmargin \labelsep%
% \if@openbib%
% \advance \leftmargin \bibindent%
% \itemindent -\bibindent%
% \listparindent \itemindent%
% \parsep \z@%
% \fi%
% \usecounter{enumiv}%
% \let \p@enumiv \@empty%
% \renewcommand \theenumiv{\arabic{enumiv}}%
% }%
% \if@openbib%
% \renewcommand \newblock{\par}%
% \else%
% \renewcommand \newblock{\hskip .11em \@plus.33em \@minus.07em}%
% \fi%
% \sloppy%
% \clubpenalty 4000%
% \widowpenalty 4000%
% \sfcode`\.=\@m%
%}{%
% \def \@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
% \endlist%
%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Maketitle - stretch title spacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand \@maketitle{%
\newpage%
\null%
\vspace*{5em}%
\renewcommand{\baselinestretch}{2.5}\small\normalsize
\begin{center}%
{\huge \bfseries \@title}\\[5em]%
{\Large \itshape \@author}\\%
\end{center}%
\renewcommand{\baselinestretch}{1.5}\small\normalsize
\vfill%
\begin{center}%
A dissertation submitted in partial fulf\/illment \\
of the requirements for the degree of \\
\textbf{\@degree@string} \\
of the \\
\textbf{University of London}.
\end{center}%
\vspace{2em}%
\begin{center}%
School of Economics, Mathematics and Statistics \\
Birkbeck College
\end{center}%
\vspace{2em}%
\begin{center}%
\@date%
\end{center}%
}
% introduced Sept 17 98 to create right aligned chapter heads
\renewcommand \@makechapterhead[1]{%
\vspace*{40\p@}%
{\parindent \z@%
\raggedright%
\reset@font%
\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter%
\huge \bfseries \hrulefill \rule{0.03cm}{0cm} {\sc \@chapapp{} \thechapter}%
\par%
\vskip 20\p@%
\fi%
\fi%
\huge \bfseries #1%
\par%
\nobreak%
\vskip 40\p@%
}%
}
\renewcommand \@makeschapterhead[1]{%
\vspace*{50\p@}%
{\parindent \z@%
\raggedright%
\reset@font%
\huge \hrulefill \rule{0.03cm}{0cm} \bfseries {\sc #1}%
\par%
\nobreak%
\vskip 40\p@%
}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Index utils
%% Reminders:
%% from-to: \index{chain code!(} and \index{chain code!)}
%% sub/subsub: \index{chain code!generalized},
%% \index{chain code!generalized!whatever}
%% Underlined/Italic, Bold: e.g. \index{chain code|bb}
%% Generate with: makeindex thesis
%% input thesis.ind
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\uu}[1]{{\underline #1}}
\newcommand{\ii}[1]{{\it#1}}
\newcommand{\bb}[1]{{\bf#1}}
% Renew to add to contents
\renewenvironment{theindex}{%
\if@twocolumn%
\@restonecolfalse%
\else%
\@restonecoltrue%
\fi%
\columnseprule \z@%
\columnsep 35\p@%
\twocolumn
\chapter*{\indexname}{
\@mkboth{\indexname}{\indexname}%
}
\addcontentsline{toc}{chapter}{\indexname} % New line
\parindent \z@%
\parskip \z@ \@plus .3\p@%
\relax%
\gdef \@idxitem{\par \hangindent 40\p@}
\let \item \@idxitem%
}{%
\if@restonecol%
\onecolumn%
\else%
\clearpage%
\fi%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Glossary page
%% Generate with: makeindex -s gglo.ist -o thesis.gls thesis.glo
%% input thesis.gls
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\glossaryname{Glossary}
\newcommand\@glsitem{\par\hangindent 40\p@}
\newenvironment{theglossary}{%
\chapter*{\glossaryname}{%
\@mkboth{\glossaryname}{\glossaryname}%
}%
\addcontentsline{toc}{chapter}{\glossaryname} % Add to contents
\gdef \@glsitem{\par \hangindent 40\p@}
\let \item \@glsitem%
}
\newcommand{\pfill}{\hfill}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Algorithm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Additional environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand \@publications{Publications}
\newenvironment{publications}{%
\chapter*{\@publications}{%
\@mkboth{\@publications}{\@publications}%
}%
% \addcontentsline{toc}{chapter}{\@publications}
}{%
}
\newcommand \@cv{About the Author}
\newenvironment{cv}{%
\chapter*{\@cv}{%
\@mkboth{\@cv}{\@cv}%
}%
\addcontentsline{toc}{chapter}{\@cv}
}{%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Title Page with ucl logo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand \@maketitle{%
\newpage%
\null%
\vspace*{5em}%
\begin{center}%
{\huge \bfseries \@title}\\[5em]%
{\Large \itshape \@author}\\[7em]%
\scalebox{0.5}{\includegraphics{bbklogo.jpg}}
\end{center}%
\vfill%
\begin{center}
A dissertation submitted under University of London regulations as\\
partial fulf\/illment for the degree of \\
\textbf{\@degree@string}. \\
Any quotation or excerpt from the published or unpublished work of other \\
persons is explicitly indicated and in each such instance a full reference \\
of the source of such work is given. I submit the work as my own.
\end{center}%
\vspace{2em}%
\begin{center}%
Supervisor: Steve Ohana\\
School of Economics, Mathematics and Statistics\\
Birkbeck College
\end{center}%
\vspace{2em}%
\begin{center}%
\@date%
\end{center}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Odd/Even Head
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand \@oddhead{\underline{\underline{\parbox{\textwidth}{%
\normalfont \rmfamily \slshape \hfill \rightmark \hfill \thepage%
\rule[-1.3mm]{0cm}{0mm}%
}}}}
\renewcommand \@evenhead{\underline{\underline{\parbox{\textwidth}{%
\normalfont \rmfamily \slshape \thepage \hfill \leftmark \hfill%
\rule[-1.3mm]{0cm}{0mm}%
}}}}
\newcommand \@symbolindex{Symbol Index}
\newenvironment{symbolindex}{%
\chapter*{\@symbolindex}%
\@mkboth{\@symbolindex}{\@symbolindex}%
}{%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% dec 21 1998 - update to section heading
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand \section{\@startsection {section}{1}{\z@}%
% {-1ex \@plus -.4ex \@minus -.2ex}%
% {.6ex \@plus .1ex}%
% {\reset@font \Large \bfseries \sc} }
%\let \t@section=\section
%\renewcommand{\section}[1]{\t@section{#1\hrulefill}}