2 %% This is file `borgmanual.cls',
3 %% This file is a modified copy of the book.cls class.
5 %% The original source files were:
7 %% classes.dtx (with options: `book')
9 %% This is a generated file.
11 %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001
12 %% The LaTeX3 Project and any individual authors listed elsewhere
15 %% This file was generated from file(s) of the LaTeX base system.
16 %% --------------------------------------------------------------
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.
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.
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
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}
52 Standard bacula.org Book LaTeX document class]
53 \usepackage{eso-pic,atxy,graphicx,color,ifthen}
54 \definecolor{bluebat}{cmyk}{0.0, 1.0, 1.0, 0.55}%{0.38, 0.17, 0.0, 0.27}
55 \AtBeginDocument{\setlength\parindent{0pt}}
61 \newif\if@mainmatter\@mainmattertrue
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}}
89 \renewcommand\@ptsize{0}
91 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
93 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
94 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
95 \if@compatibility\else
96 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
98 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
99 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
100 \if@compatibility\else
101 \DeclareOption{final}{\setlength\overfullrule{0pt}}
103 \DeclareOption{titlepage}{\@titlepagetrue}
104 \if@compatibility\else
105 \DeclareOption{notitlepage}{\@titlepagefalse}
110 \DeclareOption{openright}{\@openrighttrue}
111 \DeclareOption{openany}{\@openrightfalse}
113 \if@compatibility\else
114 \DeclareOption{onecolumn}{\@twocolumnfalse}
116 \DeclareOption{twocolumn}{\@twocolumntrue}
117 \DeclareOption{leqno}{\input{leqno.clo}}
118 \DeclareOption{fleqn}{\input{fleqn.clo}}
119 \DeclareOption{openbib}{%
121 \renewcommand\@openbib@code{%
122 \advance\leftmargin\bibindent
123 \itemindent -\bibindent
124 \listparindent \itemindent
127 \renewcommand\newblock{\par}}%
129 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
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@}
144 \newcommand\BackgroundPic{%
146 \parbox[b][\paperheight]{\paperwidth}{%
152 \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{\borgoddpage}%
154 \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{\borgevenpage}%
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}
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
183 \@chapapp\ \thechapter. \ %
187 \def\sectionmark##1{%
188 \markright {\MakeUppercase{%
189 \ifnum \c@secnumdepth >\z@
196 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
197 \let\@mkboth\markboth
198 \def\chaptermark##1{%
199 \markright {\MakeUppercase{%
200 \ifnum \c@secnumdepth >\m@ne
202 \@chapapp\ \thechapter. \ %
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
216 \newcommand\maketitle{
218 \thispagestyle{empty}
219 \atxy(0mm,0mm){\includegraphics{\borgcoverpage}}
220 \let\footnotesize\small
221 \let\footnoterule\relax
222 \let \footnote \thanks
224 \begin{minipage}{137mm}%
226 {\Huge \@title \par}%
230 \begin{tabular}[t]{c}%
234 {\large \@date \par}% % Set date in \large size.
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
255 \newcommand\maketitle{\par
257 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
258 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
259 \long\def\@makefntext##1{\parindent 1em\noindent
261 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
263 \ifnum \col@number=\@ne
266 \twocolumn[\@maketitle]%
270 \global\@topnum\z@ % Prevents figures from going at top of page.
273 \thispagestyle{empty}\@thanks
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
293 \let \footnote \thanks
294 {\LARGE \@title \par}%
298 \begin{tabular}[t]{c}%
309 \newcommand*\chaptermark[1]{}
310 \setcounter{secnumdepth}{2}
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{%
329 \pagenumbering{roman}}
330 \newcommand\mainmatter{%
333 \pagenumbering{arabic}}
334 \newcommand\backmatter{%
347 \thispagestyle{plain}%
355 \secdef\@part\@spart}
358 \ifnum \c@secnumdepth >-2\relax
359 \refstepcounter{part}%
360 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
362 \addcontentsline{toc}{part}{#1}%
366 \interlinepenalty \@M
368 \ifnum \c@secnumdepth >-2\relax
369 \huge\bfseries \partname\nobreakspace\thepart
373 \Huge \bfseries #2\par}%
377 \interlinepenalty \@M
379 \Huge \bfseries #1\par}%
381 \def\@endpart{\vfil\newpage
385 % \thispagestyle{empty}%
392 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
393 \thispagestyle{plain}%
396 \secdef\@chapter\@schapter}
397 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
399 \refstepcounter{chapter}%
400 \typeout{\@chapapp\space\thechapter.}%
401 \addcontentsline{toc}{chapter}%
402 {\protect\numberline{\thechapter}#1}%
404 \addcontentsline{toc}{chapter}{#1}%
407 \addcontentsline{toc}{chapter}{#1}%
410 \addtocontents{lof}{\protect\addvspace{10\p@}}%
411 \addtocontents{lot}{\protect\addvspace{10\p@}}%
413 \@topnewpage[\@makechapterhead{#2}]%
415 \@makechapterhead{#2}%
418 \def\@makechapterhead#1{%
420 {\parindent \z@ \raggedright \normalfont
421 \ifnum \c@secnumdepth >\m@ne
423 \huge\bfseries \@chapapp\space \thechapter
429 \Huge \bfseries \textcolor{bluebat}{#1}\par\nobreak
432 \def\@schapter#1{\if@twocolumn
433 \@topnewpage[\@makeschapterhead{#1}]%
435 \@makeschapterhead{#1}%
438 \def\@makeschapterhead#1{%
440 {\parindent \z@ \raggedright
448 \newcommand\section{\@startsection {section}{1}{\z@}%
449 {-3.5ex \@plus -1ex \@minus -.2ex}%
451 {\normalfont\Large\bfseries}}
452 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
453 {-3.25ex\@plus -1ex \@minus -.2ex}%
455 {\normalfont\large\bfseries}}
456 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
457 {-3.25ex\@plus -1ex \@minus -.2ex}%
459 {\normalfont\normalsize\bfseries}}
460 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
461 {3.25ex \@plus1ex \@minus.2ex}%
463 {\normalfont\normalsize\bfseries}}
464 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
465 {3.25ex \@plus1ex \@minus .2ex}%
467 {\normalfont\normalsize\bfseries}}
469 \setlength\leftmargini {2em}
471 \setlength\leftmargini {2.5em}
473 \leftmargin \leftmargini
474 \setlength\leftmarginii {2.2em}
475 \setlength\leftmarginiii {1.87em}
476 \setlength\leftmarginiv {1.7em}
478 \setlength\leftmarginv {.5em}
479 \setlength\leftmarginvi {.5em}
481 \setlength\leftmarginv {1em}
482 \setlength\leftmarginvi {1em}
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}}
509 \newcommand*\descriptionlabel[1]{\hspace\labelsep
510 \normalfont\bfseries #1}
511 \newenvironment{verse}
515 \listparindent\itemindent
516 \rightmargin \leftmargin
517 \advance\leftmargin 1.5em}%
520 \newenvironment{quotation}
521 {\list{}{\listparindent 1.5em%
522 \itemindent \listparindent
523 \rightmargin \leftmargin
524 \parsep \z@ \@plus\p@}%
527 \newenvironment{quote}
528 {\list{}{\rightmargin\leftmargin}%
532 \newenvironment{titlepage}
536 \@restonecoltrue\onecolumn
538 \@restonecolfalse\newpage
540 \thispagestyle{empty}%
543 {\if@restonecol\twocolumn \else\newpage \fi
546 \newenvironment{titlepage}
550 \@restonecoltrue\onecolumn
552 \@restonecolfalse\newpage
554 \thispagestyle{empty} %
555 \setcounter{page}\@ne
557 {\if@restonecol\twocolumn \else\newpage \fi
559 \setcounter{page}\@ne
563 \newcommand\appendix{\par
564 \setcounter{chapter}{0}%
565 \setcounter{section}{0}%
566 \gdef\@chapapp{\appendixname}%
567 \gdef\thechapter{\@Alph\c@chapter}
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}
586 \def\fnum@figure{\figurename\nobreakspace\thefigure}
587 \newenvironment{figure}
590 \newenvironment{figure*}
593 \newcounter{table}[chapter]
594 \renewcommand \thetable
595 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
599 \def\fnum@table{\tablename\nobreakspace\thetable}
600 \newenvironment{table}
603 \newenvironment{table*}
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
616 \global \@minipagefalse
617 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
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{%
635 \@restonecoltrue\onecolumn
639 \chapter*{\contentsname
641 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
643 \if@restonecol\twocolumn\fi
645 \newcommand*\l@part[2]{%
646 \ifnum \c@tocdepth >-2\relax
647 \addpenalty{-\@highpenalty}%
648 \addvspace{2.25em \@plus\p@}%
649 \setlength\@tempdima{3em}%
651 \parindent \z@ \rightskip \@pnumwidth
652 \parfillskip -\@pnumwidth
654 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
657 \everypar{\global\@nobreakfalse\everypar{}}%
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}%
666 \parindent \z@ \rightskip \@pnumwidth
667 \parfillskip -\@pnumwidth
668 \leavevmode \bfseries
669 \advance\leftskip\@tempdima
671 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
672 \penalty\@highpenalty
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{%
682 \@restonecoltrue\onecolumn
686 \chapter*{\listfigurename}%
687 \@mkboth{\MakeUppercase\listfigurename}%
688 {\MakeUppercase\listfigurename}%
690 \if@restonecol\twocolumn\fi
692 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
693 \newcommand\listoftables{%
695 \@restonecoltrue\onecolumn
699 \chapter*{\listtablename}%
701 \MakeUppercase\listtablename}%
702 {\MakeUppercase\listtablename}%
704 \if@restonecol\twocolumn\fi
706 \let\l@table\l@figure
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
719 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
722 \@clubpenalty \clubpenalty
726 {\@latex@warning{Empty `thebibliography' environment}}%
728 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
729 \let\@openbib@code\@empty
730 \newenvironment{theindex}
738 \twocolumn[\@makeschapterhead{\indexname}]%
739 \@mkboth{\MakeUppercase\indexname}%
740 {\MakeUppercase\indexname}%
741 \thispagestyle{plain}\parindent\z@
742 \parskip\z@ \@plus .3\p@\relax
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{%
751 \hrule\@width.4\columnwidth
753 \@addtoreset{footnote}{chapter}
754 \newcommand\@makefntext[1]{%
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@}
775 \pagenumbering{arabic}
789 %% End of file `borgmanual.cls'.