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
|
% jeep.sty, December 20, 1991
% G. W. Stewart
% Department of Computer Science
% University of Maryland
% College Park, MD 20784
%
% stewart@thales.umd.edu
% This is a personal customization of the LaTeX style files
% article (4/16/88) and report (5/26/88). The changes are
% described more fully in the document jeep.tex. Briefly
% the style
%
% 1. Changes the default page sizes to reflect the fact
% that most output will be on 8.5 x 11 inch paper.
%
% 2. Adds commands that allow the casual LaTeX to change
% the formats of chapter, section, and theorem heads.
%
% 3. Adds commands to number equations and theorems within
% sections or subsections.
%
% 4. Makes Lance Berc's three part headers and footers the
% default page style. Adds a macro to underline the
% header.
%
% 5. Changes the default numbering of enumerate to arabic.
% Adds a new enumeration environment in which the items
% are close together.
%
% 6. Adds a command to produce a compact table of contents.
%
% 7. Adds commands to produce symbolic footnote marks and
% equation labels.
%
% 8. Adds commands by John hobby that make \bigl, \bigr, etc.
% work properly.
%
% 9. Adds Lamport's alltt environment--a quasi-verbatim
% environment that recognizes TeX and LaTeX commands.
% Change the default page sizes.
\setlength{\topmargin}{.25in}
\setlength{\textheight}{7.5in}
\setlength{\oddsidemargin}{.375in}
\setlength{\evensidemargin}{.375in}
\setlength{\textwidth}{5.75in}
% Define the command \mychapter{<head1>}{<head2>}. <head1>
% is the text to put in the chapter head if there is a
% chapter number; <head2>, if not.
\def\@chapapp{Chapter}
\def\chapapp{\@chapapp}
\def\mychapter#1#2{
\def\@chaphead##1{#1}
\def\@schaphead##1{#2}
}
\def\@makechapterhead#1{ \vspace*{\chaptopsep} { \parindent 0pt \raggedright
\ifnum \c@secnumdepth >\m@ne \@chaphead{#1} \else \@schaphead{#1} \fi
\par \nobreak \vskip \chapaftersep } }
\def\@makeschapterhead#1{ \vspace*{\chaptopsep} { \parindent 0pt \raggedright
\@schaphead{#1}\par
\nobreak \vskip \chapaftersep } }
% \chaptopsep is the space between the top of the text page and the
% chapter head. \chapaftersep is the space between the chapter
% head and the text.
\newlength{\chaptopsep}
\setlength{\chaptopsep}{.5in}
\newlength{\chapaftersep}
\setlength{\chapaftersep}{.5in}
% Default chapter headings.
\mychapter{\LARGE \sc \thechapter. #1}{\LARGE \sc #1}
% Define the command \mysection{<sec>}{<style>}{<prefix>}.
% <sec> is the section level--section, subsection, etc. <style>
% is the style in which the section head is to be set; e.g.,
% \large\bf. <prefix> is what proceeds the head text, usually
% \the<sec> followed by some putctuation.
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
\par \@tempskipa #4\relax
\@afterindenttrue
\ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
\if@nobreak \everypar{}\else
\addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
{\@ssect{#3}{#4}{#5}{#1}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
\def\@svsec{}\else
\refstepcounter{#1}
\edef\@svsec{\expandafter\relax\csname @pre#1\endcsname}\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup \expandafter\relax\csname @#1style\endcsname\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
\endgroup
\csname #1mark\endcsname{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}\else
\def\@svsechd{%
\expandafter\relax\csname @#1style\endcsname\relax
\hskip #3\@svsec #8\csname #1mark\endcsname
{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}}\fi
\@xsect{#5}}
\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
\ifdim \@tempskipa>\z@
\begingroup \expandafter\relax\csname @#4style\endcsname\relax
\@hangfrom{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup
\else \def\@svsechd{#4\hskip #1\relax #5}\fi
\@xsect{#3}}
\def\mysection#1#2#3{
\expandafter\def\csname @#1style\endcsname{#2}
\expandafter\def\csname @pre#1\endcsname{#3}
}
% Default section heads.
\mysection{section}{\large\bf}{\thesection.~}
\mysection{subsection}{\normalsize\bf}{\thesubsection.~}
\mysection{subsubsection}{\normalsize\bf}{\thesubsubsection.~}
\mysection{paragraph}{\normalsize\bf}{\theparagraph.}
\mysection{subparagraph}{\normalsize\bf}{\thesubparagraph.}
% Redefine theorem environment macros to put \theoremcounterend
% (default ".") after the "theorem" head.
\def\@begintheorem#1#2{\sl \trivlist
\item[\hskip \labelsep{\bf #1\ #2\thmcounterend}]}
\def\@opargbegintheorem#1#2#3{\sl \trivlist
\item[\hskip \labelsep{\bf #1\ #2\ (#3)\thmcounterend}]}
\def\thmcounterend{.}
% Define \numberbysection to number figures, table, equations, and
% theorems within sections. Similarly for \numberbysubsection. Any
% theorem-like environment numbered with theorem inherits this
% numbering (however, be sure to define the. theorem environment
% before invoking \numberbysection or \numberbysubsection).
\def\numberbysection{\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\@addtoreset{equation}{section}
\renewcommand{\thetheorem}{\thesection.\arabic{theorem}}
\@addtoreset{theorem}{section}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
\@addtoreset{figure}{section}
\renewcommand{\thetable}{\thesection.\arabic{table}}
\@addtoreset{table}{section}}
\def\numberbysubsection{\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\theequation}{\thesubsection.\arabic{equation}}
\@addtoreset{equation}{subsection}
\renewcommand{\thetheorem}{\thesubsection.\arabic{theorem}}
\@addtoreset{theorem}{subsection}
\renewcommand{\thefigure}{\thesubsection.\arabic{figure}}
\@addtoreset{figure}{subsection}
\renewcommand{\thetable}{\thesubsection.\arabic{table}}
\@addtoreset{table}{subsection}}
\@definecounter{theorem}
% Change the labels of enumerate and outline to arabic numbers.
\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{\arabic{enumii}.}
\def\theenumii{\arabic{enumii}}
\def\p@enumii{\theenumi.}
\def\labelenumiii{\arabic{enumiii}.}
\def\theenumiii{\arabic{enumiii}}
\def\p@enumiii{\theenumi.\theenumii.}
\def\labelenumiv{\arabic{enumiv}.}
\def\theenumiv{\arabic{enumiv}}
\def\p@enumiv{\p@enumiii.\theenumiii}
% Outline is a new list style--the same as enumerate with
% less space between the items.
\def\outline{\ifnum \@enumdepth >3 \@toodeep\else
\advance\@enumdepth \@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
{\csname label\@enumctr\endcsname}{\usecounter
{\@enumctr}\def\makelabel##1{\hss\llap{##1}}
\parsep \z@ \itemsep \z@
\ifnum \@enumdepth > 1 \topsep \z@ \fi}\fi}
\let\endoutline =\endlist
% Three part head and foot macros by
% Lance Berc
% Olivetti Research Center
% 2882 Sand Hill Road
% Menlo Park, California 94025
% (415) 496-6200
% lance@orc.olivetti.com
%
% Modified 4/91 by G. W. Stewart to provide additional
% even headings for books and the like.
\def\lhead#1{\gdef\@lhead{#1}\gdef\@erhead{#1}}
\def\lfoot#1{\gdef\@lfoot{#1}\gdef\@erfoot{#1}}
\def\chead#1{\gdef\@chead{#1}\gdef\@echead{#1}}
\def\cfoot#1{\gdef\@cfoot{#1}\gdef\@ecfoot{#1}}
\def\rhead#1{\gdef\@rhead{#1}\gdef\@elhead{#1}}
\def\rfoot#1{\gdef\@rfoot{#1}\gdef\@elfoot{#1}}
\def\@lhead{} \def\@lfoot{}
\def\@chead{} \def\@cfoot{}
\def\@rhead{} \def\@rfoot{}
\def\elhead#1{\gdef\@elhead{#1}} \def\elfoot#1{\gdef\@elfoot{#1}}
\def\echead#1{\gdef\@echead{#1}} \def\ecfoot#1{\gdef\@ecfoot{#1}}
\def\erhead#1{\gdef\@erhead{#1}} \def\erfoot#1{\gdef\@erfoot{#1}}
\def\@elhead{} \def\@elfoot{}
\def\@echead{} \def\@ecfoot{}
\def\@erhead{} \def\@erfoot{}
\def\@threepart#1#2#3{\rlap{#1} \hfil {#2} \hfil \llap{#3}}
\def\ps@threepartheadings
{
\def\@oddhead{\@threepart{\@lhead}{\@chead}{\@rhead}}
\def\@oddfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}}
\if@twoside
\def\@evenhead{\@threepart{\@elhead}{\@echead}{\@erhead}}
\def\@evenfoot{\@threepart{\@elfoot}{\@ecfoot}{\@erfoot}}
\else
\def\@evenhead{\@threepart{\@lhead}{\@chead}{\@rhead}}
\def\@evenfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}}
\fi
}
\ps@threepartheadings
% Define \underhead to put a rule under the headers. \nounderhead
% suppresses \underhead on the current page. The space between
% the text and the rule is \underheadsep.
\def\underhead{
\addtolength{\headheight}{\underheadsep}
\def\@outputpage{\begingroup\catcode`\ =10 \if@specialpage
\global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
\if@twoside
\ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
\let\@themargin\oddsidemargin
\else \let\@thehead\@evenhead
\let\@thefoot\@evenfoot \let\@themargin\evensidemargin
\fi\fi
\shipout
\vbox{\normalsize \baselineskip\z@ \lineskip\z@
\vskip \topmargin \moveright\@themargin
\vbox{\setbox\@tempboxa
\vbox to\headheight{\vfil \hbox to\textwidth{\@thehead}
\vskip \underheadsep
\if@nounderhead\global\@nounderheadfalse
\hbox to\textwidth{}
\else \hbox to\textwidth{\hrulefill}\fi}
\dp\@tempboxa\z@
\box\@tempboxa
\vskip \headsep
\box\@outputbox
\baselineskip\footskip
\hbox to\textwidth{\@thefoot}}}\global\@colht\textheight
\endgroup\stepcounter{page}\let\firstmark\botmark}
}
\def\ps@empty{\@nounderheadtrue
\let\@mkboth\@gobbletwo\def\@oddhead{}\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}}
\def\ps@plain{\@nounderheadtrue
\let\@mkboth\@gobbletwo
\def\@oddhead{}\def\@oddfoot{\rm\hfil\thepage
\hfil}\def\@evenhead{}\let\@evenfoot\@oddfoot}
\newif\if@nounderhead \@nounderheadfalse
\def\nounderhead{\@nounderheadtrue}
\newlength{\underheadsep}
\setlength{\underheadsep}{.5ex}
% Define \tighttoc to alter table of contents entry so that
% sections are treated like subsections, subsubsections, etc.
\def\tighttoc{\def\l@section{\@dottedtocline{1}{0em}{1.4em}}}
% Define \symbolnote{<num>}{<text>} to produce a note with footnote
% mark <num> (less than 10). The commands \symbolmark{<num>}
% and \symboltext{<num>}{<text>} are analogues of
% \footnotemark[<num>] and \footnotetext[<num>]{<text>}.
\def\symbolnote#1#2{\let\@thefootn=\thefootnote%
\let\@thempfootn=\thempfootnote%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\renewcommand{\thempfootnote}{\fnsymbol{mpfootnote}}%
\footnotemark[#1]%
\footnotetext[#1]{#2}%
\let\thefootnote=\@thefootn\let\thempfootnote=\@thempfootn
}
\def\symbolmark#1{\let\@thefootn=\thefootnote%
\let\@thempfootn=\thempfootnote%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\renewcommand{\thempfootnote}{\fnsymbol{mpfootnote}}%
\footnotemark[#1]%
\let\thefootnote=\@thefootn\let\thempfootnote=\@thempfootn
}
\def\symboltext#1#2{\let\@thefootn=\thefootnote%
\let\@thempfootn=\thempfootnote%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}%
\renewcommand{\thempfootnote}{\fnsymbol{mpfootnote}}%
\footnotetext[#1]{#2}%
\let\thefootnote=\@thefootn\let\thempfootnote=\@thempfootn
}
% Define symboleqn environment to make a displayed equation with
% a symbolic equation label.
\newenvironment{symboleqn}[1]{
\def\@savesymbol{#1}$$}{\eqno \@savesymbol $$\global\@ignoretrue}
% Fix Plain's \bigl, \Bigl, etc. macros so that they try to scale with
% LaTeX size changes. This uses the fact that \@setsize sets \ht\strutbox
% to be 70% of the normal unstretched baselineskip. This is
% the work of John Hobby.
\def\big#1{{\hbox{$\left#1\vcenter to1.428\ht\strutbox{}\right.\n@space$}}}
\def\Big#1{{\hbox{$\left#1\vcenter to2.142\ht\strutbox{}\right.\n@space$}}}
\def\bigg#1{{\hbox{$\left#1\vcenter to2.857\ht\strutbox{}\right.\n@space$}}}
\def\Bigg#1{{\hbox{$\left#1\vcenter to3.571\ht\strutbox{}\right.\n@space$}}}
% Add a new environment literatim which is like the verbatim
% environment except that \, {, and } have their usual meanings.
% Thus, other commands and environments can appear within an `literatim'
% environment. This is essentially Lamport's alltt environment
% (the two sentences above were lifted from his description)
% with the following additions. The old special commands $, &, ^,
% and _, are \$, \&, \^, and \_. The command \@ will produce
% a verbatim backslash. A nonoptional argument to the the
% environment specifies the comment character (preceeded by
% a backslash). The character thus taken can be produced by \`.
% If the argument is null, there is no comment character.
% (Nb., space remains an active character in equations, which
% can have some unusual side effects).
\def\docspecials{\do\ \do\$\do\&%
\do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~}
{\catcode`\/=0\catcode`\\=12/xdef/@bsl{\}}
\def\literatim#1{\trivlist \item[]\if@minipage\else\vskip\parskip\fi
\leftskip\@totalleftmargin\rightskip\z@
\parindent\z@\parfillskip\@flushglue\parskip\z@
\def\@nll{}\def\@arg{#1}
\ifx\@nll\@arg\def\@newcc{}\else\def\@newcc{\catcode`#1=14}\fi
\let\@=\@bsl
\let\@dollar=$
\let\@amper=&
\let\circumflex=\^
\@tempswafalse \def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par}
\obeylines \tt \catcode``=13 \@noligs \let\do\@makeother \docspecials
\let\$=\@dollar
\let\&=\@amper
\let\_=\sb
\let\^=\sp
\frenchspacing\@vobeyspaces\@newcc}
\let\endliteratim=\endtrivlist
|