-
Notifications
You must be signed in to change notification settings - Fork 0
/
illcdiss-epsfig.cls
351 lines (337 loc) · 10.9 KB
/
illcdiss-epsfig.cls
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
% ILLC Disseration style.
%
% Author: Marco Vervoort
% Based on a Latex 2.09 style file by Maarten de Rijke,
% and the Book document class for Latex 2e.
% Code for chapter heads by Martin Stokhof.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{illcdiss}[2001/07/18 ILLC Dissertation Style]
\newcommand{\@mult}{1.2}
\newcommand{\@typesizeopt}{12pt}
\DeclareOption{10pt}{%
\renewcommand{\@mult}{1}
\renewcommand{\@typesizeopt}{10pt}
}
\DeclareOption{11pt}{%
\renewcommand{\@mult}{1.1}
\renewcommand{\@typesizeopt}{11pt}
}
\DeclareOption{12pt}{%
\renewcommand{\@mult}{1.2}
\renewcommand{\@typesizeopt}{12pt}
}
\DeclareOption{openbib}{% To provide backwards compatibility with versions
\AtEndOfPackage{% of the book class that do not use @openbib@code
\renewcommand\@openbib@code{%
\addtolength{\leftmargin}{\bibindent}
\setlength{\itemindent}{-\bibindent}
\setlength{\listparindent}{\itemindent}
\setlength{\parsep}{\z@}
}
\renewcommand\newblock{\par}
}
\PassOptionsToClass{\CurrentOption}{book}
}
\newcommand{\@papersizeopt}{a4paper}
\DeclareOption{a4paper}{\renewcommand{\@papersizeopt}{a4paper}}
\DeclareOption{a5paper}{\renewcommand{\@papersizeopt}{a5paper}}
\DeclareOption{b5paper}{\renewcommand{\@papersizeopt}{b5paper}}
\DeclareOption{letterpaper}{\renewcommand{\@papersizeopt}{letterpaper}}
\DeclareOption{legalpaper}{\renewcommand{\@papersizeopt}{legalpaper}}
\DeclareOption{executivepaper}{\renewcommand{\@papersizeopt}{executivepaper}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions
\LoadClass[\@papersizeopt,\@typesizeopt]{book}
\RequirePackage{epsfig}
%
% To provide backwards compatibility with versions of the book class that
% do not define \@openbib@code, \newblock, \paperwidth or \paperheight:
%
\providecommand{\@openbib@code}{}
\providecommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
\providecommand{\paperwidth}{\pagewidth}
\providecommand{\paperheight}{\pageheight}
%
% New values for some lengths, proportional to fontsize
%
\newcommand{\setmlength}[3]{\setlength{#1}{#3}\setlength{#1}{#2#1}}
\setmlength{\textheight}{\@mult}{0.613\paperheight}%18.2cm for a4paper
\setmlength{\textwidth}{\@mult}{0.576\paperwidth}%12.1cm for a4paper
\setmlength{\headheight}{\@mult}{12pt}
\setmlength{\headsep}{\@mult}{18pt}
\setmlength{\topskip}{\@mult}{10pt}
\setmlength{\footskip}{\@mult}{25pt}
\setlength{\topmargin}{0.5\paperheight}
\addtolength{\topmargin}{-0.5\textheight}
\addtolength{\topmargin}{-0.5\headheight}
\addtolength{\topmargin}{-0.5\headsep}
\addtolength{\topmargin}{-0.5\footskip}
\addtolength{\topmargin}{-1in}
\setlength{\oddsidemargin}{0.5\paperwidth}
\addtolength{\oddsidemargin}{-0.5\textwidth}
\addtolength{\oddsidemargin}{-1in}
\setlength{\evensidemargin}{\oddsidemargin}
%
% Chapterheads: chapternr, horizontal line, chaptertitle
% Vertical spaces are proportional to fontsize
% Note that, as opposed to in book.cls, here the definition
% of \@makechapterhead does _not_ end with a \nobreak command
% but with a \mbox{}, since we'd rather not have the chapter
% head move to the next page even if that would result in
% the chapter head being the _only_ thing on the page.
%
\newlength{\@spacebeforechapterhead}
\setmlength{\@spacebeforechapterhead}{\@mult}{15pt}
\newlength{\@spaceinchapterhead}
\setmlength{\@spaceinchapterhead}{\@mult}{3.5pt}
\newlength{\@spaceafterchapterhead}
\setmlength{\@spaceafterchapterhead}{\@mult}{80pt}
\renewcommand{\@makechapterhead}[1]{{%
\vspace*{\@spacebeforechapterhead}%
\parindent 0pt \Large\bfseries
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\@chapapp\enspace\thechapter
\fi
\fi
\interlinepenalty\@M
\vspace*{\@spaceinchapterhead}%
\hrule
\vspace*{\@spaceinchapterhead}%
{\hfill \LARGE \bfseries #1}%
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
% \vspace*{\@spaceafterchapterhead}\vspace{\stretch{0.01}\par\mbox{}\par
}}
\renewcommand{\@makeschapterhead}[1]{{%
\vspace*{\@spacebeforechapterhead}%
\parindent 0pt \Large\bfseries
\phantom{\@chapapp}%
\interlinepenalty\@M
\vspace*{\@spaceinchapterhead}%
\hrule
\vspace*{\@spaceinchapterhead}%
{\hfill \LARGE \bfseries #1}%
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
\mbox{}\par
% Note: the above works better when there is little text on the first
% page of the chapter
% \vspace*{\@spaceafterchapterhead}\vspace{\stretch{0.01}}\par\mbox{}\par
}}
%
% No pagenumber or headers on skipped pages with cleardoublepage
%
\renewcommand{\cleardoublepage}{%
\clearpage\if@twoside \ifodd\c@page\else
\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi
}
%
% Theorems: {\bf number.} {\sc type.} {\rm description} \it contents
%
\def\@begintheorem#1#2{%
\itshape
\trivlist% changing this in '\begin{trivlist}' yields an error
\item[\hspace{\labelsep}{\upshape\bfseries #2.}\ {\scshape #1.}]%
}
\renewcommand{\@opargbegintheorem}[3]{%
\itshape
\trivlist% changing this in `\begin{trivlist}' yields an error
\item[\hspace{\labelsep}{\upshape\bfseries #2.}\ {\scshape #1\ ({#3}).}]%
}
%
% Chapters, sections and other environments are redefined here to no
% longer cause uppercased headings. Headings are italized instead of
% slanted. The bibliography and index appear in the table of contents.
%
\if@twoside
\renewcommand{\ps@headings}{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\thepage\hfil\itshape\leftmark}%
\def\@oddhead{{\itshape\rightmark}\hfil\thepage}%
\let\@mkboth\markboth
\def\chaptermark##1{\markboth{%
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter \@chapapp\ \thechapter. \ \fi
\fi
##1}{}}%
\def\sectionmark##1{\markright{%
\ifnum \c@secnumdepth >\z@ \thesection. \ \fi
##1}}%
}
\else
\renewcommand{\ps@headings}{%
\let\@oddfoot\@empty
\def\@oddhead{{\itshape\rightmark}\hfil\thepage}%
\let\@mkboth\markboth
\def\chaptermark##1{\markright{%
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter \@chapapp\ \thechapter. \ \fi
\fi
##1}}
}
\fi
\renewcommand{\ps@myheadings}{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\thepage\hfil\itshape\leftmark}%
\def\@oddhead{{\itshape\rightmark}\hfil\thepage}%
\let\@mkboth\@gobbletwo
\let\chaptermark\@gobble
\let\sectionmark\@gobble
}
\renewcommand{\tableofcontents}{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{\contentsname}{\contentsname}}% Headings not uppercased
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
\renewcommand{\listoffigures}{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listfigurename
\@mkboth{\listfigurename}{\listfigurename}}% Headings not uppercased
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
}
\renewcommand{\listoftables}{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listtablename
\@mkboth{\listtablename}{\listtablename}}% Headings not uppercased
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
}
\renewenvironment{thebibliography}[1]{%
\chapter*{\bibname
\@mkboth{\bibname}{\bibname}}% Headings not uppercased
\addcontentsline{toc}{chapter}{Bibliography}% Add to table-of-contents
\list{\@biblabel{\arabic{enumiv}}}{%
\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand{\theenumiv}{\arabic{enumiv}}%
}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=\@m
}{%
\def\@noitemerr{%
\@latex@warning{Empty `thebibliography' environment}%
}%
\endlist
}
\renewenvironment{theindex}{%
\cleardoublepage% Start on a right-hand page
\if@twocolumn
\@restonecolfalse
\else
\@restonecoltrue
\fi
\columnseprule \z@
\columnsep 35\p@
\twocolumn[\phantom{\Large\bf\chaptername}%
\@makeschapterhead{\indexname}]%
\@mkboth{\indexname}{\indexname}% Headings not uppercased
\addcontentsline{toc}{chapter}{Index}% Add to table-of-contents
\thispagestyle{plain}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
}{%
\if@restonecol\onecolumn\else\clearpage\fi
}
%
% Define new end-matter environments
%
\newenvironment{thesymbols}{%
\cleardoublepage% Start on a right-hand page
\if@twocolumn
\@restonecolfalse
\else
\@restonecoltrue
\fi
\columnseprule \z@
\columnsep 35\p@
\twocolumn[\phantom{\Large\bf\chaptername}%
\@makeschapterhead{List of symbols}]%
\@mkboth{List of symbols}{List of symbols}% Headings not uppercased
\addcontentsline{toc}{chapter}{List of Symbols}% Add to table-of-contents
\thispagestyle{plain}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
}{%
\if@restonecol\onecolumn\else\clearpage\fi
}
\newcommand{\acknowledgments}{%
\chapter*{Acknowledgments}%
\addcontentsline{toc}{chapter}{Acknowledgments}%
\markboth{Acknowledgments}{Acknowledgments}%
}
\newcommand{\samenvatting}{%
\chapter*{Samenvatting}%
\addcontentsline{toc}{chapter}{Samenvatting}%
\markboth{Samenvatting}{Samenvatting}%
}
\newcommand{\abstract}{%
\chapter*{Abstract}%
\addcontentsline{toc}{chapter}{Abstract}%
\markboth{Abstract}{Abstract}%
}
\newcommand{\curriculum}{%
\chapter*{Curriculum Vitae}
\addcontentsline{toc}{chapter}{Curriculum Vitae}
\markboth{Curriculum Vitae}{Curriculum Vitae}
}
%
% Italized theorem-like environments
%
\newtheorem{theorem}{Theorem}[section]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
%
% Non-italized theorem-like environments:
%
\newtheorem{@definition}[theorem]{Definition}
\newenvironment{definition}{\begin{@definition}\upshape}{\end{@definition}}
\newtheorem{@remark}[theorem]{Remark}
\newenvironment{remark}{\begin{@remark}\upshape}{\end{@remark}}
\newtheorem{@example}[theorem]{Example}
\newenvironment{example}{\begin{@example}\upshape}{\end{@example}}
\newtheorem{@convention}[theorem]{Convention}
\newenvironment{convention}{\begin{@convention}\upshape}{\end{@convention}}
\newtheorem{@fact}[theorem]{Fact}
\newenvironment{fact}{\begin{@fact}\upshape}{\end{@fact}}
\newtheorem{@question}[theorem]{Question}
\newenvironment{question}{\begin{@question}\upshape}{\end{@question}}
%
% Symbols for AmsTex and ILLC
%
\newcommand{\illclogo}[1]{%
\epsfig{file=illclogo.eps,width=#1}%
}
\newcommand{\illcnotextlogo}[1]{%
\epsfig{file=illc_no_text_logo.eps,width=#1}%
}
\endinput