-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathunh11.sty
280 lines (225 loc) · 11.5 KB
/
unh11.sty
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
%==============================================================
% WARNING: This file created from the "DOC" file: TEX$LATEX:UNH11.DOC
% Make edits to that file and then use the DOC_TO_STY
% utility to create a new version of this file.
%==============================================================
\everyjob{\typeout{Document Style `UNH11', Released 12 October 1989}}
\immediate\write10{Document Style `UNH11', Released 12 October 1989}
%%%%%%%%%%%%%%%%%
\def\ssp{\def\baselinestretch{1.0}\large\normalsize}
\def\dsp{\def\baselinestretch{1.37}\large\normalsize}
%%%%%%%%%%%%%%%%%
\lineskip 1pt % \lineskip is 1pt for all font sizes.
\normallineskip 1pt
\def\baselinestretch{1}
\def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
\abovedisplayskip 11pt plus3pt minus6pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt%
\belowdisplayshortskip 6.5pt plus3.5pt minus3pt}
\def\small{\@setsize\small{12pt}\xpt\@xpt
\abovedisplayskip 10pt plus2pt minus5pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt%
\belowdisplayshortskip 6pt plus3pt minus3pt
\def\@listi{\topsep 6pt plus 2pt minus 2pt\parsep 3pt plus 2pt minus 1pt
\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{\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}}
\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 % Choose the normalsize font.
\skip\footins 10pt plus 4pt minus 2pt % Space between last line of text and
% top of first footnote.
\floatsep 18pt plus 2pt minus 2pt % (UNH): [12] Space between adjacent
% floats moved to top or bottom of text page.
\textfloatsep 30pt plus 2pt minus 4pt % (UNH): [20] Space between main text
% and floats at top or bottom of page.
\intextsep 30pt plus 2pt minus 2pt % (UNH): [12] Space between in-text
% figures and text.
\@ifundefined{@maxsep}{\newdimen\@maxsep}{} % this is for LaTeX2e
\@maxsep 30pt % (UNH): [20] The maximum of \floatsep,
% \textfloatsep and \intextsep (minus
% the stretch and shrink).
\dblfloatsep 18pt plus 2pt minus 2pt % (UNH): [12] Same as \floatsep for
% double-column figures in two-column
% mode.
\dbltextfloatsep 30pt plus 2pt minus 4pt % (UNH): [20] \textfloatsep for
% double-column floats.
\@ifundefined{@dblmaxsep}{\newdimen\@dblmaxsep}{} % this is for LaTeX2e
\@dblmaxsep 30pt % (UNH): [20] The maximum of
% \dblfloatsep and \dbltexfloatsep.
\@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
% 0pt plus ...)
\@fpsep 12pt plus 2fil % (UNH): [12] Space between floats on float
% page/column.
\@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
% 0pt plus ... )
\@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
\@dblfpsep 12pt plus 2fil% (UNH): [12] Space between floats on float page.
\@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
% 0pt plus ... )
\marginparpush 5pt % Minimum vertical separation between two marginal
% notes.
\parskip 0pt plus 1pt % Extra vertical space between paragraphs.
\parindent 17pt % Width of paragraph indentation.
\topsep 9pt plus 3pt minus 5pt % Extra vertical space, in addition to
% \parskip, added above and below list and
% paragraphing environments.
\partopsep 3pt plus 1pt minus 2pt % Extra vertical space, in addition to
% \parskip and \topsep, added when user
% leaves blank line before environment.
\itemsep 4.5pt plus 2pt minus 1pt % Extra vertical space, in addition to
% \parskip, added between list items.
\@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.
\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}
{Part \thepart
\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 \bf % FI
#1\@endpart} % Print Title in \Huge bold.
\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 \bf % Print title in \huge boldface
#1\@endpart}
%%%%% Establish chapter and section font
%% This one is bold and sans serif (simple)
%\def\headfont{ \bf \sf }
%% This one is bold and normal -- matches font of document
\def\headfont{ \bf }
\def\@makechapterhead#1{ % Heading for \chapter command
\vspace*{0pt} % (UNH): [50] Space at top of text page.
{ \parindent 0pt \raggedright
\ifnum \c@secnumdepth >\m@ne % IF secnumdepth > -1 THEN
\begin{center} % UNH - Center the chapter headings.
\LARGE \headfont \@chapapp{} \thechapter % Print 'Chapter' and number.
\par
\vskip 10pt \fi % (UNH):[20] Space between Chap & title.
\Large \headfont
#1\par
\end{center} % UNH - end the centering...
\nobreak % TeX penalty to prevent page break.
\vskip 20pt % (UNH):[40] Space between title & text.
} }
\def\@makeschapterhead#1{ % Heading for \chapter* command
\vspace*{0pt} % (UNH):[50] Space at top of page.
{ \parindent 0pt \raggedright
\begin{center} % UNH - Center the chapter headings.
\LARGE \headfont % Title.
#1\par
\end{center} % UNH - end the centering...
\nobreak % TeX penalty to prevent page break.
\vskip 20pt % (UNH):[40] Space between title & text.
} }
\def\chapter{\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\@chapter\@schapter} % to \@afterindenttrue to have indent.
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}
\typeout{\@chapapp\space\thechapter}
\addcontentsline{toc}{chapter}{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}
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
-.2ex}{2.3ex plus .2ex}{\Large\headfont}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
-.2ex}{1.5ex plus .2ex}{\large\headfont}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\headfont}}
\def\paragraph{\@startsection
{paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
\def\subparagraph{\@startsection
{subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
.2ex}{-1em}{\normalsize\bf}}
\def\chaptermark#1{}
\setcounter{secnumdepth}{2}
\def\appendix{\par
\setcounter{chapter}{0}
\setcounter{section}{0}
\def\@chapapp{Appendix}
\def\thechapter{\Alph{chapter}}}
\leftmargini 2.5em
\leftmarginii 2.2em % > \labelsep + width of '(m)'
\leftmarginiii 1.87em % > \labelsep + width of 'vii.'
\leftmarginiv 1.7em % > \labelsep + width of 'M.'
\leftmarginv 1em
\leftmarginvi 1em
\leftmargin\leftmargini
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\labelsep .5em
\parsep 4.5pt plus 2pt minus 1pt
\def\@listi{\leftmargin\leftmargini}
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 4.5pt plus 2pt minus 1pt
\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep 2pt 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}
%% \def\l@figure{\@dottedtocline{1}{2.0em}{2.3em}}
\def\l@figure{\@dottedtocline{1}{2.0em}{3.3em}}
\def\l@table{\@dottedtocline{1}{2.0em}{3.3em}}