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