-
Notifications
You must be signed in to change notification settings - Fork 0
/
thes12.clo
477 lines (409 loc) · 20.8 KB
/
thes12.clo
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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
% UNIVERSITY OF CALGARY THESIS DOCUMENT CLASS OPTION -- thes12.clo 98/03/01
% for LaTeX version 2e
% Modified N. Mancell 98/03/01 formerly thes12.sty
% Modified (thes12.sty) D.Teale 92-09-23 To fix typeout for altchapter
% ****************************************
% * FONTS *
% ****************************************
%
\lineskip 1pt % \lineskip is 1pt for all font sizes.
\normallineskip 1pt
\def\baselinestretch{1}
% All font selection commands have been revised to conform with
% Latex2e font selection commands (NM 98/03/01).
%
% Each size-changing command \SIZE executes the command
% \fontsize\@FONTSIZE{BASELINESKIP}\selectfont
% where:
% BASELINESKIP = Normal value of \baselineskip for that size. (Actual
% value will be \baselinestretch * BASELINESKIP.)
%
% \@FONTSIZE = Name of font-size command. The currently available
% (preloaded) font sizes are: \@vpt (5pt), \@vipt (6pt),
% \@viipt (etc.), \@viiipt, \@ixpt, \@xpt, \@xipt, \@xiipt,
% \@xivpt, \@xviipt, \@xxpt, \@xxvpt. These are defined
% ltfss.dtx.
%
% For reasons of efficiency that needn't concern the designer,
% the document style defines \@normalsize instead of \normalsize . This is
% done only for \normalsize, not for any other size-changing commands.
%\renewcommand{\normalsize}{\fontsize\@xiipt{14.5}\selectfont% (nm2007)
\renewcommand{\normalsize}{\fontsize{12pt}{14.5pt}\selectfont %(nm2007 added)
\abovedisplayskip 12\p@ plus3\p@ minus7\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3\p@
\belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@}
\newcommand{\small}{\fontsize\@xipt{13.6}\selectfont%
\abovedisplayskip 11\p@ plus3\p@ minus6\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3\p@
\belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@
\def\@listi{\parsep 4.5\p@ plus 2\p@ minus 1\p@
\itemsep \parsep
\topsep 9\p@ plus 3\p@ minus 5\p@}}
\newcommand{\footnotesize}{\fontsize\@xpt{12}\selectfont%
\abovedisplayskip 10\p@ plus2\p@ minus5\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3\p@
\belowdisplayshortskip 6\p@ plus3\p@ minus3\p@
\def\@listi{\topsep 6\p@ plus 2\p@ minus 2\p@\parsep 3\p@ plus 2\p@ minus 1\p@
\itemsep \parsep}}
\newcommand{\scriptsize}{\fontsize\@viiipt{9.5pt}\selectfont}
\newcommand{\tiny}{\fontsize\@vipt{7pt}\selectfont}
\newcommand{\large}{\fontsize\@xivpt{18pt}\selectfont}
\newcommand{\Large}{\fontsize\@xviipt{22pt}\selectfont}
\newcommand{\LARGE}{\fontsize\@xxpt{25pt}\selectfont}
\newcommand{\huge}{\fontsize\@xxvpt{30pt}\selectfont}
\newcommand{\Huge}{\fontsizelet\@xxvpt{30pt}\selectfont}
% The shortform font selection commands are not defined in LaTeX2e.
% This defines them so that they do non-orthogonal font selection,
% which is useful if you are in the middle of converting a document
% from 2.09. These commands are no longer used internally in this
% class. (NM 98/03/01)
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sfffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\newcommand{\sl}{\slshape}
\newcommand{\sc}{\scshape}
\normalsize % Choose the normalsize font.
% ****************************************
% * PAGE LAYOUT *
% ****************************************
%
% All margin dimensions measured from a point one inch from top and side
% of page.
% SIDE MARGINS:
\if@twoside % Values for two-sided printing:
\oddsidemargin 1in % Left margin on odd-numbered pages.
\evensidemargin 1in % Left margin on even-numbered pages.
\marginparwidth 1in % Width of marginal notes.
\else % Values for one-sided printing:
\oddsidemargin 1in % Note that \oddsidemargin = \evensidemargin
\evensidemargin 1in
\marginparwidth 1in
\fi
\marginparsep 1in % Horizontal space between outer margin and
% marginal note
% VERTICAL SPACING:
% Top of page:
\topmargin 0pt % Nominal distance from top of page to top of
% box containing running head.
\headheight 12pt % Height of box containing running head.
\headsep 25pt % Space between running head and text.
% \topskip = 10pt % '\baselineskip' for first line of page.
% Bottom of page:
%\footheight 12pt % (NM 98/03/01)Height of box containing
% running foot.
\footskip 30pt % Distance from baseline of box containing foot
% to baseline of last line of text.
% DIMENSION OF TEXT:
\textheight 580.5pt % Height of text (including footnotes and figures,
% excluding running head and foot).
\textwidth 429.5pt % Width of text line.
% For two-column mode:
\columnsep 10pt % Space between columns
\columnseprule 0pt % Width of rule between columns.
% A \raggedbottom command causes 'ragged bottom' pages: pages set to
% natural height instead of being stretched to exactly \textheight.
% FOOTNOTES:
\footnotesep 8.4pt % Height of strut placed at the beginning of every
% footnote = height of normal \footnotesize strut,
% so no extra space between footnotes.
\skip\footins 10.8pt plus 4pt minus 2pt % Space between last line of text and
% top of first footnote.
% FLOATS: (a float is something like a figure or table)
%
% FOR FLOATS ON A TEXT PAGE:
%
% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
\floatsep 14pt plus 2pt minus 4pt % Space between adjacent floats moved
% to top or bottom of text page.
\textfloatsep 20pt plus 2pt minus 4pt % Space between main text and floats
% at top or bottom of page.
\intextsep 14pt plus 4pt minus 4pt % Space between in-text figures and
% text.
%\@maxsep 20pt % (NM 98/03/01)The maximum of
%\floatsep,
% \textfloatsep and \intextsep (minus
% the stretch and shrink).
% TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
\dblfloatsep 14pt plus 2pt minus 4pt % Same as \floatsep for double-column
% figures in two-column mode.
\dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column
% floats.
%\@dblmaxsep 20pt % (NM98/03/01)The maximum of
% \dblfloatsep and
% \dbltexfloatsep.
% FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
\@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
% 0pt plus ...)
\@fpsep 10pt plus 2fil % Space between floats on float page/column.
\@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
% 0pt plus ... )
% DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
\@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
\@dblfpsep 10pt plus 2fil % Space between floats on float page.
\@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
% 0pt plus ... )
% MARGINAL NOTES:
%
\marginparpush 7pt % Minimum vertical separation between two marginal
% notes.
% ****************************************
% * PARAGRAPHING *
% ****************************************
%
\parskip 0pt plus 1pt % Extra vertical space between paragraphs.
\parindent 1.5em % Width of paragraph indentation.
\topsep 10pt plus 4pt minus 6pt % Extra vertical space, in addition to
% \parskip, added above and below list and
% paragraphing environments.
\partopsep 3pt plus 2pt minus 2pt % Extra vertical space, in addition to
% \parskip and \topsep, added when user
% leaves blank line before environment.
\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition to
% \parskip, added between list items.
% The following page-breaking penalties are defined
\@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
\@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
\@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
\@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
\@endparpenalty -\@lowpenalty % After a list or paragraph environment.
\@itempenalty -\@lowpenalty % Between list items.
% \clubpenalty % 'Club line' at bottom of page.
% \widowpenalty % 'Widow line' at top of page.
% \displaywidowpenalty % Math display widow line.
% \predisplaypenalty % Breaking before a math display.
% \postdisplaypenalty % Breaking after a math display.
% \interlinepenalty % Breaking at a line within a paragraph.
% \brokenpenalty % Breaking after a hyphenated line.
% ****************************************
% * CHAPTERS AND SECTIONS *
% ****************************************
%
% \sty@SECTION{#1}{#2} is defined to be the type, size, placement of section titles
\def\setsectionstyle#1#2{\@ifundefined{sty@#1}%
{\@warning{sectionstyle `\string#1' on page \thepage \space undefined}}%
{\@namedef{sty@#1}{#2}}}
%{\edef\@tempsty{\@nameuse{sty@#1}}\show\@tempsty%
%\let\@tempstya\@tempsty\show\@tempstya\@namedef{sty@#1}{\@nameuse{@tempstya}#2}}}
% initialization of \sty@SECTION
\def\sty@chapter{\Large\centering} %removed \bfseries 2006nm
\def\sty@section{\large} %removed \bfseries 2006nm
\def\sty@subsection{\normalsize} %removed \bfseries 2006nm
\def\sty@subsubsection{\normalsize} %removed \bfseries after \normalsize 2006nm
\def\sty@paragraph{\normalsize} %removed \bfseries 2006nm
\def\sty@subparagraph{\normalsize} %removed \bfseries 2006nm
\def\part{\cleardoublepage % Starts new page.
\thispagestyle{plain} % Page style of part page is 'plain'
\if@twocolumn % IF two-column style
\onecolumn % THEN \onecolumn
\@tempswatrue % @tempswa := true
\else \@tempswafalse % ELSE @tempswa := false
\fi % FI
\hbox{}\vfil % Add fil glue to center title
\bgroup \centering % BEGIN centering
\secdef\@part\@spart}
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
\refstepcounter{part} % THEN step part counter
\addcontentsline{toc}{part}{\thepart % add toc line
\hspace{1em}#1}\else % ELSE add unnumbered line
\addcontentsline{toc}{part}{#1}\fi % FI
\markboth{}{}
\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
\huge\bf Part \thepart % THEN Print 'Part' and number
\par % in \huge bold.
\vskip 20pt \fi % Add space before title.
\Huge \bfseries % FI
#1\@endpart} % Print Title in \Huge bold.
% \@endpart finishes the part page
%
\def\@endpart{\par\egroup % END centering
\vfil\newpage % End page with 1fil glue.
\if@twoside % IF twoside printing
\hbox{} % THEN Produce totally blank page
\thispagestyle{empty}
\newpage
\fi % FI
\if@tempswa % IF @tempswa = true
\twocolumn % THEN \twocolumn
\fi} % FI
\def\@spart#1{\Huge \bfseries % Print title in \huge boldface
#1\@endpart}
% \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
%
\def\@makechapterhead#1{ % Heading for \chapter command
% \vspace*{12pt} % Space at top of text page.
{ \parindent 0pt \raggedright
\ifnum \c@secnumdepth >\m@ne % IF secnumdepth > -1 THEN
\Large \centering \bf{\sty@chapter} \@chapapp{} \bf{\thechapter} % Print 'Chapter'
% and number.%removed \bfseries 2006nm
\par
\vskip 12pt \fi % Space between number and title.
\Large\sty@chapter % Title.%removed \bfseries 2006nm
#1\par
\nobreak % TeX penalty to prevent page break.
\vskip 24pt % Space between title and text.
} }
% \@makeschapterhead {TEXT} : Makes the heading for the \chapter* command.
%
\def\@makeschapterhead#1{ % Heading for \chapter* command
% \vspace*{12pt} % Space at top of page.
{ \parindent 0pt \raggedright
\Large\sty@chapter % Title.%removed \bfseries 2006nm
#1\par
\nobreak % TeX penalty to prevent page break.
\vskip 24pt % Space between title and text.
} }
% \secdef{UNSTARCMDS}{STARCMDS} :
% When defining a \chapter or \section command without using
% \@startsection, you can use \secdef as follows:
% \def\chapter { ... \secdef \CMDA \CMDB }
% \def\CMDA [#1]#2{ ... % Command to define \chapter[...]{...}
% \def\CMDB #1{ ... % Command to define \chapter*{...}
\def\chapter{\clearpage % Starts new page.
\pagestyle{plain} % Page style of chapter page is 'plain' %changed from \thispagestyle{plain} to pagestyle{fancy}2009nm
\global\@topnum\z@ % Prevents figures from going at top of page.
\@afterindentfalse % Suppresses indent in first paragraph. Change
\secdef\@chapter\@schapter} % to \@afterindenttrue to have indent.
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}
\typeout{\@chapapp\space\bf{\thechapter}.}
\addcontentsline{toc}{chapter}{\protect
\numberline{\thechapter}#1}\else
\addcontentsline{toc}{chapter}{#1}\fi
\chaptermark{#1}
\addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
\addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
\if@twocolumn % Tests for two-column mode.
\@topnewpage[\@makechapterhead{#2}]
\else \@makechapterhead{#2}
\@afterheading % Routine called after chapter and
\fi} % section heading.
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
\else \@makeschapterhead{#1}
\@afterheading\fi}
% *********************************
% * ALTERNATE THESIS CHAPTER FORM *
% *********************************
\def\altchapter{\clearpage % Starts new page.
\thispagestyle{plain} % Page style of chapter page is 'plain'
\global\@topnum\z@ % Prevents figures from going at top of page.
\@afterindentfalse % Suppresses indent in first paragraph. Change
\secdef\@altchapter\@saltchapter} % to \@afterindenttrue to have indent.
\def\@altchapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\typeout{#1}
\addcontentsline{toc}{chapter}{#1}\else
\addcontentsline{toc}{chapter}{#1}\fi
\chaptermark{#1}
\addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
\addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
\if@twocolumn % Tests for two-column mode.
\@topnewpage[\@makeschapterhead{#2}]
\else \@makeschapterhead{#2}
\@afterheading % Routine called after chapter and
\fi} % section heading.
\def\@saltchapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
\else \@makeschapterhead{#1}
\@afterheading\fi}
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
% optional * [ALTHEADING]{HEADING}
% Generic command to start a section.
% NAME : e.g., 'subsection'
% LEVEL : a number, denoting depth of section -- e.g., chapter=1,
% section = 2, etc. A section number will be printed if
% and only if LEVEL < or = the value of the secnumdepth
% counter.
% INDENT : Indentation of heading from left margin
% BEFORESKIP : Absolute value = skip to leave above the heading.
% If negative, then paragraph indent of text following
% heading is suppressed.
% AFTERSKIP : if positive, then skip to leave below heading,
% else - skip to leave to right of run-in heading.
% STYLE : commands to set style
% If '*' missing, then increments the counter. If it is present, then
% there should be no [ALTHEADING] argument. A sectioning command
% is normally defined to \@startsection + its first six arguments.
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
-.2ex}{2.3ex plus .2ex}{\large\sty@section}} %removed \bfseries 2006nm
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
-.2ex}{1.0ex plus .2ex}{\normalsize\sty@subsection}} %removed \bfseries 2006nm
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus -1ex minus
-.2ex}{1.0ex plus .2ex}{\itshape\normalsize\sty@subsubsection}} %removed \bfseries 2006nm
\def\paragraph{\@startsection
{paragraph}{4}{\z@}{2.25ex plus 1ex minus .2ex}{-1em}{\itshape\normalsize\sty@paragraph}} %removed \bfseries 2006nm
\def\subparagraph{\@startsection
{subparagraph}{4}{\parindent}{2.25ex plus 1ex minus
.2ex}{-1em}{\normalsize\sty@subparagraph}} %removed \bfseries 2006nm
% Default initializations of \...mark commands. (See below for their
% us in defining page styles.
%
\def\chaptermark#1{}
% \def\sectionmark#1{} % Preloaded definitions
% \def\subsectionmark#1{}
% \def\subsubsectionmark#1{}
% \def\paragraphmark#1{}
% \def\subparagraphmark#1{}
% The value of the counter secnumdepth gives the depth of the
% highest-level sectioning command that is to produce section numbers.
%
\setcounter{secnumdepth}{2}
% APPENDIX
%
% The \appendix command must do the following:
% -- reset the chapter counter to zero
% -- set \@chapapp to Appendix (for messages)
% -- redefine the chapter counter to produce appendix numbers
% -- reset the section counter to zero
% -- redefine the \chapter command if appendix titles and headings are
% to look different from chapter titles and headings.
\def\appendix{\par
\setcounter{chapter}{0}
\setcounter{section}{0}
\def\@chapapp{\bf{Appendix}}
\def\thechapter{\Alph{chapter}}}
% ****************************************
% * LISTS *
% ****************************************
%
% The following commands are used to set the default values for the list
% environment's parameters. See the LaTeX manual for an explanation of
% the meanings of the parameters. Defaults for the list environment are
% set as follows. First, \rightmargin, \listparindent and \itemindent
% are set to 0pt. Then, for a Kth level list, the command \@listK is
% called, where 'K' denotes 'i', 'ii', ... , 'vi'. (I.e., \@listiii is
% called for a third-level list.) By convention, \@listK should set
% \leftmargin to \leftmarginK.
%
% For efficiency, level-one list's values are defined at top level, and
% \@listi is defined to set only \leftmargin.
\leftmargini 3em
\leftmarginii 3em % > \labelsep + width of '(m)'
\leftmarginiii 3em % > \labelsep + width of 'vii.'
\leftmarginiv 3em % > \labelsep + width of 'M.'
\leftmarginv 3em
\leftmarginvi 3em
\leftmargin\leftmargini
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\labelsep .5em
\parsep 5pt plus 2.5pt minus 1pt
\def\@listi{\leftmargin\leftmargini}
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 5pt plus 2.5pt minus 1pt
\parsep 2.5pt plus 1pt minus 1pt
\itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep 2.5pt plus 1pt minus 1pt
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
\itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
\labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}