forked from mikispag/UICThesis-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uicthesis11.clo
431 lines (400 loc) · 14.7 KB
/
uicthesis11.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
% This is the default font size dependent style option file for use
% with the UICTHESIS STY style file for thesis formatting at UIC.
% To use it please enter the line \verb+\documentstyle{uicthesis}+.
% This file an adoptation of the Report Document style for
% \LaTeX\ version 2.09 Copyright (C) 1988 by Leslie Lamport and
% for use with the new Font Selection Scheme that accompanied \TeX\
% version 3.1 at UIC.
%
% First Edition:
% Paul Davis, UIC Computer Center, 31 December 1991.
%
% Changes to this file:
% (should be described here)
% (remember to update the filedate and fileversion as needed.)
%
% Changed \itemsep to 0. Formerly, the extra space resulted in
% triple-spacing in list environments.
% Paul Davis, UIC Computer Center, 8 Jun 1992.(b)
%
% This file has been updated to work under \LaTeX\ version 2e.
% Wherever possible or necessary I have substituted the appropriate
% \LaTeX\ version 2e command for the old commands that didn't work.
% As I started this project with little prior knowledge there may
% be bugs or other mistakes, so please feel free to add corrections
% and enhancements as seen fit. I used the University of California
% thesis style class ucthesis.cls and associated files as guides in
% this effort. Those are available from any CTAN archive.
%
% Thomas McKibben, UIC Dept. of Physics, January 1996.
%
%
% First, announce ourselves.
\typeout{Loading uicthesis11.clo...}
\renewcommand{\normalsize}{\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@
\let\@listi\@listI} % Setting of \@listi added 9 Jun 87
\newcommand{\small}{\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{\leftmargin\leftmargini %% Added 22 Dec 87
\topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
\itemsep \parsep}}
\def\footnotesize{
\@setsize\footnotesize{11pt}\ixpt\@ixpt
\abovedisplayskip 8pt plus 2pt minus 4pt
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt
\belowdisplayshortskip 4pt plus 2pt minus 2pt
\def\@listi{
\leftmargin\leftmargini
\topsep 4pt plus 2pt minus 2pt
\parsep 2pt plus 1pt minus 1pt
\itemsep 0pt}}
\def\scriptsize{
\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
\def\tiny{
\@setsize\tiny{7pt}\vipt\@vipt}
\def\large{
\@setsize\large{14pt}\xiipt\@xiipt}
\def\Large{
\@setsize\Large{18pt}\xivpt\@xivpt}
\def\LARGE{
\@setsize\LARGE{22pt}\xviipt\@xviipt}
\def\huge{
\@setsize\huge{25pt}\xxpt\@xxpt}
\def\Huge{
\@setsize\Huge{30pt}\xxvpt\@xxvpt}
\normalsize
% \end{macrocode}
% \section{Floats}
% A float is something like a figure or table.
%
% \subsection{Floats on a Text Page}
% \begin{macrocode}
\floatsep 60pt plus 2pt minus 2pt % Space between adjacent floats
% moved to top or bottom of text
% page.
\textfloatsep 60pt plus 2pt minus 4pt % Space between main text and
% floats at top or bottom of page.
\intextsep 60pt plus 2pt minus 2pt % Space between in-text figures and
% text.
%\@maxsep 75pt % The maximum of \floatsep,
% \textfloatsep and \intextsep
% (minus the stretch and shrink).
% \end{macrocode}
% \subsection{For Floats on a Separate Float Page}
% \begin{macrocode}
\@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
% 0pt plus ...)
\@fpsep 60pt plus 2fil % Space between floats on float page/column.
\@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must
% be 0pt plus ... )
% \end{macrocode}
% \subsection{Marginal Notes}
% \begin{macrocode}
\marginparpush 5pt % Minimum vertical separation between two marginal
% notes.
% \end{macrocode}
% \section{Paragraphing}
% \begin{macrocode}
\parskip 0pt plus 1pt % Extra vertical space between paragraphs.
\parindent 17pt % Width of paragraph indentation.
\partopsep 3pt plus 1pt minus 2pt % Extra vertical space, in addition to
% \verb+\parskip+ and \verb+\topsep+, added w
% leaves blank line before environment.
% \end{macrocode}
% See \verb+\@listI+ for values of \verb+\topsep+ and \verb+\itemsep+.
% The following page-breaking penalties are defined
% \begin{macrocode}
\@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.
% \end{macrocode}
% \verb+\clubpenalty+ % 'Club line' at bottom of page.
% \verb+\widowpenalty+ % 'Widow line' at top of page.
% \verb+\displaywidowpenalty+ % Math display widow line.
% \verb+\predisplaypenalty+ % Breaking before a math display.
% \verb+\postdisplaypenalty+ % Breaking after a math display.
% \verb+\interlinepenalty+ % Breaking at a line within a paragraph.
% \verb+\brokenpenalty+ % Breaking after a hyphenated line.
%
% \section{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, \verb+\rightmargin+, \verb+\listparindent+
% and \verb+\itemindent+ are set to 0pt.
% Then, for a Kth level list, the command \verb+\@listK+ is
% called, where 'K' denotes 'i', 'ii', ... , 'vi'.
% (I.e., \verb+\@listiii+ is called for a third-level list.)
% By convention, \verb+\@listK+ should set
% \verb+\leftmargin+ to \verb+\leftmarginK+.
%
% For efficiency, level-one list's values are defined at top level, and
% \verb+\@listi+ is defined to set only \verb+\leftmargin+.
% \begin{macrocode}
\leftmargini 2.5em
\leftmarginii 2.2em
\leftmarginiii 1.87em
\leftmarginiv 1.7em
\leftmarginv 1em
\leftmarginvi 1em
\leftmargin\leftmargini
\labelsep .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep
% \end{macrocode}
% \verb+\@listI+ defines top level and \verb+\@listi+ values of
% \verb+\leftmargin+, \verb+\topsep+, \verb+\parsep+, and \verb+\itemsep+
% \begin{macrocode}
\def\@listI{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt%
\topsep 9pt plus 3pt minus 5pt%
\itemsep 0pt plus 2pt minus 1pt}
\let\@listi\@listI
\@listi
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 4.5pt plus 2pt minus 1pt
\parsep 2pt plus 1pt minus 1pt
\itemsep 0pt}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep 2pt plus 1pt minus 1pt
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
\itemsep 0pt}
\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}
% \end{macrocode}
%
% BEGIN DEFINITIONS
%
% \subsubsection{Generic Bold Definition}
% This defines a generic bold default series to be used in the definition for
% chapter for example. This definition will cause an emphasized word
% in the title section to be printed in slanted bold instead of roman bold.
% Only works with the new font definition scheme!
% \begin{macrocode}
%\def\transparentbold{\def\default@series{bx}\bf}
% \end{macrocode}
\def\transparentbold{\bfseries} % TMcK 1996
%
% \subsubsection{Underlining}
% Hey, it works!
% \begin{macrocode}
\newbox\ustrutbox
\setbox\ustrutbox=\hbox{\vrule height8.5pt depth3.2pt width0pt}
\def\ustrut{\relax\ifmmode\copy\ustrutbox\else\unhcopy\ustrutbox\fi}
\def\underl#1 {\leavevmode\let\first=\relax\underli #1 }
\def\underli#1 {\ifx\let\next=\relax\unskip
\else\let\next=\underli\first\ulinebox{#1}\fi\let\first=\undersp\next}
\def\undersp{\penalty50\ulinebox{\space}\penalty50}
\def\ulinebox#1{\vtop{\hbox{\ustrut#1}\hrule}}
% \end{macrocode}
% \section{Definitions}
% The next line defines a flag to detect
% when we started the body, the chapter macro (numbered) checks this flag.
% If it was false it changes to arabic pagenumbering and sets it to one.
% If it is already true it does not do anything.
% \begin{macrocode}
\newif\if@startedbodyyet\@startedbodyyetfalse
\newif\if@startedappendices\@startedappendicesfalse
\newif\if@multappendices\@multappendicesfalse
\newif\if@isatable\@isatablefalse
\newif\if@nowarning % New if to test if we need to issue a
\@nowarningtrue % warning during footnote placement.
\newif\if@bibforma\@bibformafalse
\newcount\c@fnref
\newcount\out@fnpage@count
\out@fnpage@count=1
\newif\ifabseqnumbering\abseqnumberingfalse
\def\today{\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\day, \number\year}
% \end{macrocode}
% \subsubsection{Page Numbering at Top}
% In this section we will redefine the running title, so that only the
% page number is printed. This can be achieved with a pagestyle which
% only prints the page at the top (like plain prints at the bottom).
% \begin{macrocode}
\def\ps@pageontop{
\def\@oddhead{\rmfamily\hfil\thepage}
\let\@evenhead\@oddhead
\def\@oddfoot{}
\let\@evenfoot\@oddfoot}
% \end{macrocode}
%
% \subsubsection{Page Numbering at Bottom}
% \begin{macrocode}
\def\ps@pageonbottom{
\def\@oddhead{}
\def\@evenhead{}
\def\@oddfoot{\rmfamily\hfil\thepage\hfil}
\let\@evenfoot\@oddfoot}
% \end{macrocode}
%
%
% END DEFINITIONS
%
%
% BEGIN PAGE LAYOUT
%
% \section{Page Layout}
% \subsection{Page Definition}
% Now, lets do the page settings.
% Margins are 1.25 inch on the left side and 1 inch on the right.
% \begin{macrocode}
\oddsidemargin=0.25in
\evensidemargin=0.25in
\textwidth=6.25in
\def\innerheadskip{12pt}
\headheight=32pt
\headsep=30pt % area between the heading and the text
\footskip=20pt
\textheight=9in % height of the physical page
\advance \textheight by -\headheight
\advance \textheight by -\headsep
\advance \textheight by -\footskip
\mark{{}{}} % Initializes TeX's marks
%\@twosidefalse % Default is one-sided printing.
\pagestyle{pageonbottom}
\pagestyle{plain}
\pagenumbering{roman}
% \end{macrocode}
%
% The pagenumbering is set to roman because that is what the preliminary
% pages should be numbered with.
% \begin{macrocode}
\@afterindenttrue
\looseness=1
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=10000
\raggedbottom
% \end{macrocode}
%
% \subsection{Line Spacing}
% Set up double spacing
% \begin{macrocode}
\def\baselinestretch{2}
% \end{macrocode}
%
% New command \verb+\setstretch+ (slightly more mnemonic...
% and easier to type)
% \begin{macrocode}
\def\setstretch#1{\renewcommand{\baselinestretch}{#1}}
% \end{macrocode}
%
% A single spaced quote (say) is done by surrounding singlespace with quote.
% \begin{macrocode}
\def\singlespace{
\vskip\parskip\vskip\baselineskip
\def\baselinestretch{1}
\baselineskip\f@baselineskip\relax
\baselineskip\baselinestretch\baselineskip
\setbox\strutbox\hbox{
\vrule\@height.7\baselineskip\@depth.3\baselineskip \@width\z@}
\normalbaselineskip\baselineskip
\glb@settings \the\every@math@size
\aftergroup\glb@settings
\vskip-\parskip
\vskip-\baselineskip}
\def\endsinglespace{\par}
% \end{macrocode}
%
% Spacing, doublespace and onehalfspace all are meant to INCREASE the
% spacing (i.e. calling onehalfspace from within doublespace will not
% produce a graceful transition between spacings)
% \begin{macrocode}
\def\spacing#1{
\par
\def\baselinestretch{#1}
\baselineskip\f@baselineskip\relax
\baselineskip\baselinestretch\baselineskip
\setbox\strutbox\hbox{
\vrule\@height.7\baselineskip\@depth.3\baselineskip \@width\z@}
\normalbaselineskip\baselineskip
\glb@settings \the\every@math@size
\aftergroup\glb@settings
\vskip-\parskip
\vskip-\baselineskip}
\def\endspacing{
\par
\vskip \parskip
\vskip \baselineskip
\endgroup
\vskip -\parskip
\vskip -\baselineskip
\begingroup}
\def\onehalfspace{\spacing{1.5}}
\let\endonehalfspace=\endspacing
\def\doublespace{\spacing{2}}
\let\doublespace=\endspacing
% \end{macrocode}
%
% Fix up spacing before and after displayed math
% (arraystretch seems to do a fine job for inside LaTeX displayed math,
% since array and eqnarray seem to be affected as expected)
% Changing \baselinestretch and doing a font change also works if done here,
% but then you have to change @setsize to remove the call to @nomath)
% \begin{macrocode}
\everydisplay{
\abovedisplayskip \baselinestretch\abovedisplayskip
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \baselinestretch\abovedisplayshortskip
\belowdisplayshortskip \baselinestretch\belowdisplayshortskip}
% \end{macrocode}
%
% \subsection{Running Titles}
% \subsubsection{Front Matter Continuation Headings}
% This is the page style needed to print the headers in subsequent pages
% of the front matter pages other than the table of contents and the
% lists of figures and tables.
% The line that has a \verb+\vbox to 24pt{}+
% was set to use the \verb+\baselineskip+ but the baselineskip is set
% to zero and therefore cannot be used.
% \begin{macrocode}
\def\ps@continued{
\def\@oddhead{\headmark}
\let\@evenhead\@oddhead
\def\@oddfoot{\rmfamily\normalsize\hfil\thepage\hfil}
\let\@evenfoot\oddfoot}
% \end{macrocode}
%
% \subsubsection{Appendix Continuation Headings}
% This is the page style needed to print the headers in subsequent pages
% of the appendix.
% \begin{macrocode}
\def\ps@appendixcontinued{
\def\@oddhead{\headmark}
\let\@evenhead\@oddhead
\def\@oddfoot{}
\let\@evenfoot\oddfoot}
% \end{macrocode}
%
% \subsubsection{Bibliography Continuation Headings}
% This is the page style needed to print the headers in subsequent pages
% of the bibliography.
% \begin{macrocode}
\def\ps@bibliographycontinued{
\def\@oddhead{\headmark\rmfamily\hfil\thepage}
\let\@evenhead\@oddhead
\def\@oddfoot{}
\let\@evenfoot\oddfoot}
% \end{macrocode}
%
% END PAGE LAYOUT
%