Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 424 lines (359 sloc) 17.808 kb
232d150 @jheidemann Initial revision
jheidemann authored
1 % POINT SIZE OPTION for UCLA thesis style
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
2 % (C) Copyright 1995 by John Heidemann,
3 % derived from work (C) Copyright 1988 Richard B. Wales,
4 % taken in turn from material Copyright (C) 1985 by Leslie Lamport.
232d150 @jheidemann Initial revision
jheidemann authored
5
6 % ****************************************
7 % * FONTS *
8 % ****************************************
9 %
10
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
11 %%%
12 % Version checking.
13 %%%
14 \NeedsTeXFormat{LaTeX2e}
15 \def\uclathxiiversion{1.0 beta}
16 \def\uclathxiidate{1995/05/11}
17 \ProvidesFile{uclath12.clo}[\uclathxiidate, \uclathxiiversion]
18
232d150 @jheidemann Initial revision
jheidemann authored
19
20 \lineskip 1pt % \lineskip is 1pt for all font sizes.
21 \normallineskip 1pt
5d986ad @jheidemann changes needed to work with latex2e in 209 compatibility mode
jheidemann authored
22 \renewcommand\baselinestretch{\@spacing} % single or double spacing
232d150 @jheidemann Initial revision
jheidemann authored
23
24 % Each size-changing command \SIZE executes the command
25 % \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
26 % where:
27 % BASELINESKIP = Normal value of \baselineskip for that size. (Actual
28 % value will be \baselinestretch * BASELINESKIP.)
29 %
30 % \FONTSIZE = Name of font-size command. The currently available
31 % (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
32 % \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
33 % \xivpt, \xviipt, \xxpt, \xxvpt.
34 % \@FONTSIZE = The same as the font-size command except with an
35 % '@' in front---e.g., if \FONTSIZE = \xivpt then
36 % \@FONTSIZE = \@xivpt.
37 %
38 % For reasons of efficiency that needn't concern the designer,
39 % the document style defines \@normalsize instead of \normalsize . This is
40 % done only for \normalsize, not for any other size-changing commands.
41
42 % NOTE: All line spacings have been set to the nominal value times 1.3
43 % (e.g., 15.6pt for 12-point type). If you change this spacing, you
44 % must make a corresponding change to the "\@doublespacing" value in the
45 % "thesis.sty" file in order to preserve 3-lines/inch double spacing.
46
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
47 % johnh: my font sizes are taken from LaTeX2e's bk12.clo.
48
49 \renewcommand\normalsize{%
50 \@setfontsize\normalsize\@xiipt{14.5}%
51 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
52 \abovedisplayshortskip \z@ \@plus3\p@
53 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
54 \belowdisplayskip \abovedisplayskip
55 \let\@listi\@listI}
56
57 \newcommand\small{%
58 \@setfontsize\small\@xipt{13.6}%
59 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
60 \abovedisplayshortskip \z@ \@plus3\p@
61 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
62 \def\@listi{\leftmargin\leftmargini
63 \topsep 9\p@ \@plus3\p@ \@minus5\p@
64 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
65 \itemsep \parsep}%
66 \belowdisplayskip \abovedisplayskip
67 }
68 \newcommand\footnotesize{%
69 \@setfontsize\footnotesize\@xpt\@xiipt
70 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
71 \abovedisplayshortskip \z@ \@plus3\p@
72 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
73 \def\@listi{\leftmargin\leftmargini
74 \topsep 6\p@ \@plus2\p@ \@minus2\p@
75 \parsep 3\p@ \@plus2\p@ \@minus\p@
76 \itemsep \parsep}%
77 \belowdisplayskip \abovedisplayskip
78 }
79 \newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
80 \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
81 \newcommand\large{\@setfontsize\large\@xivpt{18}}
82 \newcommand\Large{\@setfontsize\Large\@xviipt{22}}
83 \newcommand\LARGE{\@setfontsize\LARGE\@xxpt{25}}
84 \newcommand\huge{\@setfontsize\huge\@xxvpt{30}}
232d150 @jheidemann Initial revision
jheidemann authored
85 \let\Huge=\huge
86
87 \normalsize % Choose the normalsize font.
88
89
90 % ****************************************
91 % * PAGE LAYOUT *
92 % ****************************************
93 %
94 % All margin dimensions measured from a point one inch from top and side
95 % of page. A little extra (0.1 in) is added on each side to ensure that
96 % the text will fall within the UCLA thesis margin limits even if photo-
97 % copying enlarges or misaligns it slightly.
98
b7588b9 @jheidemann margin tweaking;
jheidemann authored
99 %
100 % According to the Feb. 1995 revision of RfTaDP,
101 % margins are to be 1.5'' left, 1'' top and right, and 1.5'' bottom.
102 % I've checked these margins with dvips 5.58 output to a LaserJet IV
103 % and they matched. -johnh, 20-Jun-95
104 %
105
232d150 @jheidemann Initial revision
jheidemann authored
106 % SIDE MARGINS:
a46f6ec @johncolby Margins changed to 1 inch
johncolby authored
107 %\oddsidemargin 0.65in % Note that \oddsidemargin = \evensidemargin
108 %\evensidemargin 0.65in % these are added to the 1 inch margin.
232d150 @jheidemann Initial revision
jheidemann authored
109
110 % VERTICAL SPACING:
111 % Top of page:
a46f6ec @johncolby Margins changed to 1 inch
johncolby authored
112 %\topmargin 0.15in % Nominal distance from top of page to top
232d150 @jheidemann Initial revision
jheidemann authored
113 % of box containing running head.
114 \headheight 0pt % Height of box containing running head.
115 \headsep 0pt % Space between running head and text.
116 % \topskip = 10pt % '\baselineskip' for first line of page.
117 % Bottom of page:
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
118 % johnh: footheight unused
119 % \footheight 12pt % Height of box containing running foot.
a46f6ec @johncolby Margins changed to 1 inch
johncolby authored
120 \footskip 0.25in % Distance from baseline of box containing
1a18007 @jheidemann footskip changed
jheidemann authored
121 % foot to baseline of last line of text.
122 % johnh: footskip -> 0.8in from 0.6in to meet RFTADP guidelines
123 % (probably with LaTeX209 footheight was added to footskip).
232d150 @jheidemann Initial revision
jheidemann authored
124
125 % DIMENSION OF TEXT:
126
a46f6ec @johncolby Margins changed to 1 inch
johncolby authored
127 \textheight 9in % Height of text (including footnotes and fig-
232d150 @jheidemann Initial revision
jheidemann authored
128 % ures, excluding running head and foot).
a46f6ec @johncolby Margins changed to 1 inch
johncolby authored
129 \textwidth 6.5in % Width of text line.
232d150 @jheidemann Initial revision
jheidemann authored
130
131 % A \raggedbottom command causes 'ragged bottom' pages: pages set to
132 % natural height instead of being stretched to exactly \textheight.
133
134 % FOOTNOTES:
135
136 \footnotesep 8.4pt % Height of strut placed at the beginning of every
137 % footnote = height of normal \footnotesize strut,
138 % so no extra space between footnotes.
139
140 \skip\footins 10.8pt plus 9pt minus 2pt % Space between last line of
141 % text & top of first footnote.
142
143 % FLOATS: (a float is something like a figure or table)
144 %
145 % FOR FLOATS ON A TEXT PAGE:
146 %
147 % ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
148 \floatsep 14pt plus 2pt minus 4pt % Space between adjacent floats moved
149 % to top or bottom of text page.
150 \textfloatsep 20pt plus 2pt minus 4pt % Space between main text and floats
151 % at top or bottom of page.
152 \intextsep 14pt plus 4pt minus 4pt % Space between in-text figures and
153 % text.
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
154 % johnh: \@maxsep unused
155 % \@maxsep 20pt % The maximum of \floatsep,
232d150 @jheidemann Initial revision
jheidemann authored
156 % \textfloatsep and \intextsep (minus
157 % the stretch and shrink).
158
159 % FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
160 % ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
161 \@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
162 % 0pt plus ...)
163 \@fpsep 10pt plus 2fil % Space between floats on float page/column.
164 \@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
165 % 0pt plus ... )
166
167
168 % ****************************************
169 % * PARAGRAPHING *
170 % ****************************************
171 %
172 \parskip 4pt plus 1pt % Extra vertical space between paragraphs.
173 \parindent 1.5em % Width of paragraph indentation.
174 \topsep 10pt plus 4pt minus 6pt % Extra vertical space, in addition to
175 % \parskip, added above and below list and
176 % paragraphing environments.
177 \partopsep 3pt plus 2pt minus 2pt % Extra vertical space, in addition to
178 % \parskip and \topsep, added when user
179 % leaves blank line before environment.
180 \itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition to
181 % \parskip, added between list items.
182
183 % The following page-breaking penalties are defined
184
185 \@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
186 \@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
187 \@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
188
189 \@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
190 \@endparpenalty -\@lowpenalty % After a list or paragraph environment.
191 \@itempenalty -\@lowpenalty % Between list items.
192
193 % \clubpenalty % 'Club line' at bottom of page.
194 % \widowpenalty % 'Widow line' at top of page.
195 % \displaywidowpenalty % Math display widow line.
196 % \predisplaypenalty % Breaking before a math display.
197 % \postdisplaypenalty % Breaking after a math display.
198 % \interlinepenalty % Breaking at a line within a paragraph.
199 % \brokenpenalty % Breaking after a hyphenated line.
200
201
202 % ****************************************
203 % * CHAPTERS AND SECTIONS *
204 % ****************************************
205 %
206
207 \def\part{\cleardoublepage % Starts new page.
208 \thispagestyle{plain} % Page style of part page is 'plain'
209 \@tempswafalse % @tempswa := false
210 \hbox{}\vfil % Add fil glue to center title
211 \bgroup \centering % BEGIN centering
212 \secdef\@part\@spart}
213
214 \def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
215 \refstepcounter{part} % THEN step part counter
216 \addcontentsline{toc}{part}{\thepart % add toc line
217 \hspace{1em}#1}\else % ELSE add unnumbered line
218 \addcontentsline{toc}{part}{#1}\fi % FI
219 \markboth{}{}
220 \ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
221 \normalsize\bfseries Part \thepart % THEN Print 'Part' and number
232d150 @jheidemann Initial revision
jheidemann authored
222 \par % in \normalsize bold.
223 \vskip 20pt \fi % Add space before title.
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
224 \huge \bfseries % FI
232d150 @jheidemann Initial revision
jheidemann authored
225 #1\@endpart} % Print Title in \huge bold.
226
227 % \@endpart finishes the part page
228 %
229 \def\@endpart{\par\egroup % END centering
230 \vfil\newpage % End page with 1fil glue.
231 \if@tempswa % IF @tempswa = true
232 \twocolumn % THEN \twocolumn
233 \fi} % FI
234
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
235 \def\@spart#1{\normalsize \bfseries % Print title in \normalsize boldface
232d150 @jheidemann Initial revision
jheidemann authored
236 #1\@endpart}
237
238 % \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
239 %
240
241 \def\@makechapterhead#1{ % Heading for \chapter command
242 \vspace*{20pt} % Space at top of text page.
243 { \parindent 0pt \raggedright
244 \ifnum \c@secnumdepth >\m@ne % IF secnumdepth > -1 THEN
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
245 \centering \Large\bfseries \@chapapp{} \thechapter % Print 'CHAPTER' and number.
232d150 @jheidemann Initial revision
jheidemann authored
246 \par
247 \vskip 10pt % Space between number and title.
248 \fi
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
249 \centering \Large\bfseries % Title.
232d150 @jheidemann Initial revision
jheidemann authored
250 #1\par
251 \nobreak % TeX penalty to prevent page break.
252 \vskip 20pt % Space between title and text.
253 } }
254
255 % \@makeschapterhead {TEXT} : Makes the heading for the \chapter* command.
256 %
257
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
258 \def\@makeschapterhead#1{ % Heading for \chapter* command
259 % \vspace*{20pt} % Space at top of page.
232d150 @jheidemann Initial revision
jheidemann authored
260 { \parindent 0pt \raggedright
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
261 \centering \large \scshape % Title.
232d150 @jheidemann Initial revision
jheidemann authored
262 #1\par
263 \nobreak % TeX penalty to prevent page break.
264 \vskip 20pt % Space between title and text.
265 } }
266
267 % \secdef{UNSTARCMDS}{STARCMDS} :
268 % When defining a \chapter or \section command without using
269 % \@startsection, you can use \secdef as follows:
270 % \def\chapter { ... \secdef \CMDA \CMDB }
271 % \def\CMDA [#1]#2{ ... % Command to define \chapter[...]{...}
272 % \def\CMDB #1{ ... % Command to define \chapter*{...}
273
274 \def\chapter{\clearpage % Starts new page.
275 \thispagestyle{plain} % Page style of chapter page is 'plain'
276 \global\@topnum\z@ % Prevents figures from going at top of page.
277 \@afterindentfalse % Suppress indent in first paragraph.
278 \secdef\@chapter\@schapter} % Change to \@afterindenttrue to indent.
279
280 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
281 \refstepcounter{chapter}
282 \typeout{\@chapapp\space\thechapter.}
283 \addcontentsline{toc}{chapter}{\protect
284 \numberline{\thechapter}#1}\else
285 \addcontentsline{toc}{chapter}{#1}\fi
286 \chaptermark{#1}
287 \addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
288 \addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
289 \@makechapterhead{#2}
290 \@afterheading} % Routine called after chapter and
291 % section heading.
292
293 \def\@schapter#1{\@makeschapterhead{#1}
294 \@afterheading}
295
296 % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
297 % optional * [ALTHEADING]{HEADING}
298 % Generic command to start a section.
299 % NAME : e.g., 'subsection'
300 % LEVEL : a number, denoting depth of section -- e.g., chapter=1,
301 % section = 2, etc. A section number will be printed if
302 % and only if LEVEL < or = the value of the secnumdepth
303 % counter.
304 % INDENT : Indentation of heading from left margin
305 % BEFORESKIP : Absolute value = skip to leave above the heading.
306 % If negative, then paragraph indent of text following
307 % heading is suppressed.
308 % AFTERSKIP : if positive, then skip to leave below heading,
309 % else - skip to leave to right of run-in heading.
310 % STYLE : commands to set style
311 % If '*' missing, then increments the counter. If it is present, then
312 % there should be no [ALTHEADING] argument. A sectioning command
313 % is normally defined to \@startsection + its first six arguments.
314
b7588b9 @jheidemann margin tweaking;
jheidemann authored
315 \ifthenelse{\boolean{hyphenatetitles}}{%
316 \newcommand{\TitleHyphenation}{}%
317 }{%
318 \newcommand{\TitleHyphenation}{%
319 \pretolerance=10000%
320 \hyphenpenalty=200%
321 \raggedright}%
322 }
323
232d150 @jheidemann Initial revision
jheidemann authored
324 \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus 1ex minus
b7588b9 @jheidemann margin tweaking;
jheidemann authored
325 .2ex}{2.3ex plus .2ex}{\large\bfseries\TitleHyphenation}}
232d150 @jheidemann Initial revision
jheidemann authored
326 \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus 1ex minus
b7588b9 @jheidemann margin tweaking;
jheidemann authored
327 .2ex}{1.5ex plus .2ex}{\normalsize\bfseries\TitleHyphenation}}
232d150 @jheidemann Initial revision
jheidemann authored
328 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
b7588b9 @jheidemann margin tweaking;
jheidemann authored
329 1ex minus .2ex}{1.5ex plus .2ex}{\normalsize\bfseries\TitleHyphenation}}
330 % Because \{sub,}paragraph are in-line, we allow hyphenation always.
232d150 @jheidemann Initial revision
jheidemann authored
331 \def\paragraph{\@startsection
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
332 {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bfseries}}
232d150 @jheidemann Initial revision
jheidemann authored
333 \def\subparagraph{\@startsection
334 {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
0a92d96 @jheidemann *** empty log message ***
jheidemann authored
335 .2ex}{-1em}{\normalsize\bfseries}}
232d150 @jheidemann Initial revision
jheidemann authored
336
337 % Default initializations of \...mark commands. (See below for their
338 % us in defining page styles.
339 %
340
341 \def\chaptermark#1{}
342 % \def\sectionmark#1{} % Preloaded definitions
343 % \def\subsectionmark#1{}
344 % \def\subsubsectionmark#1{}
345 % \def\paragraphmark#1{}
346 % \def\subparagraphmark#1{}
347
348 % The value of the counter secnumdepth gives the depth of the
349 % highest-level sectioning command that is to produce section numbers.
350 %
351
352 \setcounter{secnumdepth}{3}
353
354 % APPENDIX
355 %
356 % The \appendix command must do the following:
357 % -- reset the chapter counter to zero
358 % -- set \@chapapp to Appendix (for messages)
359 % -- redefine the chapter counter to produce appendix numbers
360 % -- reset the section counter to zero
361 % -- redefine the \chapter command if appendix titles and headings are
362 % to look different from chapter titles and headings.
363
364 \def\appendix{\par
365 \setcounter{chapter}{0}
366 \setcounter{section}{0}
367 \def\@chapapp{APPENDIX}
368 \def\thechapter{\Alph{chapter}}}
369
370
371 % ****************************************
372 % * LISTS *
373 % ****************************************
374 %
375
376 % The following commands are used to set the default values for the list
377 % environment's parameters. See the LaTeX manual for an explanation of
378 % the meanings of the parameters. Defaults for the list environment are
379 % set as follows. First, \rightmargin, \listparindent and \itemindent
380 % are set to 0pt. Then, for a Kth level list, the command \@listK is
381 % called, where 'K' denotes 'i', 'ii', ... , 'vi'. (I.e., \@listiii is
382 % called for a third-level list.) By convention, \@listK should set
383 % \leftmargin to \leftmarginK.
384 %
385 % For efficiency, level-one list's values are defined at top level, and
386 % \@listi is defined to set only \leftmargin.
387
388 \leftmargini 2.5em
389 \leftmarginii 2.2em % > \labelsep + width of '(m)'
390 \leftmarginiii 1.87em % > \labelsep + width of 'vii.'
391 \leftmarginiv 1.7em % > \labelsep + width of 'M.'
392 \leftmarginv 1em
393 \leftmarginvi 1em
394
395 \leftmargin\leftmargini
396 \labelwidth\leftmargini\advance\labelwidth-\labelsep
397 \labelsep .5em
398 \parsep 5pt plus 2.5pt minus 1pt
399
b7588b9 @jheidemann margin tweaking;
jheidemann authored
400 \def\@listI{\leftmargin\leftmargini}
401 \let\@listi\@listI
232d150 @jheidemann Initial revision
jheidemann authored
402
403 \def\@listii{\leftmargin\leftmarginii
404 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
405 \topsep 5pt plus 2.5pt minus 1pt
406 \parsep 2.5pt plus 1pt minus 1pt
407 \itemsep \parsep}
408
409 \def\@listiii{\leftmargin\leftmarginiii
410 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
411 \topsep 2.5pt plus 1pt minus 1pt
412 \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
413 \itemsep \topsep}
414
415 \def\@listiv{\leftmargin\leftmarginiv
416 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
417
418 \def\@listv{\leftmargin\leftmarginv
419 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
420
421 \def\@listvi{\leftmargin\leftmarginvi
422 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
423
Something went wrong with that request. Please try again.