/[dtapublic]/to_be_filed/uculib01/doc/manual/custbook.cls
ViewVC logotype

Contents of /to_be_filed/uculib01/doc/manual/custbook.cls

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Sat Oct 8 07:22:17 2016 UTC (8 years, 1 month ago) by dashley
File size: 26017 byte(s)
Initial commit.
1 %%$Header: /home/dashley/cvsrep/uculib01/uculib01/doc/manual/custbook.cls,v 1.1 2007/08/30 00:55:41 dtashley Exp $
2 %%
3 %% This is file `book.cls',
4 %% generated with the docstrip utility.
5 %%
6 %% The original source files were:
7 %%
8 %% classes.dtx (with options: `book')
9 %%
10 %% This is a generated file.
11 %%
12 %% Copyright 1993 1994 1995 1996 1997 1998 1999
13 %% The LaTeX3 Project and any individual authors listed elsewhere
14 %% in this file.
15 %%
16 %% This file is part of the LaTeX2e system.
17 %% ----------------------------------------
18 %%
19 %% It may be distributed under the terms of the LaTeX Project Public
20 %% License, as described in lppl.txt in the base LaTeX distribution.
21 %% Either version 1.0 or, at your option, any later version.
22 %% \CharacterTable
23 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
24 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
25 %% Digits \0\1\2\3\4\5\6\7\8\9
26 %% Exclamation \! Double quote \" Hash (number) \#
27 %% Dollar \$ Percent \% Ampersand \&
28 %% Acute accent \' Left paren \( Right paren \)
29 %% Asterisk \* Plus \+ Comma \,
30 %% Minus \- Point \. Solidus \/
31 %% Colon \: Semicolon \; Less than \<
32 %% Equals \= Greater than \> Question mark \?
33 %% Commercial at \@ Left bracket \[ Backslash \\
34 %% Right bracket \] Circumflex \^ Underscore \_
35 %% Grave accent \` Left brace \{ Vertical bar \|
36 %% Right brace \} Tilde \~}
37 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
38 \ProvidesClass{custbook}
39 [1999/01/07 v1.4a
40 Standard LaTeX document class]
41 \newcommand\@ptsize{}
42 \newif\if@restonecol
43 \newif\if@titlepage
44 \@titlepagetrue
45 \newif\if@openright
46 \newif\if@mainmatter \@mainmattertrue
47 \if@compatibility\else
48 \DeclareOption{a4paper}
49 {\setlength\paperheight {297mm}%
50 \setlength\paperwidth {210mm}}
51 \DeclareOption{a5paper}
52 {\setlength\paperheight {210mm}%
53 \setlength\paperwidth {148mm}}
54 \DeclareOption{b5paper}
55 {\setlength\paperheight {250mm}%
56 \setlength\paperwidth {176mm}}
57 \DeclareOption{letterpaper}
58 {\setlength\paperheight {11in}%
59 \setlength\paperwidth {8.5in}}
60 \DeclareOption{legalpaper}
61 {\setlength\paperheight {14in}%
62 \setlength\paperwidth {8.5in}}
63 \DeclareOption{executivepaper}
64 {\setlength\paperheight {10.5in}%
65 \setlength\paperwidth {7.25in}}
66 \DeclareOption{landscape}
67 {\setlength\@tempdima {\paperheight}%
68 \setlength\paperheight {\paperwidth}%
69 \setlength\paperwidth {\@tempdima}}
70 \fi
71 \if@compatibility
72 \renewcommand\@ptsize{0}
73 \else
74 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
75 \fi
76 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
77 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
78 \if@compatibility\else
79 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
80 \fi
81 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
82 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
83 \if@compatibility\else
84 \DeclareOption{final}{\setlength\overfullrule{0pt}}
85 \fi
86 \DeclareOption{titlepage}{\@titlepagetrue}
87 \if@compatibility\else
88 \DeclareOption{notitlepage}{\@titlepagefalse}
89 \fi
90 \if@compatibility
91 \@openrighttrue
92 \else
93 \DeclareOption{openright}{\@openrighttrue}
94 \DeclareOption{openany}{\@openrightfalse}
95 \fi
96 \if@compatibility\else
97 \DeclareOption{onecolumn}{\@twocolumnfalse}
98 \fi
99 \DeclareOption{twocolumn}{\@twocolumntrue}
100 \DeclareOption{leqno}{\input{leqno.clo}}
101 \DeclareOption{fleqn}{\input{fleqn.clo}}
102 \DeclareOption{openbib}{%
103 \AtEndOfPackage{%
104 \renewcommand\@openbib@code{%
105 \advance\leftmargin\bibindent
106 \itemindent -\bibindent
107 \listparindent \itemindent
108 \parsep \z@
109 }%
110 \renewcommand\newblock{\par}}%
111 }
112 \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
113 \ProcessOptions
114 \input{bk1\@ptsize.clo}
115 \setlength\lineskip{1\p@}
116 \setlength\normallineskip{1\p@}
117 \renewcommand\baselinestretch{}
118 \setlength\parskip{0\p@ \@plus \p@}
119 \@lowpenalty 51
120 \@medpenalty 151
121 \@highpenalty 301
122 \setcounter{topnumber}{2}
123 \renewcommand\topfraction{.7}
124 \setcounter{bottomnumber}{1}
125 \renewcommand\bottomfraction{.3}
126 \setcounter{totalnumber}{3}
127 \renewcommand\textfraction{.2}
128 \renewcommand\floatpagefraction{.5}
129 \setcounter{dbltopnumber}{2}
130 \renewcommand\dbltopfraction{.7}
131 \renewcommand\dblfloatpagefraction{.5}
132 \if@twoside
133 \def\ps@headings{%
134 \let\@oddfoot\@empty\let\@evenfoot\@empty
135 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
136 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
137 \let\@mkboth\markboth
138 \def\chaptermark##1{%
139 \markboth {\MakeUppercase{%
140 \ifnum \c@secnumdepth >\m@ne
141 \if@mainmatter
142 \@chapapp\ \thechapter. \ %
143 \fi
144 \fi
145 ##1}}{}}%
146 \def\sectionmark##1{%
147 \markright {\MakeUppercase{%
148 \ifnum \c@secnumdepth >\z@
149 \thesection. \ %
150 \fi
151 ##1}}}}
152 \else
153 \def\ps@headings{%
154 \let\@oddfoot\@empty
155 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
156 \let\@mkboth\markboth
157 \def\chaptermark##1{%
158 \markright {\MakeUppercase{%
159 \ifnum \c@secnumdepth >\m@ne
160 \if@mainmatter
161 \@chapapp\ \thechapter. \ %
162 \fi
163 \fi
164 ##1}}}}
165 \fi
166 \def\ps@myheadings{%
167 \let\@oddfoot\@empty\let\@evenfoot\@empty
168 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
169 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
170 \let\@mkboth\@gobbletwo
171 \let\chaptermark\@gobble
172 \let\sectionmark\@gobble
173 }
174 \if@titlepage
175 \newcommand\maketitle{\begin{titlepage}%
176 \let\footnotesize\small
177 \let\footnoterule\relax
178 \let \footnote \thanks
179 \null\vfil
180 \vskip 60\p@
181 \begin{center}%
182 {\LARGE \@title \par}%
183 \vskip 3em%
184 {\large
185 \lineskip .75em%
186 \begin{tabular}[t]{c}%
187 \@author
188 \end{tabular}\par}%
189 \vskip 1.5em%
190 {\large \@date \par}% % Set date in \large size.
191 \end{center}\par
192 \@thanks
193 \vfil\null
194 \end{titlepage}%
195 \setcounter{footnote}{0}%
196 \global\let\thanks\relax
197 \global\let\maketitle\relax
198 \global\let\@thanks\@empty
199 \global\let\@author\@empty
200 \global\let\@date\@empty
201 \global\let\@title\@empty
202 \global\let\title\relax
203 \global\let\author\relax
204 \global\let\date\relax
205 \global\let\and\relax
206 }
207 \else
208 \newcommand\maketitle{\par
209 \begingroup
210 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
211 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
212 \long\def\@makefntext##1{\parindent 1em\noindent
213 \hb@xt@1.8em{%
214 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
215 \if@twocolumn
216 \ifnum \col@number=\@ne
217 \@maketitle
218 \else
219 \twocolumn[\@maketitle]%
220 \fi
221 \else
222 \newpage
223 \global\@topnum\z@ % Prevents figures from going at top of page.
224 \@maketitle
225 \fi
226 \thispagestyle{plain}\@thanks
227 \endgroup
228 \setcounter{footnote}{0}%
229 \global\let\thanks\relax
230 \global\let\maketitle\relax
231 \global\let\@maketitle\relax
232 \global\let\@thanks\@empty
233 \global\let\@author\@empty
234 \global\let\@date\@empty
235 \global\let\@title\@empty
236 \global\let\title\relax
237 \global\let\author\relax
238 \global\let\date\relax
239 \global\let\and\relax
240 }
241 \def\@maketitle{%
242 \newpage
243 \null
244 \vskip 2em%
245 \begin{center}%
246 \let \footnote \thanks
247 {\LARGE \@title \par}%
248 \vskip 1.5em%
249 {\large
250 \lineskip .5em%
251 \begin{tabular}[t]{c}%
252 \@author
253 \end{tabular}\par}%
254 \vskip 1em%
255 {\large \@date}%
256 \end{center}%
257 \par
258 \vskip 1.5em}
259 \fi
260 \newcommand*\chaptermark[1]{}
261 \setcounter{secnumdepth}{2}
262 \newcounter {part}
263 \newcounter {chapter}
264 \newcounter {section}[chapter]
265 \newcounter {subsection}[section]
266 \newcounter {subsubsection}[subsection]
267 \newcounter {paragraph}[subsubsection]
268 \newcounter {subparagraph}[paragraph]
269 \renewcommand \thepart {\@Roman\c@part}
270 \renewcommand \thechapter {\@arabic\c@chapter}
271 \renewcommand \thesection {\thechapter.\@arabic\c@section}
272 \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
273 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
274 \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
275 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
276 \newcommand\@chapapp{\chaptername}
277 \newcommand\frontmatter{%
278 \cleardoublepage
279 \@mainmatterfalse
280 \pagenumbering{roman}}
281 \newcommand\mainmatter{%
282 \cleardoublepage
283 \@mainmattertrue
284 \pagenumbering{arabic}}
285 \newcommand\backmatter{%
286 \if@openright
287 \cleardoublepage
288 \else
289 \clearpage
290 \fi
291 \@mainmatterfalse}
292 \newcommand\part{%
293 \if@openright
294 \cleardoublepage
295 \else
296 \clearpage
297 \fi
298 \thispagestyle{plain}%
299 \if@twocolumn
300 \onecolumn
301 \@tempswatrue
302 \else
303 \@tempswafalse
304 \fi
305 \null\vfil
306 \secdef\@part\@spart}
307
308 \def\@part[#1]#2{%
309 \ifnum \c@secnumdepth >-2\relax
310 \refstepcounter{part}%
311 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
312 \else
313 \addcontentsline{toc}{part}{#1}%
314 \fi
315 \markboth{}{}%
316 {\centering
317 \interlinepenalty \@M
318 \normalfont
319 \ifnum \c@secnumdepth >-2\relax
320 \huge\bfseries \partname~\thepart
321 \par
322 \vskip 20\p@
323 \fi
324 \Huge \bfseries #2\par}%
325 \@endpart}
326 \def\@spart#1{%
327 {\centering
328 \interlinepenalty \@M
329 \normalfont
330 \Huge \bfseries #1\par}%
331 \@endpart}
332 \def\@endpart{\vfil\newpage
333 \if@twoside
334 \null
335 \thispagestyle{empty}%
336 \newpage
337 \fi
338 \if@tempswa
339 \twocolumn
340 \fi}
341 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
342 \thispagestyle{plain}%
343 \global\@topnum\z@
344 \@afterindentfalse
345 \secdef\@chapter\@schapter}
346 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
347 \if@mainmatter
348 \refstepcounter{chapter}%
349 \typeout{\@chapapp\space\thechapter.}%
350 \addcontentsline{toc}{chapter}%
351 {\protect\numberline{\thechapter}#1}%
352 \else
353 \addcontentsline{toc}{chapter}{#1}%
354 \fi
355 \else
356 \addcontentsline{toc}{chapter}{#1}%
357 \fi
358 \chaptermark{#1}%
359 \addtocontents{lof}{\protect\addvspace{10\p@}}%
360 \addtocontents{lot}{\protect\addvspace{10\p@}}%
361 \if@twocolumn
362 \@topnewpage[\@makechapterhead{#2}]%
363 \else
364 \@makechapterhead{#2}%
365 \@afterheading
366 \fi}
367 \def\@makechapterhead#1{%
368 \vspace*{50\p@}%
369 {\parindent \z@ \raggedright \normalfont
370 \ifnum \c@secnumdepth >\m@ne
371 \if@mainmatter
372 \huge\bfseries \@chapapp\space \thechapter
373 \par\nobreak
374 \vskip 20\p@
375 \fi
376 \fi
377 \interlinepenalty\@M
378 \Huge \bfseries #1\par\nobreak
379 \vskip 40\p@
380 }}
381 \def\@schapter#1{\if@twocolumn
382 \@topnewpage[\@makeschapterhead{#1}]%
383 \else
384 \@makeschapterhead{#1}%
385 \@afterheading
386 \fi}
387 \def\@makeschapterhead#1{%
388 \vspace*{50\p@}%
389 {\parindent \z@ \raggedright
390 \normalfont
391 \interlinepenalty\@M
392 \Huge \bfseries #1\par\nobreak
393 \vskip 40\p@
394 }}
395 \newcommand\section{\@startsection {section}{1}{\z@}%
396 {-3.5ex \@plus -1ex \@minus -.2ex}%
397 {2.3ex \@plus.2ex}%
398 {\normalfont\Large\bfseries}}
399 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
400 {-3.25ex\@plus -1ex \@minus -.2ex}%
401 {1.5ex \@plus .2ex}%
402 {\normalfont\large\bfseries}}
403 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
404 {-3.25ex\@plus -1ex \@minus -.2ex}%
405 {1.5ex \@plus .2ex}%
406 {\normalfont\normalsize\bfseries}}
407 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
408 {3.25ex \@plus1ex \@minus.2ex}%
409 {-1em}%
410 {\normalfont\normalsize\bfseries}}
411 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
412 {3.25ex \@plus1ex \@minus .2ex}%
413 {-1em}%
414 {\normalfont\normalsize\bfseries}}
415 \if@twocolumn
416 \setlength\leftmargini {2em}
417 \else
418 \setlength\leftmargini {2.5em}
419 \fi
420 \leftmargin \leftmargini
421 \setlength\leftmarginii {2.2em}
422 \setlength\leftmarginiii {1.87em}
423 \setlength\leftmarginiv {1.7em}
424 \if@twocolumn
425 \setlength\leftmarginv {.5em}
426 \setlength\leftmarginvi {.5em}
427 \else
428 \setlength\leftmarginv {1em}
429 \setlength\leftmarginvi {1em}
430 \fi
431 \setlength \labelsep {.5em}
432 \setlength \labelwidth{\leftmargini}
433 \addtolength\labelwidth{-\labelsep}
434 \@beginparpenalty -\@lowpenalty
435 \@endparpenalty -\@lowpenalty
436 \@itempenalty -\@lowpenalty
437 \renewcommand\theenumi{\@arabic\c@enumi}
438 \renewcommand\theenumii{\@alph\c@enumii}
439 \renewcommand\theenumiii{\@roman\c@enumiii}
440 \renewcommand\theenumiv{\@Alph\c@enumiv}
441 \newcommand\labelenumi{\theenumi.}
442 \newcommand\labelenumii{(\theenumii)}
443 \newcommand\labelenumiii{\theenumiii.}
444 \newcommand\labelenumiv{\theenumiv.}
445 \renewcommand\p@enumii{\theenumi}
446 \renewcommand\p@enumiii{\theenumi(\theenumii)}
447 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
448 \newcommand\labelitemi{\textbullet}
449 \newcommand\labelitemii{\normalfont\bfseries \textendash}
450 \newcommand\labelitemiii{\textasteriskcentered}
451 \newcommand\labelitemiv{\textperiodcentered}
452 \newenvironment{description}
453 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
454 \let\makelabel\descriptionlabel}}
455 {\endlist}
456 \newcommand*\descriptionlabel[1]{\hspace\labelsep
457 \normalfont\bfseries #1}
458 \newenvironment{verse}
459 {\let\\\@centercr
460 \list{}{\itemsep \z@
461 \itemindent -1.5em%
462 \listparindent\itemindent
463 \rightmargin \leftmargin
464 \advance\leftmargin 1.5em}%
465 \item\relax}
466 {\endlist}
467 \newenvironment{quotation}
468 {\list{}{\listparindent 1.5em%
469 \itemindent \listparindent
470 \rightmargin \leftmargin
471 \parsep \z@ \@plus\p@}%
472 \item\relax}
473 {\endlist}
474 \newenvironment{quote}
475 {\list{}{\rightmargin\leftmargin}%
476 \item\relax}
477 {\endlist}
478 \if@compatibility
479 \newenvironment{titlepage}
480 {%
481 \cleardoublepage
482 \if@twocolumn
483 \@restonecoltrue\onecolumn
484 \else
485 \@restonecolfalse\newpage
486 \fi
487 \thispagestyle{empty}%
488 \setcounter{page}\z@
489 }%
490 {\if@restonecol\twocolumn \else \newpage \fi
491 }
492 \else
493 \newenvironment{titlepage}
494 {%
495 \cleardoublepage
496 \if@twocolumn
497 \@restonecoltrue\onecolumn
498 \else
499 \@restonecolfalse\newpage
500 \fi
501 \thispagestyle{empty}%
502 \setcounter{page}\@ne
503 }%
504 {\if@restonecol\twocolumn \else \newpage \fi
505 \if@twoside\else
506 \setcounter{page}\@ne
507 \fi
508 }
509 \fi
510 \newcommand\appendix{\par
511 \setcounter{chapter}{0}%
512 \setcounter{section}{0}%
513 \gdef\@chapapp{\appendixname}%
514 \gdef\thechapter{\@Alph\c@chapter}}
515 \setlength\arraycolsep{5\p@}
516 \setlength\tabcolsep{6\p@}
517 \setlength\arrayrulewidth{.4\p@}
518 \setlength\doublerulesep{2\p@}
519 \setlength\tabbingsep{\labelsep}
520 \skip\@mpfootins = \skip\footins
521 \setlength\fboxsep{3\p@}
522 \setlength\fboxrule{.4\p@}
523 \@addtoreset {equation}{chapter}
524 \renewcommand\theequation
525 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
526 \newcounter{figure}[chapter]
527 \renewcommand \thefigure
528 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
529 \def\fps@figure{tbp}
530 \def\ftype@figure{1}
531 \def\ext@figure{lof}
532 \def\fnum@figure{\figurename~\thefigure}
533 \newenvironment{figure}
534 {\@float{figure}}
535 {\end@float}
536 \newenvironment{figure*}
537 {\@dblfloat{figure}}
538 {\end@dblfloat}
539 \newcounter{table}[chapter]
540 \renewcommand \thetable
541 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
542 \def\fps@table{tbp}
543 \def\ftype@table{2}
544 \def\ext@table{lot}
545 \def\fnum@table{\tablename~\thetable}
546 \newenvironment{table}
547 {\@float{table}}
548 {\end@float}
549 \newenvironment{table*}
550 {\@dblfloat{table}}
551 {\end@dblfloat}
552 \newcounter{procchklst}[chapter]
553 \renewcommand \theprocchklst
554 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@procchklst}
555 \def\fps@procchklst{tbp}
556 \def\ftype@procchklst{4}
557 \def\ext@procchklst{lopck}
558 \def\fnum@procchklst{\procchklstname~\theprocchklst}
559 \newcommand{\procchklstheader}{\par\nopagebreak%
560 \vspace{0.01in}\noindent\rule{\textwidth}{1pt}%
561 \par\nopagebreak}
562 \newcommand{\procchklstfooter}{\par\nopagebreak%
563 \vspace{0.01in}\noindent\rule{\textwidth}{1pt}%
564 \par\nopagebreak}
565 \newenvironment{procchklst}[1]{\procchklstheader\noindent\refstepcounter{procchklst}%
566 \addcontentsline{lopck}{procchklst}{\protect\numberline{\theprocchklst}{\protect\ignorespaces #1}}%
567 \textbf{Procedure/Checklist \nopagebreak[2]\theprocchklst{} (#1)}\par\noindent}{\par}
568 %\newenvironment{procchklst}
569 % {\@float{procchklst}}
570 % {\end@float}
571 %\newenvironment{procchklst*}
572 % {\@dblfloat{procchklst}}
573 % {\end@dblfloat}
574 \newlength\abovecaptionskip
575 \newlength\belowcaptionskip
576 \setlength\abovecaptionskip{10\p@}
577 \setlength\belowcaptionskip{0\p@}
578 \long\def\@makecaption#1#2{%
579 \vskip\abovecaptionskip
580 \sbox\@tempboxa{#1: #2}%
581 \ifdim \wd\@tempboxa >\hsize
582 #1: #2\par
583 \else
584 \global \@minipagefalse
585 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
586 \fi
587 \vskip\belowcaptionskip}
588 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
589 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
590 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
591 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
592 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
593 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
594 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
595 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
596 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
597 \newcommand\@pnumwidth{1.55em}
598 \newcommand\@tocrmarg{2.55em}
599 \newcommand\@dotsep{4.5}
600 \setcounter{tocdepth}{2}
601 \newcommand\tableofcontents{%
602 \if@twocolumn
603 \@restonecoltrue\onecolumn
604 \else
605 \@restonecolfalse
606 \fi
607 \chapter*{\contentsname
608 \@mkboth{%
609 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
610 \@starttoc{toc}%
611 \if@restonecol\twocolumn\fi
612 }
613 \newcommand*\l@part[2]{%
614 \ifnum \c@tocdepth >-2\relax
615 \addpenalty{-\@highpenalty}%
616 \addvspace{2.25em \@plus\p@}%
617 \begingroup
618 \parindent \z@ \rightskip \@pnumwidth
619 \parfillskip -\@pnumwidth
620 {\leavevmode
621 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
622 \nobreak
623 \global\@nobreaktrue
624 \everypar{\global\@nobreakfalse\everypar{}}%
625 \endgroup
626 \fi}
627 \newcommand*\l@chapter[2]{%
628 \ifnum \c@tocdepth >\m@ne
629 \addpenalty{-\@highpenalty}%
630 \vskip 1.0em \@plus\p@
631 \setlength\@tempdima{1.5em}%
632 \begingroup
633 \parindent \z@ \rightskip \@pnumwidth
634 \parfillskip -\@pnumwidth
635 \leavevmode \bfseries
636 \advance\leftskip\@tempdima
637 \hskip -\leftskip
638 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
639 \penalty\@highpenalty
640 \endgroup
641 \fi}
642 \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
643 \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
644 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
645 \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
646 \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
647 \newcommand\listoffigures{%
648 \if@twocolumn
649 \@restonecoltrue\onecolumn
650 \else
651 \@restonecolfalse
652 \fi
653 \chapter*{\listfigurename
654 \@mkboth{\MakeUppercase\listfigurename}%
655 {\MakeUppercase\listfigurename}}%
656 \@starttoc{lof}%
657 \if@restonecol\twocolumn\fi
658 }
659 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
660 \newcommand\listoftables{%
661 \if@twocolumn
662 \@restonecoltrue\onecolumn
663 \else
664 \@restonecolfalse
665 \fi
666 \chapter*{\listtablename
667 \@mkboth{%
668 \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
669 \@starttoc{lot}%
670 \if@restonecol\twocolumn\fi
671 }
672 \let\l@table\l@figure
673 \newcommand\listofprocchklsts{%
674 \if@twocolumn
675 \@restonecoltrue\onecolumn
676 \else
677 \@restonecolfalse
678 \fi
679 \chapter*{\listprocchklstname
680 \@mkboth{%
681 \MakeUppercase\listprocchklstname}{\MakeUppercase\listprocchklstname}}%
682 \@starttoc{lopck}%
683 \if@restonecol\twocolumn\fi
684 }
685 \let\l@procchklst\l@figure
686 \newdimen\bibindent
687 \setlength\bibindent{1.5em}
688 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
689 %The custom bibliography hacked in to allow the bibliography
690 %to be split up. Only diff is that chapter commands
691 %removed so can be used multiple times. Also hacked
692 %to use a different counter, "custombibcounter", to
693 %hold the "enumiv" counter so that on next environment
694 %old value can be restored. Before using this environment,
695 %the counter "custombibcounter" must be created.
696 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
697 \newenvironment{thecustombibliography}[1]
698 {\list{\@biblabel{\@arabic\c@enumiv}}%
699 {\settowidth\labelwidth{\@biblabel{#1}}%
700 \leftmargin\labelwidth
701 \advance\leftmargin\labelsep
702 \@openbib@code
703 \usecounter{enumiv}%
704 \setcounter{enumiv}{\value{custombibcounter}}%
705 \let\p@enumiv\@empty
706 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
707 \sloppy
708 \clubpenalty4000
709 \@clubpenalty \clubpenalty
710 \widowpenalty4000%
711 \sfcode`\.\@m}
712 {\setcounter{custombibcounter}{\value{enumiv}}\def\@noitemerr
713 {\@latex@warning{Empty `thebibliography' environment}}%
714 \endlist}
715 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
716 %This is the original "thebibliography" environment,
717 %which has not been modified.
718 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
719 \newenvironment{thebibliography}[1]
720 {\chapter*{\bibname
721 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
722 \list{\@biblabel{\@arabic\c@enumiv}}%
723 {\settowidth\labelwidth{\@biblabel{#1}}%
724 \leftmargin\labelwidth
725 \advance\leftmargin\labelsep
726 \@openbib@code
727 \usecounter{enumiv}%
728 \let\p@enumiv\@empty
729 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
730 \sloppy
731 \clubpenalty4000
732 \@clubpenalty \clubpenalty
733 \widowpenalty4000%
734 \sfcode`\.\@m}
735 {\def\@noitemerr
736 {\@latex@warning{Empty `thebibliography' environment}}%
737 \endlist}
738 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
739 \let\@openbib@code\@empty
740 \newenvironment{theindex}
741 {\if@twocolumn
742 \@restonecolfalse
743 \else
744 \@restonecoltrue
745 \fi
746 \columnseprule \z@
747 \columnsep 35\p@
748 \twocolumn[\@makeschapterhead{\indexname}]%
749 \@mkboth{\MakeUppercase\indexname}%
750 {\MakeUppercase\indexname}%
751 \thispagestyle{plain}\parindent\z@
752 \parskip\z@ \@plus .3\p@\relax
753 \let\item\@idxitem}
754 {\if@restonecol\onecolumn\else\clearpage\fi}
755 \newcommand\@idxitem{\par\hangindent 40\p@}
756 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
757 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
758 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
759 \renewcommand\footnoterule{%
760 \kern-3\p@
761 \hrule\@width.4\columnwidth
762 \kern2.6\p@}
763 \@addtoreset{footnote}{chapter}
764 \newcommand\@makefntext[1]{%
765 \parindent 1em%
766 \noindent
767 \hb@xt@1.8em{\hss\@makefnmark}#1}
768 \newcommand\contentsname{Contents}
769 \newcommand\listfigurename{List of Figures}
770 \newcommand\listtablename{List of Tables}
771 \newcommand\listprocchklstname{List of Procedures and Checklists}
772 \newcommand\bibname{Bibliography}
773 \newcommand\indexname{Index}
774 \newcommand\figurename{Figure}
775 \newcommand\tablename{Table}
776 \newcommand\procchklstname{Procedure/Checklist}
777 \newcommand\partname{Part}
778 \newcommand\chaptername{Chapter}
779 \newcommand\appendixname{Appendix}
780 \def\today{\ifcase\month\or
781 January\or February\or March\or April\or May\or June\or
782 July\or August\or September\or October\or November\or December\fi
783 \space\number\day, \number\year}
784 \setlength\columnsep{10\p@}
785 \setlength\columnseprule{0\p@}
786 \pagestyle{headings}
787 \pagenumbering{arabic}
788 \if@twoside
789 \else
790 \raggedbottom
791 \fi
792 \if@twocolumn
793 \twocolumn
794 \sloppy
795 \flushbottom
796 \else
797 \onecolumn
798 \fi
799 \endinput
800 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
801 %$Log: custbook.cls,v $
802 %Revision 1.1 2007/08/30 00:55:41 dtashley
803 %Initial checkin.
804 %
805 %End of $RCSfile: custbook.cls,v $.

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25