1 |
5 |
guanucolui |
% UNIVERSITY OF CALGARY THESIS DOCUMENT CLASS OPTION -- thes12.clo 98/03/01
|
2 |
|
|
% for LaTeX version 2e
|
3 |
|
|
% Modified N. Mancell 98/03/01 formerly thes12.sty
|
4 |
|
|
|
5 |
|
|
% Modified (thes12.sty) D.Teale 92-09-23 To fix typeout for altchapter
|
6 |
|
|
|
7 |
|
|
% ****************************************
|
8 |
|
|
% * FONTS *
|
9 |
|
|
% ****************************************
|
10 |
|
|
%
|
11 |
|
|
|
12 |
|
|
\lineskip 1pt % \lineskip is 1pt for all font sizes.
|
13 |
|
|
\normallineskip 1pt
|
14 |
|
|
\def\baselinestretch{1}
|
15 |
|
|
|
16 |
|
|
% All font selection commands have been revised to conform with
|
17 |
|
|
% Latex2e font selection commands (NM 98/03/01).
|
18 |
|
|
%
|
19 |
|
|
% Each size-changing command \SIZE executes the command
|
20 |
|
|
% \fontsize\@FONTSIZE{BASELINESKIP}\selectfont
|
21 |
|
|
% where:
|
22 |
|
|
% BASELINESKIP = Normal value of \baselineskip for that size. (Actual
|
23 |
|
|
% value will be \baselinestretch * BASELINESKIP.)
|
24 |
|
|
%
|
25 |
|
|
% \@FONTSIZE = Name of font-size command. The currently available
|
26 |
|
|
% (preloaded) font sizes are: \@vpt (5pt), \@vipt (6pt),
|
27 |
|
|
% \@viipt (etc.), \@viiipt, \@ixpt, \@xpt, \@xipt, \@xiipt,
|
28 |
|
|
% \@xivpt, \@xviipt, \@xxpt, \@xxvpt. These are defined
|
29 |
|
|
% ltfss.dtx.
|
30 |
|
|
%
|
31 |
|
|
% For reasons of efficiency that needn't concern the designer,
|
32 |
|
|
% the document style defines \@normalsize instead of \normalsize . This is
|
33 |
|
|
% done only for \normalsize, not for any other size-changing commands.
|
34 |
|
|
|
35 |
|
|
%\renewcommand{\normalsize}{\fontsize\@xiipt{14.5}\selectfont% (nm2007)
|
36 |
|
|
\renewcommand{\normalsize}{\fontsize{12pt}{14.5pt}\selectfont %(nm2007 added)
|
37 |
|
|
\abovedisplayskip 12\p@ plus3\p@ minus7\p@
|
38 |
|
|
\belowdisplayskip \abovedisplayskip
|
39 |
|
|
\abovedisplayshortskip \z@ plus3\p@
|
40 |
|
|
\belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@}
|
41 |
|
|
|
42 |
|
|
\newcommand{\small}{\fontsize\@xipt{13.6}\selectfont%
|
43 |
|
|
\abovedisplayskip 11\p@ plus3\p@ minus6\p@
|
44 |
|
|
\belowdisplayskip \abovedisplayskip
|
45 |
|
|
\abovedisplayshortskip \z@ plus3\p@
|
46 |
|
|
\belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@
|
47 |
|
|
\def\@listi{\parsep 4.5\p@ plus 2\p@ minus 1\p@
|
48 |
|
|
\itemsep \parsep
|
49 |
|
|
\topsep 9\p@ plus 3\p@ minus 5\p@}}
|
50 |
|
|
|
51 |
|
|
\newcommand{\footnotesize}{\fontsize\@xpt{12}\selectfont%
|
52 |
|
|
\abovedisplayskip 10\p@ plus2\p@ minus5\p@
|
53 |
|
|
\belowdisplayskip \abovedisplayskip
|
54 |
|
|
\abovedisplayshortskip \z@ plus3\p@
|
55 |
|
|
\belowdisplayshortskip 6\p@ plus3\p@ minus3\p@
|
56 |
|
|
\def\@listi{\topsep 6\p@ plus 2\p@ minus 2\p@\parsep 3\p@ plus 2\p@ minus 1\p@
|
57 |
|
|
\itemsep \parsep}}
|
58 |
|
|
|
59 |
|
|
\newcommand{\scriptsize}{\fontsize\@viiipt{9.5pt}\selectfont}
|
60 |
|
|
\newcommand{\tiny}{\fontsize\@vipt{7pt}\selectfont}
|
61 |
|
|
\newcommand{\large}{\fontsize\@xivpt{18pt}\selectfont}
|
62 |
|
|
\newcommand{\Large}{\fontsize\@xviipt{22pt}\selectfont}
|
63 |
|
|
\newcommand{\LARGE}{\fontsize\@xxpt{25pt}\selectfont}
|
64 |
|
|
\newcommand{\huge}{\fontsize\@xxvpt{30pt}\selectfont}
|
65 |
|
|
\newcommand{\Huge}{\fontsizelet\@xxvpt{30pt}\selectfont}
|
66 |
|
|
|
67 |
|
|
% The shortform font selection commands are not defined in LaTeX2e.
|
68 |
|
|
% This defines them so that they do non-orthogonal font selection,
|
69 |
|
|
% which is useful if you are in the middle of converting a document
|
70 |
|
|
% from 2.09. These commands are no longer used internally in this
|
71 |
|
|
% class. (NM 98/03/01)
|
72 |
|
|
|
73 |
|
|
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
74 |
|
|
\DeclareOldFontCommand{\sf}{\normalfont\sfffamily}{\mathsf}
|
75 |
|
|
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
|
76 |
|
|
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
|
77 |
|
|
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
|
78 |
|
|
\newcommand{\sl}{\slshape}
|
79 |
|
|
\newcommand{\sc}{\scshape}
|
80 |
|
|
|
81 |
|
|
\normalsize % Choose the normalsize font.
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
% ****************************************
|
85 |
|
|
% * PAGE LAYOUT *
|
86 |
|
|
% ****************************************
|
87 |
|
|
%
|
88 |
|
|
% All margin dimensions measured from a point one inch from top and side
|
89 |
|
|
% of page.
|
90 |
|
|
|
91 |
|
|
% SIDE MARGINS:
|
92 |
|
|
\if@twoside % Values for two-sided printing:
|
93 |
|
|
\oddsidemargin 21pt % Left margin on odd-numbered pages.
|
94 |
|
|
\evensidemargin 59pt % Left margin on even-numbered pages.
|
95 |
|
|
\marginparwidth 85pt % Width of marginal notes.
|
96 |
|
|
\else % Values for one-sided printing:
|
97 |
|
|
\oddsidemargin 39.5pt % Note that \oddsidemargin = \evensidemargin
|
98 |
|
|
\evensidemargin 39.5pt
|
99 |
|
|
\marginparwidth 68pt
|
100 |
|
|
\fi
|
101 |
|
|
\marginparsep 10pt % Horizontal space between outer margin and
|
102 |
|
|
% marginal note
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
% VERTICAL SPACING:
|
106 |
|
|
% Top of page:
|
107 |
|
|
\topmargin 0pt % Nominal distance from top of page to top of
|
108 |
|
|
% box containing running head.
|
109 |
|
|
\headheight 12pt % Height of box containing running head.
|
110 |
|
|
\headsep 25pt % Space between running head and text.
|
111 |
|
|
% \topskip = 10pt % '\baselineskip' for first line of page.
|
112 |
|
|
% Bottom of page:
|
113 |
|
|
%\footheight 12pt % (NM 98/03/01)Height of box containing
|
114 |
|
|
% running foot.
|
115 |
|
|
\footskip 30pt % Distance from baseline of box containing foot
|
116 |
|
|
% to baseline of last line of text.
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
% DIMENSION OF TEXT:
|
120 |
|
|
|
121 |
|
|
\textheight 580.5pt % Height of text (including footnotes and figures,
|
122 |
|
|
% excluding running head and foot).
|
123 |
|
|
\textwidth 429.5pt % Width of text line.
|
124 |
|
|
% For two-column mode:
|
125 |
|
|
\columnsep 10pt % Space between columns
|
126 |
|
|
\columnseprule 0pt % Width of rule between columns.
|
127 |
|
|
|
128 |
|
|
% A \raggedbottom command causes 'ragged bottom' pages: pages set to
|
129 |
|
|
% natural height instead of being stretched to exactly \textheight.
|
130 |
|
|
|
131 |
|
|
% FOOTNOTES:
|
132 |
|
|
|
133 |
|
|
\footnotesep 8.4pt % Height of strut placed at the beginning of every
|
134 |
|
|
% footnote = height of normal \footnotesize strut,
|
135 |
|
|
% so no extra space between footnotes.
|
136 |
|
|
|
137 |
|
|
\skip\footins 10.8pt plus 4pt minus 2pt % Space between last line of text and
|
138 |
|
|
% top of first footnote.
|
139 |
|
|
|
140 |
|
|
% FLOATS: (a float is something like a figure or table)
|
141 |
|
|
%
|
142 |
|
|
% FOR FLOATS ON A TEXT PAGE:
|
143 |
|
|
%
|
144 |
|
|
% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
|
145 |
|
|
\floatsep 14pt plus 2pt minus 4pt % Space between adjacent floats moved
|
146 |
|
|
% to top or bottom of text page.
|
147 |
|
|
\textfloatsep 20pt plus 2pt minus 4pt % Space between main text and floats
|
148 |
|
|
% at top or bottom of page.
|
149 |
|
|
\intextsep 14pt plus 4pt minus 4pt % Space between in-text figures and
|
150 |
|
|
% text.
|
151 |
|
|
%\@maxsep 20pt % (NM 98/03/01)The maximum of
|
152 |
|
|
%\floatsep,
|
153 |
|
|
% \textfloatsep and \intextsep (minus
|
154 |
|
|
% the stretch and shrink).
|
155 |
|
|
% TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
|
156 |
|
|
\dblfloatsep 14pt plus 2pt minus 4pt % Same as \floatsep for double-column
|
157 |
|
|
% figures in two-column mode.
|
158 |
|
|
\dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column
|
159 |
|
|
% floats.
|
160 |
|
|
%\@dblmaxsep 20pt % (NM98/03/01)The maximum of
|
161 |
|
|
% \dblfloatsep and
|
162 |
|
|
% \dbltexfloatsep.
|
163 |
|
|
|
164 |
|
|
% FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
|
165 |
|
|
% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
|
166 |
|
|
\@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
|
167 |
|
|
% 0pt plus ...)
|
168 |
|
|
\@fpsep 10pt plus 2fil % Space between floats on float page/column.
|
169 |
|
|
\@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
|
170 |
|
|
% 0pt plus ... )
|
171 |
|
|
|
172 |
|
|
% DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
|
173 |
|
|
\@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
|
174 |
|
|
\@dblfpsep 10pt plus 2fil % Space between floats on float page.
|
175 |
|
|
\@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
|
176 |
|
|
% 0pt plus ... )
|
177 |
|
|
% MARGINAL NOTES:
|
178 |
|
|
%
|
179 |
|
|
\marginparpush 7pt % Minimum vertical separation between two marginal
|
180 |
|
|
% notes.
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
% ****************************************
|
184 |
|
|
% * PARAGRAPHING *
|
185 |
|
|
% ****************************************
|
186 |
|
|
%
|
187 |
|
|
\parskip 0pt plus 1pt % Extra vertical space between paragraphs.
|
188 |
|
|
\parindent 1.5em % Width of paragraph indentation.
|
189 |
|
|
\topsep 10pt plus 4pt minus 6pt % Extra vertical space, in addition to
|
190 |
|
|
% \parskip, added above and below list and
|
191 |
|
|
% paragraphing environments.
|
192 |
|
|
\partopsep 3pt plus 2pt minus 2pt % Extra vertical space, in addition to
|
193 |
|
|
% \parskip and \topsep, added when user
|
194 |
|
|
% leaves blank line before environment.
|
195 |
|
|
\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition to
|
196 |
|
|
% \parskip, added between list items.
|
197 |
|
|
|
198 |
|
|
% The following page-breaking penalties are defined
|
199 |
|
|
|
200 |
|
|
\@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
|
201 |
|
|
\@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
|
202 |
|
|
\@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
|
203 |
|
|
|
204 |
|
|
\@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
|
205 |
|
|
\@endparpenalty -\@lowpenalty % After a list or paragraph environment.
|
206 |
|
|
\@itempenalty -\@lowpenalty % Between list items.
|
207 |
|
|
|
208 |
|
|
% \clubpenalty % 'Club line' at bottom of page.
|
209 |
|
|
% \widowpenalty % 'Widow line' at top of page.
|
210 |
|
|
% \displaywidowpenalty % Math display widow line.
|
211 |
|
|
% \predisplaypenalty % Breaking before a math display.
|
212 |
|
|
% \postdisplaypenalty % Breaking after a math display.
|
213 |
|
|
% \interlinepenalty % Breaking at a line within a paragraph.
|
214 |
|
|
% \brokenpenalty % Breaking after a hyphenated line.
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
% ****************************************
|
218 |
|
|
% * CHAPTERS AND SECTIONS *
|
219 |
|
|
% ****************************************
|
220 |
|
|
%
|
221 |
|
|
% \sty@SECTION{#1}{#2} is defined to be the type, size, placement of section titles
|
222 |
|
|
\def\setsectionstyle#1#2{\@ifundefined{sty@#1}%
|
223 |
|
|
{\@warning{sectionstyle `\string#1' on page \thepage \space undefined}}%
|
224 |
|
|
{\@namedef{sty@#1}{#2}}}
|
225 |
|
|
%{\edef\@tempsty{\@nameuse{sty@#1}}\show\@tempsty%
|
226 |
|
|
%\let\@tempstya\@tempsty\show\@tempstya\@namedef{sty@#1}{\@nameuse{@tempstya}#2}}}
|
227 |
|
|
% initialization of \sty@SECTION
|
228 |
|
|
\def\sty@chapter{\Large\centering} %removed \bfseries 2006nm
|
229 |
|
|
\def\sty@section{\large} %removed \bfseries 2006nm
|
230 |
|
|
\def\sty@subsection{\normalsize} %removed \bfseries 2006nm
|
231 |
|
|
\def\sty@subsubsection{\normalsize} %removed \bfseries after \normalsize 2006nm
|
232 |
|
|
\def\sty@paragraph{\normalsize} %removed \bfseries 2006nm
|
233 |
|
|
\def\sty@subparagraph{\normalsize} %removed \bfseries 2006nm
|
234 |
|
|
|
235 |
|
|
\def\part{\cleardoublepage % Starts new page.
|
236 |
|
|
\thispagestyle{plain} % Page style of part page is 'plain'
|
237 |
|
|
\if@twocolumn % IF two-column style
|
238 |
|
|
\onecolumn % THEN \onecolumn
|
239 |
|
|
\@tempswatrue % @tempswa := true
|
240 |
|
|
\else \@tempswafalse % ELSE @tempswa := false
|
241 |
|
|
\fi % FI
|
242 |
|
|
\hbox{}\vfil % Add fil glue to center title
|
243 |
|
|
\bgroup \centering % BEGIN centering
|
244 |
|
|
\secdef\@part\@spart}
|
245 |
|
|
|
246 |
|
|
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
|
247 |
|
|
\refstepcounter{part} % THEN step part counter
|
248 |
|
|
\addcontentsline{toc}{part}{\thepart % add toc line
|
249 |
|
|
\hspace{1em}#1}\else % ELSE add unnumbered line
|
250 |
|
|
\addcontentsline{toc}{part}{#1}\fi % FI
|
251 |
|
|
\markboth{}{}
|
252 |
|
|
\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
|
253 |
|
|
\huge\bf Part \thepart % THEN Print 'Part' and number
|
254 |
|
|
\par % in \huge bold.
|
255 |
|
|
\vskip 20pt \fi % Add space before title.
|
256 |
|
|
\Huge \bfseries % FI
|
257 |
|
|
#1\@endpart} % Print Title in \Huge bold.
|
258 |
|
|
|
259 |
|
|
% \@endpart finishes the part page
|
260 |
|
|
%
|
261 |
|
|
\def\@endpart{\par\egroup % END centering
|
262 |
|
|
\vfil\newpage % End page with 1fil glue.
|
263 |
|
|
\if@twoside % IF twoside printing
|
264 |
|
|
\hbox{} % THEN Produce totally blank page
|
265 |
|
|
\thispagestyle{empty}
|
266 |
|
|
\newpage
|
267 |
|
|
\fi % FI
|
268 |
|
|
\if@tempswa % IF @tempswa = true
|
269 |
|
|
\twocolumn % THEN \twocolumn
|
270 |
|
|
\fi} % FI
|
271 |
|
|
|
272 |
|
|
\def\@spart#1{\Huge \bfseries % Print title in \huge boldface
|
273 |
|
|
#1\@endpart}
|
274 |
|
|
|
275 |
|
|
% \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
|
276 |
|
|
%
|
277 |
|
|
|
278 |
|
|
\def\@makechapterhead#1{ % Heading for \chapter command
|
279 |
|
|
% \vspace*{12pt} % Space at top of text page.
|
280 |
|
|
{ \parindent 0pt \raggedright
|
281 |
|
|
\ifnum \c@secnumdepth >\m@ne % IF secnumdepth > -1 THEN
|
282 |
|
|
\Large\sty@chapter \@chapapp{} \thechapter % Print 'Chapter'
|
283 |
|
|
% and number.%removed \bfseries 2006nm
|
284 |
|
|
\par
|
285 |
|
|
\vskip 12pt \fi % Space between number and title.
|
286 |
|
|
\Large\sty@chapter % Title.%removed \bfseries 2006nm
|
287 |
|
|
#1\par
|
288 |
|
|
\nobreak % TeX penalty to prevent page break.
|
289 |
|
|
\vskip 24pt % Space between title and text.
|
290 |
|
|
} }
|
291 |
|
|
|
292 |
|
|
% \@makeschapterhead {TEXT} : Makes the heading for the \chapter* command.
|
293 |
|
|
%
|
294 |
|
|
|
295 |
|
|
\def\@makeschapterhead#1{ % Heading for \chapter* command
|
296 |
|
|
% \vspace*{12pt} % Space at top of page.
|
297 |
|
|
{ \parindent 0pt \raggedright
|
298 |
|
|
\Large\sty@chapter % Title.%removed \bfseries 2006nm
|
299 |
|
|
#1\par
|
300 |
|
|
\nobreak % TeX penalty to prevent page break.
|
301 |
|
|
\vskip 24pt % Space between title and text.
|
302 |
|
|
} }
|
303 |
|
|
|
304 |
|
|
% \secdef{UNSTARCMDS}{STARCMDS} :
|
305 |
|
|
% When defining a \chapter or \section command without using
|
306 |
|
|
% \@startsection, you can use \secdef as follows:
|
307 |
|
|
% \def\chapter { ... \secdef \CMDA \CMDB }
|
308 |
|
|
% \def\CMDA [#1]#2{ ... % Command to define \chapter[...]{...}
|
309 |
|
|
% \def\CMDB #1{ ... % Command to define \chapter*{...}
|
310 |
|
|
|
311 |
|
|
\def\chapter{\clearpage % Starts new page.
|
312 |
|
|
\pagestyle{fancy} % Page style of chapter page is 'plain' %changed from \thispagestyle{plain} to pagestyle{fancy}2009nm
|
313 |
|
|
\global\@topnum\z@ % Prevents figures from going at top of page.
|
314 |
|
|
\@afterindentfalse % Suppresses indent in first paragraph. Change
|
315 |
|
|
\secdef\@chapter\@schapter} % to \@afterindenttrue to have indent.
|
316 |
|
|
|
317 |
|
|
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
|
318 |
|
|
\refstepcounter{chapter}
|
319 |
|
|
\typeout{\@chapapp\space\thechapter.}
|
320 |
|
|
\addcontentsline{toc}{chapter}{\protect
|
321 |
|
|
\numberline{\thechapter}#1}\else
|
322 |
|
|
\addcontentsline{toc}{chapter}{#1}\fi
|
323 |
|
|
\chaptermark{#1}
|
324 |
|
|
\addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
|
325 |
|
|
\addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
|
326 |
|
|
\if@twocolumn % Tests for two-column mode.
|
327 |
|
|
\@topnewpage[\@makechapterhead{#2}]
|
328 |
|
|
\else \@makechapterhead{#2}
|
329 |
|
|
\@afterheading % Routine called after chapter and
|
330 |
|
|
\fi} % section heading.
|
331 |
|
|
|
332 |
|
|
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
|
333 |
|
|
\else \@makeschapterhead{#1}
|
334 |
|
|
\@afterheading\fi}
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
% *********************************
|
338 |
|
|
% * ALTERNATE THESIS CHAPTER FORM *
|
339 |
|
|
% *********************************
|
340 |
|
|
\def\altchapter{\clearpage % Starts new page.
|
341 |
|
|
\thispagestyle{plain} % Page style of chapter page is 'plain'
|
342 |
|
|
\global\@topnum\z@ % Prevents figures from going at top of page.
|
343 |
|
|
\@afterindentfalse % Suppresses indent in first paragraph. Change
|
344 |
|
|
\secdef\@altchapter\@saltchapter} % to \@afterindenttrue to have indent.
|
345 |
|
|
|
346 |
|
|
\def\@altchapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
|
347 |
|
|
\typeout{#1}
|
348 |
|
|
\addcontentsline{toc}{chapter}{#1}\else
|
349 |
|
|
\addcontentsline{toc}{chapter}{#1}\fi
|
350 |
|
|
\chaptermark{#1}
|
351 |
|
|
\addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
|
352 |
|
|
\addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
|
353 |
|
|
\if@twocolumn % Tests for two-column mode.
|
354 |
|
|
\@topnewpage[\@makeschapterhead{#2}]
|
355 |
|
|
\else \@makeschapterhead{#2}
|
356 |
|
|
\@afterheading % Routine called after chapter and
|
357 |
|
|
\fi} % section heading.
|
358 |
|
|
|
359 |
|
|
\def\@saltchapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
|
360 |
|
|
\else \@makeschapterhead{#1}
|
361 |
|
|
\@afterheading\fi}
|
362 |
|
|
|
363 |
|
|
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
|
364 |
|
|
% optional * [ALTHEADING]{HEADING}
|
365 |
|
|
% Generic command to start a section.
|
366 |
|
|
% NAME : e.g., 'subsection'
|
367 |
|
|
% LEVEL : a number, denoting depth of section -- e.g., chapter=1,
|
368 |
|
|
% section = 2, etc. A section number will be printed if
|
369 |
|
|
% and only if LEVEL < or = the value of the secnumdepth
|
370 |
|
|
% counter.
|
371 |
|
|
% INDENT : Indentation of heading from left margin
|
372 |
|
|
% BEFORESKIP : Absolute value = skip to leave above the heading.
|
373 |
|
|
% If negative, then paragraph indent of text following
|
374 |
|
|
% heading is suppressed.
|
375 |
|
|
% AFTERSKIP : if positive, then skip to leave below heading,
|
376 |
|
|
% else - skip to leave to right of run-in heading.
|
377 |
|
|
% STYLE : commands to set style
|
378 |
|
|
% If '*' missing, then increments the counter. If it is present, then
|
379 |
|
|
% there should be no [ALTHEADING] argument. A sectioning command
|
380 |
|
|
% is normally defined to \@startsection + its first six arguments.
|
381 |
|
|
|
382 |
|
|
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
|
383 |
|
|
-.2ex}{2.3ex plus .2ex}{\large\sty@section}} %removed \bfseries 2006nm
|
384 |
|
|
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
|
385 |
|
|
-.2ex}{1.0ex plus .2ex}{\normalsize\sty@subsection}} %removed \bfseries 2006nm
|
386 |
|
|
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.12ex plus
|
387 |
|
|
-1ex minus -.2ex}{0.001ex plus .2ex}{\normalsize\sty@subsubsection}} %removed \bfseries 2006nm
|
388 |
|
|
\def\paragraph{\@startsection
|
389 |
|
|
{paragraph}{4}{\z@}{2.25ex plus 1ex minus .2ex}{-1em}{\normalsize\sty@paragraph}} %removed \bfseries 2006nm
|
390 |
|
|
\def\subparagraph{\@startsection
|
391 |
|
|
{subparagraph}{4}{\parindent}{2.25ex plus 1ex minus
|
392 |
|
|
.2ex}{-1em}{\normalsize\sty@subparagraph}} %removed \bfseries 2006nm
|
393 |
|
|
|
394 |
|
|
% Default initializations of \...mark commands. (See below for their
|
395 |
|
|
% us in defining page styles.
|
396 |
|
|
%
|
397 |
|
|
|
398 |
|
|
\def\chaptermark#1{}
|
399 |
|
|
% \def\sectionmark#1{} % Preloaded definitions
|
400 |
|
|
% \def\subsectionmark#1{}
|
401 |
|
|
% \def\subsubsectionmark#1{}
|
402 |
|
|
% \def\paragraphmark#1{}
|
403 |
|
|
% \def\subparagraphmark#1{}
|
404 |
|
|
|
405 |
|
|
% The value of the counter secnumdepth gives the depth of the
|
406 |
|
|
% highest-level sectioning command that is to produce section numbers.
|
407 |
|
|
%
|
408 |
|
|
|
409 |
|
|
\setcounter{secnumdepth}{2}
|
410 |
|
|
|
411 |
|
|
% APPENDIX
|
412 |
|
|
%
|
413 |
|
|
% The \appendix command must do the following:
|
414 |
|
|
% -- reset the chapter counter to zero
|
415 |
|
|
% -- set \@chapapp to Appendix (for messages)
|
416 |
|
|
% -- redefine the chapter counter to produce appendix numbers
|
417 |
|
|
% -- reset the section counter to zero
|
418 |
|
|
% -- redefine the \chapter command if appendix titles and headings are
|
419 |
|
|
% to look different from chapter titles and headings.
|
420 |
|
|
|
421 |
|
|
\def\appendix{\par
|
422 |
|
|
\setcounter{chapter}{0}
|
423 |
|
|
\setcounter{section}{0}
|
424 |
|
|
\def\@chapapp{Appendix}
|
425 |
|
|
\def\thechapter{\Alph{chapter}}}
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
% ****************************************
|
429 |
|
|
% * LISTS *
|
430 |
|
|
% ****************************************
|
431 |
|
|
%
|
432 |
|
|
|
433 |
|
|
% The following commands are used to set the default values for the list
|
434 |
|
|
% environment's parameters. See the LaTeX manual for an explanation of
|
435 |
|
|
% the meanings of the parameters. Defaults for the list environment are
|
436 |
|
|
% set as follows. First, \rightmargin, \listparindent and \itemindent
|
437 |
|
|
% are set to 0pt. Then, for a Kth level list, the command \@listK is
|
438 |
|
|
% called, where 'K' denotes 'i', 'ii', ... , 'vi'. (I.e., \@listiii is
|
439 |
|
|
% called for a third-level list.) By convention, \@listK should set
|
440 |
|
|
% \leftmargin to \leftmarginK.
|
441 |
|
|
%
|
442 |
|
|
% For efficiency, level-one list's values are defined at top level, and
|
443 |
|
|
% \@listi is defined to set only \leftmargin.
|
444 |
|
|
|
445 |
|
|
\leftmargini 2.5em
|
446 |
|
|
\leftmarginii 2.2em % > \labelsep + width of '(m)'
|
447 |
|
|
\leftmarginiii 1.87em % > \labelsep + width of 'vii.'
|
448 |
|
|
\leftmarginiv 1.7em % > \labelsep + width of 'M.'
|
449 |
|
|
\leftmarginv 1em
|
450 |
|
|
\leftmarginvi 1em
|
451 |
|
|
|
452 |
|
|
\leftmargin\leftmargini
|
453 |
|
|
\labelwidth\leftmargini\advance\labelwidth-\labelsep
|
454 |
|
|
\labelsep .5em
|
455 |
|
|
\parsep 5pt plus 2.5pt minus 1pt
|
456 |
|
|
|
457 |
|
|
\def\@listi{\leftmargin\leftmargini}
|
458 |
|
|
|
459 |
|
|
\def\@listii{\leftmargin\leftmarginii
|
460 |
|
|
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
|
461 |
|
|
\topsep 5pt plus 2.5pt minus 1pt
|
462 |
|
|
\parsep 2.5pt plus 1pt minus 1pt
|
463 |
|
|
\itemsep \parsep}
|
464 |
|
|
|
465 |
|
|
\def\@listiii{\leftmargin\leftmarginiii
|
466 |
|
|
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
|
467 |
|
|
\topsep 2.5pt plus 1pt minus 1pt
|
468 |
|
|
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
|
469 |
|
|
\itemsep \topsep}
|
470 |
|
|
|
471 |
|
|
\def\@listiv{\leftmargin\leftmarginiv
|
472 |
|
|
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
|
473 |
|
|
|
474 |
|
|
\def\@listv{\leftmargin\leftmarginv
|
475 |
|
|
\labelwidth\leftmarginv\advance\labelwidth-\labelsep}
|
476 |
|
|
|
477 |
|
|
\def\@listvi{\leftmargin\leftmarginvi
|
478 |
|
|
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
|
479 |
|
|
|
480 |
|
|
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
|