]> git.sur5r.net Git - bacula/docs/blob - docs/bsysmanual/bsysmanual.cls
tweak again
[bacula/docs] / docs / bsysmanual / bsysmanual.cls
1 %%
2 %% This is file `bsysmanual.cls',
3 %% generated with the docstrip utility.
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{bsysmanual}
51               [2010/10/19 v1.2
52  Standard Bsys Book LaTeX document class]
53 \usepackage{eso-pic,atxy,color,lastpage,calc,ifthen}
54 \AtBeginDocument{\setlength\parindent{0pt}}
55 \newcommand\@ptsize{}
56 \newif\if@restonecol
57 \newif\if@titlepage
58 \@titlepagetrue
59 \newif\if@openright
60 \newif\if@mainmatter\@mainmattertrue
61 %%
62 %% PCT Mise en place de la page d'entete Start
63 %%% for testing chaptername red-colored
64 \newif\if@bsyscustomers
65 \@bsyscustomersfalse
66 \if@compatibility\else
67    \DeclareOption{customers}{\@bsyscustomerstrue}
68 \fi
69 \newif\if@bsyspartners
70 \@bsyspartnersfalse
71 \if@compatibility\else
72    \DeclareOption{partners}{\@bsyspartnerstrue}
73 \fi
74 \newif\if@bsysonly
75 \@bsysonlyfalse
76 \if@compatibility\else
77    \DeclareOption{bsysonly}{\@bsysonlytrue}
78 \fi
79 \newif\if@redchapter
80 \@redchapterfalse
81 \if@compatibility\else
82    \DeclareOption{redchapter}{\@redchaptertrue}
83 \fi
84 %%% Width of text into the right font type and size
85 \newlength\myTextWidth
86 %%% Where to put text
87 \newlength\myXTextPosition
88 %%% Where  to put color box
89 \newlength\myXBoxPosition
90 %%% Size of box
91 \newlength\myBoxWidth
92 %%% Size of text
93 \newlength\myTextSize
94 %%% Right margin (``gap'' between right border and color box)
95 \newlength\myBoxRightMargin
96 %%% Right margin between text and box
97 \newlength\myTextRightMargin
98 \setlength{\myBoxWidth}{3cm}
99 \setlength{\myTextSize}{\myBoxWidth*\ratio{6mm}{10mm}}
100 \setlength{\myBoxRightMargin}{0mm}
101 \setlength{\myTextRightMargin}{-5mm}
102 \newif\if@appendix
103 \@appendixfalse
104 %%%
105 %%% Mise en place du design avec logo ?
106 \newif\if@bsyslogo
107 \@bsyslogofalse
108 \if@compatibility\else
109 \DeclareOption{logo}
110               {\@bsyslogotrue}
111 \fi
112 \if@compatibility\else
113 \DeclareOption{nologo}{\@bsyslogofalse}
114 \fi
115 %%% PCT End
116 \if@compatibility\else
117 \DeclareOption{a4paper}
118    {\setlength\paperheight {297mm}%
119     \setlength\paperwidth  {210mm}}
120 \DeclareOption{bsyspaper}
121    {\setlength\paperheight {237mm}%
122     \setlength\paperwidth  {192mm}}
123 \DeclareOption{a5paper}
124    {\setlength\paperheight {210mm}%
125     \setlength\paperwidth  {148mm}}
126 \DeclareOption{b5paper}
127    {\setlength\paperheight {250mm}%
128     \setlength\paperwidth  {176mm}}
129 \DeclareOption{letterpaper}
130    {\setlength\paperheight {11in}%
131     \setlength\paperwidth  {8.5in}}
132 \DeclareOption{legalpaper}
133    {\setlength\paperheight {14in}%
134     \setlength\paperwidth  {8.5in}}
135 \DeclareOption{executivepaper}
136    {\setlength\paperheight {10.5in}%
137     \setlength\paperwidth  {7.25in}}
138 \DeclareOption{landscape}
139    {\setlength\@tempdima   {\paperheight}%
140     \setlength\paperheight {\paperwidth}%
141     \setlength\paperwidth  {\@tempdima}}
142 \fi
143 \if@compatibility
144   \renewcommand\@ptsize{0}
145 \else
146 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
147 \fi
148 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
149 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
150 \if@compatibility\else
151 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
152 \fi
153 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
154 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
155 \if@compatibility\else
156 \DeclareOption{final}{\setlength\overfullrule{0pt}}
157 \fi
158 \DeclareOption{titlepage}{\@titlepagetrue}
159 \if@compatibility\else
160 \DeclareOption{notitlepage}{\@titlepagefalse}
161 \fi
162 %%% +++
163 %%% bacula systems
164 %%%
165 %%%\input{bsysdefs}
166 %%% ---
167
168 \if@compatibility
169 \@openrighttrue
170 \else
171 \DeclareOption{openright}{\@openrighttrue}
172 \DeclareOption{openany}{\@openrightfalse}
173 \fi
174 \if@compatibility\else
175 \DeclareOption{onecolumn}{\@twocolumnfalse}
176 \fi
177 \DeclareOption{twocolumn}{\@twocolumntrue}
178 \DeclareOption{leqno}{\input{leqno.clo}}
179 \DeclareOption{fleqn}{\input{fleqn.clo}}
180 \DeclareOption{openbib}{%
181   \AtEndOfPackage{%
182    \renewcommand\@openbib@code{%
183       \advance\leftmargin\bibindent
184       \itemindent -\bibindent
185       \listparindent \itemindent
186       \parsep \z@
187       }%
188    \renewcommand\newblock{\par}}%
189 }
190 \ExecuteOptions{bsyspaper,10pt,twoside,onecolumn,final,openright}
191 \ProcessOptions
192 %%%
193 %%% Select which coverpage to use
194 %%% Default: whitepaper
195 \def\pctcolor{bsysredtwo}
196 \def\bsyscoverpage{\includegraphics{bsysmanual-coverpagebackground}}
197 %%\def\bsysoddpage{\includegraphics{bsysmanual-oddpagebackground}}
198 %%\def\bsysevenpage{\includegraphics{bsysmanual-evenpagebackground}}
199 %%% --- PCT
200 \input{bk1\@ptsize.clo}
201 \setlength\lineskip{1\p@}
202 \setlength\normallineskip{1\p@}
203 \renewcommand\baselinestretch{}
204 \setlength\parskip{0\p@ \@plus \p@}
205 \@lowpenalty   51
206 \@medpenalty  151
207 \@highpenalty 301
208
209 \setcounter{topnumber}{2}
210 \renewcommand\topfraction{.7}
211 \setcounter{bottomnumber}{1}
212 \renewcommand\bottomfraction{.3}
213 \setcounter{totalnumber}{3}
214 \renewcommand\textfraction{.2}
215 \renewcommand\floatpagefraction{.5}
216 \setcounter{dbltopnumber}{2}
217 \renewcommand\dbltopfraction{.7}
218 \renewcommand\dblfloatpagefraction{.5}
219
220 \def\bsysauthor{\@author}
221 \def\bsystitle{\@title}
222 \if@twoside
223   \def\ps@headings{%
224       \let\@oddfoot\@empty\let\@evenfoot\@empty
225       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
226       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
227       \let\@mkboth\markboth
228     \def\chaptermark##1{%
229       \markboth {\MakeUppercase{%
230         \ifnum \c@secnumdepth >\m@ne
231           \if@mainmatter
232             \@chapapp\ \thechapter. \ %
233           \fi
234         \fi
235         ##1}}{}}%
236     \def\sectionmark##1{%
237       \markright {\MakeUppercase{%
238         \ifnum \c@secnumdepth >\z@
239           \thesection. \ %
240         \fi
241         ##1}}}}
242 \else
243   \def\ps@headings{%
244     \let\@oddfoot\@empty
245     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
246     \let\@mkboth\markboth
247     \def\chaptermark##1{%
248       \markright {\MakeUppercase{%
249         \ifnum \c@secnumdepth >\m@ne
250           \if@mainmatter
251             \@chapapp\ \thechapter. \ %
252           \fi
253         \fi
254         ##1}}}}
255 \fi
256 \def\ps@myheadings{%
257     \let\@oddfoot\@empty\let\@evenfoot\@empty
258     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
259     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
260     \let\@mkboth\@gobbletwo
261     \let\chaptermark\@gobble
262     \let\sectionmark\@gobble
263     }
264   \if@titlepage
265   \newcommand\maketitle{
266         \begin{titlepage}%
267 \thispagestyle{empty}
268   \let\footnotesize\small
269   \let\footnoterule\relax
270   \let \footnote \thanks
271 %
272   \null
273 %  \vskip 60\p@
274 %  \begin{center}%
275   \if@bsyslogo
276   \atxy(0mm,0mm){\bsyscoverpage{}}
277   \fi
278   %%%%
279   %%%% Where TITLE and SUBTITLE goes
280 %%   \atxy(70mm,115.6mm){%
281 %%     \begin{minipage}{121.2mm}%
282 %%          {{\fontfamily{bh0}\fontsize{32pt}{5pt}\fontseries{b}\fontshape{n}\selectfont\@title}}
283 %% %         {{\myTitleFont\@title}}
284 %%          \\[1em]
285 %%          {{\fontfamily{bh0}\fontsize{15pt}{5pt}\fontseries{n}\fontshape{n}\selectfont\mySubTitle}}
286 %% %         {{\mySubTitleFont \mySubTitle{}}}
287 %%     \end{minipage}%
288 %%   }
289   %%%
290   %%% Where AUTHORS goes (BACULA SYSTEMS WHITE PAPER) LOWER-LEFT CORNER
291 %%   \atxy(4mm,245mm){%
292 %%     \begin{minipage}{50mm}%
293 %%       \raggedleft
294 %%            {{\fontfamily{bh0}\fontsize{26pt}{1mm}\fontseries{b}\fontshape{n}\selectfont\textcolor{grisbsys}{\myAuthor}}}
295 %% %          {\myNameFont \textcolor{grisbsys}{\myAuthor}}
296 %%     \end{minipage}%
297 %%   }
298 %%   %%%
299 %%   %%% where DESCRIPTION OF CONTENTS goes.
300 %%   \atxy(70mm,180mm){
301 %%     \begin{minipage}{121.3mm}
302 %%       {{%
303 %% %%%\fontfamily{bh0}
304 %% \fontsize{13pt}{1mm}\fontseries{n}\fontshape{n}\selectfont\textcolor{black}{\myabstract}}}
305 %% %%%      {{\myAbstractFont \textcolor{black}{\myabstract{}}}}
306 %%     \end{minipage}
307 %% }
308 %%   %%%
309 %%   %%% Where DATA and VERSION goes
310 %%   \atxy(70mm,248mm){
311 %%     \begin{minipage}{100mm}
312 %%       {{\fontfamily{bh0}\fontsize{8pt}{1mm}\fontseries{l}\fontshape{n}\selectfont\textcolor{white}{\ifthenelse{\equal{\myVersion}{generated}}{Generated
313 %%       \myDate}{Version \myVersion{}, \myDate{}}}}}
314 %% %%      {{\myAbstractFont \textcolor{white}{Version \myVersion{}, \myDate{}}}}
315 %%       \end{minipage}
316 %%     }
317 \@thanks
318   \vfil\null
319     \end{titlepage}%
320 %  \if@bsyslogo
321 %  \AddToShipoutPicture{\BackgroundPic}
322 %  \fi
323     \setcounter{footnote}{0}%
324   \global\let\thanks\relax
325   \global\let\maketitle\relax
326   \global\let\@thanks\@empty
327   \global\let\@author\@empty
328   \global\let\@date\@empty
329   \global\let\@title\@empty
330   \global\let\title\relax
331   \global\let\author\relax
332   \global\let\date\relax
333   \global\let\and\relax
334 }
335 \else
336 \newcommand\maketitle{\par
337   \begingroup
338     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
339     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
340     \long\def\@makefntext##1{\parindent 1em\noindent
341             \hb@xt@1.8em{%
342                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
343     \if@twocolumn
344       \ifnum \col@number=\@ne
345         \@maketitle
346       \else
347         \twocolumn[\@maketitle]%
348       \fi
349     \else
350 %      \newpage
351       \global\@topnum\z@   % Prevents figures from going at top of page.
352       \@maketitle
353     \fi
354     \thispagestyle{empty}\@thanks
355   \endgroup
356   \setcounter{footnote}{0}%
357   \global\let\thanks\relax
358   \global\let\maketitle\relax
359   \global\let\@maketitle\relax
360   \global\let\@thanks\@empty
361 %  \global\let\@author\@empty
362   \global\let\@date\@empty
363 %  \global\let\@title\@empty
364   \global\let\title\relax
365   \global\let\author\relax
366   \global\let\date\relax
367   \global\let\and\relax
368 }
369 \def\@maketitle{%
370 %  \newpage
371   \null
372   \vskip 2em%
373   \begin{center}%
374   \let \footnote \thanks
375     {\LARGE \@title \par}%
376     \vskip 1.5em%
377     {\large
378       \lineskip .5em%
379       \begin{tabular}[t]{c}%
380         \@author
381       \end{tabular}\par}%
382     \vskip 1em%
383     {\large \@date}%
384   \end{center}%
385   \par
386   \vskip 1.5em}
387 \fi
388
389 \newcommand*\chaptermark[1]{}
390 \setcounter{secnumdepth}{2}
391 \newcounter {part}
392 \newcounter {chapter}
393 \newcounter {section}[chapter]
394 \newcounter {subsection}[section]
395 \newcounter {subsubsection}[subsection]
396 \newcounter {paragraph}[subsubsection]
397 \newcounter {subparagraph}[paragraph]
398 \renewcommand \thepart {\@Roman\c@part}
399 \renewcommand \thechapter {\@arabic\c@chapter}
400 \renewcommand \thesection {\thechapter.\@arabic\c@section}
401 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
402 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
403 \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
404 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
405 \newcommand\@chapapp{\chaptername}
406 \newcommand\frontmatter{%
407     \cleardoublepage
408   \@mainmatterfalse
409   \pagenumbering{roman}}
410 \newcommand\mainmatter{%
411     \cleardoublepage
412   \@mainmattertrue
413   \pagenumbering{arabic}}
414 \newcommand\backmatter{%
415   \if@openright
416     \cleardoublepage
417   \else
418     \clearpage
419   \fi
420   \@mainmatterfalse}
421 \newcommand\part{%
422   \if@openright
423     \cleardoublepage
424   \else
425     \clearpage
426   \fi
427   \thispagestyle{plain}%
428   \if@twocolumn
429     \onecolumn
430     \@tempswatrue
431   \else
432     \@tempswafalse
433   \fi
434   \null\vfil
435   \secdef\@part\@spart}
436
437 \def\@part[#1]#2{%
438     \ifnum \c@secnumdepth >-2\relax
439       \refstepcounter{part}%
440       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
441     \else
442       \addcontentsline{toc}{part}{#1}%
443     \fi
444     \markboth{}{}%
445     {\centering
446      \interlinepenalty \@M
447      \normalfont
448      \ifnum \c@secnumdepth >-2\relax
449        \huge\bfseries \partname\nobreakspace\thepart
450        \par
451        \vskip 20\p@
452      \fi
453      \Huge \bfseries #2\par}%
454     \@endpart}
455 \def\@spart#1{%
456     {\centering
457      \interlinepenalty \@M
458      \normalfont
459      \Huge \bfseries #1\par}%
460     \@endpart}
461 \def\@endpart{\vfil\newpage
462               \if@twoside
463                \if@openright
464                 \null
465 %                \thispagestyle{empty}%
466                 \newpage
467                \fi
468               \fi
469               \if@tempswa
470                 \twocolumn
471               \fi}
472 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
473                     \thispagestyle{plain}%
474                     \global\@topnum\z@
475                     \@afterindentfalse
476                     \secdef\@chapter\@schapter}
477 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
478                        \if@mainmatter
479                          \refstepcounter{chapter}%
480                          \typeout{\@chapapp\space\thechapter.}%
481                          \addcontentsline{toc}{chapter}%
482                                    {\protect\numberline{\thechapter}#1}%
483                        \else
484                          \addcontentsline{toc}{chapter}{#1}%
485                        \fi
486                     \else
487                       \addcontentsline{toc}{chapter}{#1}%
488                     \fi
489                     \chaptermark{#1}%
490                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
491                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
492                     \if@twocolumn
493                       \@topnewpage[\@makechapterhead{#2}]%
494                     \else
495                       \@makechapterhead{#2}%
496                       \@afterheading
497                     \fi}
498 \def\@makechapterhead#1{%
499   \vspace*{40\p@}%
500   {\parindent \z@ \raggedright \normalfont
501     \ifnum \c@secnumdepth >\m@ne
502       \if@mainmatter
503       \vspace*{-22mm}
504       \settowidth\myTextWidth{\fontfamily{bh0}\fontsize{\myTextSize}{1mm}\fontseries{n}\fontshape{n}\selectfont\thechapter}
505       \setlength{\fboxrule}{0pt}
506       \if@twoside
507       \ifodd\c@page%
508       \setlength{\myXBoxPosition}{\paperwidth-\myBoxWidth-\myBoxRightMargin}
509       \setlength{\myXTextPosition}{\paperwidth-\myBoxRightMargin-\myTextWidth+\myTextRightMargin}
510       \else
511       \setlength{\myXBoxPosition}{0pt}
512       \addtolength{\myXBoxPosition}{-1in+\oddsidemargin-\hoffset-\marginparsep+\myBoxRightMargin}
513       \setlength{\myXTextPosition}{\myXBoxPosition+\myBoxWidth-\myTextWidth+\myTextRightMargin}
514       \fi
515       \else
516       \setlength{\myXBoxPosition}{\paperwidth-\myBoxWidth-\myBoxRightMargin}
517       \setlength{\myXTextPosition}{\paperwidth-\myBoxRightMargin-\myTextWidth+\myTextRightMargin}
518       \fi
519       \atxy(\myXBoxPosition,1.8cm){\fcolorbox{\pctcolor}{\pctcolor}{\rule{0cm}{\myBoxWidth}\rule{\myBoxWidth}{0pt}}}
520 \atxy(\myXTextPosition,2.8cm){\color{white}{\fontfamily{bh0}\fontsize{\myTextSize}{1mm}\fontseries{b}\fontshape{n}\selectfont\thechapter}\normalcolor}
521       \fi
522     \fi
523     \interlinepenalty\@M
524     \Huge \bfseries%
525 \if@redchapter
526  \textcolor{\pctcolor}{#1}\normalcolor%
527 \else
528 #1%
529 \fi
530 \par\nobreak
531     \vskip 40\p@
532   }}
533 \def\@schapter#1{\if@twocolumn
534                    \@topnewpage[\@makeschapterhead{#1}]%
535                  \else
536                    \@makeschapterhead{#1}%
537                    \@afterheading
538                  \fi}
539 \def\@makeschapterhead#1{%
540   \vspace*{50\p@}%
541   {\parindent \z@ \raggedright
542     \normalfont
543     \interlinepenalty\@M
544     \Huge \bfseries
545 \if@redchapter
546 \textcolor{\pctcolor}{#1}\normalcolor
547 \else
548 #1
549 \fi
550 \par\nobreak
551     \vskip 40\p@
552   }}
553 \newcommand\section{\@startsection {section}{1}{\z@}%
554                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
555                                    {2.3ex \@plus.2ex}%
556                                    {\normalfont\Large\bfseries}}
557 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
558                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
559                                      {1.5ex \@plus .2ex}%
560                                      {\normalfont\large\bfseries}}
561 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
562                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
563                                      {1.5ex \@plus .2ex}%
564                                      {\normalfont\normalsize\bfseries}}
565 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
566                                     {3.25ex \@plus1ex \@minus.2ex}%
567                                     {-1em}%
568                                     {\normalfont\normalsize\bfseries}}
569 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
570                                        {3.25ex \@plus1ex \@minus .2ex}%
571                                        {-1em}%
572                                       {\normalfont\normalsize\bfseries}}
573 \if@twocolumn
574   \setlength\leftmargini  {2em}
575 \else
576   \setlength\leftmargini  {2.5em}
577 \fi
578 \leftmargin  \leftmargini
579 \setlength\leftmarginii  {2.2em}
580 \setlength\leftmarginiii {1.87em}
581 \setlength\leftmarginiv  {1.7em}
582 \if@twocolumn
583   \setlength\leftmarginv  {.5em}
584   \setlength\leftmarginvi {.5em}
585 \else
586   \setlength\leftmarginv  {1em}
587   \setlength\leftmarginvi {1em}
588 \fi
589 \setlength  \labelsep  {.5em}
590 \setlength  \labelwidth{\leftmargini}
591 \addtolength\labelwidth{-\labelsep}
592 \@beginparpenalty -\@lowpenalty
593 \@endparpenalty   -\@lowpenalty
594 \@itempenalty     -\@lowpenalty
595 \renewcommand\theenumi{\@arabic\c@enumi}
596 \renewcommand\theenumii{\@alph\c@enumii}
597 \renewcommand\theenumiii{\@roman\c@enumiii}
598 \renewcommand\theenumiv{\@Alph\c@enumiv}
599 \newcommand\labelenumi{\theenumi.}
600 \newcommand\labelenumii{(\theenumii)}
601 \newcommand\labelenumiii{\theenumiii.}
602 \newcommand\labelenumiv{\theenumiv.}
603 \renewcommand\p@enumii{\theenumi}
604 \renewcommand\p@enumiii{\theenumi(\theenumii)}
605 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
606 \newcommand\labelitemi{\textbullet}
607 \newcommand\labelitemii{\normalfont\bfseries \textendash}
608 \newcommand\labelitemiii{\textasteriskcentered}
609 \newcommand\labelitemiv{\textperiodcentered}
610 \newenvironment{description}
611                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
612                         \let\makelabel\descriptionlabel}}
613                {\endlist}
614 \newcommand*\descriptionlabel[1]{\hspace\labelsep
615                                 \normalfont\bfseries #1}
616 \newenvironment{verse}
617                {\let\\\@centercr
618                 \list{}{\itemsep      \z@
619                         \itemindent   -1.5em%
620                         \listparindent\itemindent
621                         \rightmargin  \leftmargin
622                         \advance\leftmargin 1.5em}%
623                 \item\relax}
624                {\endlist}
625 \newenvironment{quotation}
626                {\list{}{\listparindent 1.5em%
627                         \itemindent    \listparindent
628                         \rightmargin   \leftmargin
629                         \parsep        \z@ \@plus\p@}%
630                 \item\relax}
631                {\endlist}
632 \newenvironment{quote}
633                {\list{}{\rightmargin\leftmargin}%
634                 \item\relax}
635                {\endlist}
636 \if@compatibility
637 \newenvironment{titlepage}
638     {%
639       \cleardoublepage
640       \if@twocolumn
641         \@restonecoltrue\onecolumn
642       \else
643         \@restonecolfalse\newpage
644       \fi
645       \thispagestyle{empty}%
646       \setcounter{page}\z@
647     }%
648     {\if@restonecol\twocolumn \else\newpage \fi
649     }
650 \else
651 \newenvironment{titlepage}
652     {%
653       \cleardoublepage
654       \if@twocolumn
655         \@restonecoltrue\onecolumn
656       \else
657         \@restonecolfalse\newpage
658       \fi
659       \thispagestyle{empty} %
660       \setcounter{page}\@ne
661     }%
662     {\if@restonecol\twocolumn \else\newpage \fi
663      \if@twoside\else
664         \setcounter{page}\@ne
665      \fi
666     }
667 \fi
668 \newcommand\appendix{\par
669   \setcounter{chapter}{0}%
670   \setcounter{section}{0}%
671   \gdef\@chapapp{\appendixname}%
672   \gdef\thechapter{\@Alph\c@chapter}
673 }
674 \setlength\arraycolsep{5\p@}
675 \setlength\tabcolsep{6\p@}
676 \setlength\arrayrulewidth{.4\p@}
677 \setlength\doublerulesep{2\p@}
678 \setlength\tabbingsep{\labelsep}
679 \skip\@mpfootins = \skip\footins
680 \setlength\fboxsep{3\p@}
681 \setlength\fboxrule{.4\p@}
682 \@addtoreset {equation}{chapter}
683 \renewcommand\theequation
684   {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
685 \newcounter{figure}[chapter]
686 \renewcommand \thefigure
687      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
688 \def\fps@figure{tbp}
689 \def\ftype@figure{1}
690 \def\ext@figure{lof}
691 \def\fnum@figure{\figurename\nobreakspace\thefigure}
692 \newenvironment{figure}
693                {\@float{figure}}
694                {\end@float}
695 \newenvironment{figure*}
696                {\@dblfloat{figure}}
697                {\end@dblfloat}
698 \newcounter{table}[chapter]
699 \renewcommand \thetable
700      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
701 \def\fps@table{tbp}
702 \def\ftype@table{2}
703 \def\ext@table{lot}
704 \def\fnum@table{\tablename\nobreakspace\thetable}
705 \newenvironment{table}
706                {\@float{table}}
707                {\end@float}
708 \newenvironment{table*}
709                {\@dblfloat{table}}
710                {\end@dblfloat}
711 \newlength\abovecaptionskip
712 \newlength\belowcaptionskip
713 \setlength\abovecaptionskip{10\p@}
714 \setlength\belowcaptionskip{10\p@}
715 \long\def\@makecaption#1#2{%
716   \vskip\abovecaptionskip
717   \sbox\@tempboxa{#1: #2}%
718   \ifdim \wd\@tempboxa >\hsize
719     #1: #2\par
720   \else
721     \global \@minipagefalse
722     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
723   \fi
724   \vskip\belowcaptionskip}
725 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
726 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
727 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
728 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
729 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
730 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
731 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
732 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
733 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
734 \newcommand\@pnumwidth{1.55em}
735 \newcommand\@tocrmarg{2.55em}
736 \newcommand\@dotsep{4.5}
737 \setcounter{tocdepth}{2}
738 \newcommand\tableofcontents{%
739     \if@twocolumn
740       \@restonecoltrue\onecolumn
741     \else
742       \@restonecolfalse
743     \fi
744     \chapter*{\contentsname
745         \@mkboth{%
746            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
747     \@starttoc{toc}%
748     \if@restonecol\twocolumn\fi
749     }
750 \newcommand*\l@part[2]{%
751   \ifnum \c@tocdepth >-2\relax
752     \addpenalty{-\@highpenalty}%
753     \addvspace{2.25em \@plus\p@}%
754     \setlength\@tempdima{3em}%
755     \begingroup
756       \parindent \z@ \rightskip \@pnumwidth
757       \parfillskip -\@pnumwidth
758       {\leavevmode
759        \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
760        \nobreak
761          \global\@nobreaktrue
762          \everypar{\global\@nobreakfalse\everypar{}}%
763     \endgroup
764   \fi}
765 \newcommand*\l@chapter[2]{%
766   \ifnum \c@tocdepth >\m@ne
767     \addpenalty{-\@highpenalty}%
768     \vskip 1.0em \@plus\p@
769     \setlength\@tempdima{1.5em}%
770     \begingroup
771       \parindent \z@ \rightskip \@pnumwidth
772       \parfillskip -\@pnumwidth
773       \leavevmode \bfseries
774       \advance\leftskip\@tempdima
775       \hskip -\leftskip
776       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
777       \penalty\@highpenalty
778     \endgroup
779   \fi}
780 \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
781 \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
782 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
783 \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
784 \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
785 \newcommand\listoffigures{%
786     \if@twocolumn
787       \@restonecoltrue\onecolumn
788     \else
789       \@restonecolfalse
790     \fi
791     \chapter*{\listfigurename}%
792       \@mkboth{\MakeUppercase\listfigurename}%
793               {\MakeUppercase\listfigurename}%
794     \@starttoc{lof}%
795     \if@restonecol\twocolumn\fi
796     }
797 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
798 \newcommand\listoftables{%
799     \if@twocolumn
800       \@restonecoltrue\onecolumn
801     \else
802       \@restonecolfalse
803     \fi
804     \chapter*{\listtablename}%
805       \@mkboth{%
806           \MakeUppercase\listtablename}%
807          {\MakeUppercase\listtablename}%
808     \@starttoc{lot}%
809     \if@restonecol\twocolumn\fi
810     }
811 \let\l@table\l@figure
812 \newdimen\bibindent
813 \setlength\bibindent{1.5em}
814 \newenvironment{thebibliography}[1]
815      {\chapter*{\bibname}%
816       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
817       \list{\@biblabel{\@arabic\c@enumiv}}%
818            {\settowidth\labelwidth{\@biblabel{#1}}%
819             \leftmargin\labelwidth
820             \advance\leftmargin\labelsep
821             \@openbib@code
822             \usecounter{enumiv}%
823             \let\p@enumiv\@empty
824             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
825       \sloppy
826       \clubpenalty4000
827       \@clubpenalty \clubpenalty
828       \widowpenalty4000%
829       \sfcode`\.\@m}
830      {\def\@noitemerr
831        {\@latex@warning{Empty `thebibliography' environment}}%
832       \endlist}
833 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
834 \let\@openbib@code\@empty
835 \newenvironment{theindex}
836                {\if@twocolumn
837                   \@restonecolfalse
838                 \else
839                   \@restonecoltrue
840                 \fi
841                 \columnseprule \z@
842                 \columnsep 35\p@
843                 \twocolumn[\@makeschapterhead{\indexname}]%
844                 \@mkboth{\MakeUppercase\indexname}%
845                         {\MakeUppercase\indexname}%
846                 \thispagestyle{plain}\parindent\z@
847                 \parskip\z@ \@plus .3\p@\relax
848                 \let\item\@idxitem}
849                {\if@restonecol\onecolumn\else\clearpage\fi}
850 \newcommand\@idxitem{\par\hangindent 40\p@}
851 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
852 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
853 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
854 \renewcommand\footnoterule{%
855   \kern-3\p@
856   \hrule\@width.4\columnwidth
857   \kern2.6\p@}
858 \@addtoreset{footnote}{chapter}
859 \newcommand\@makefntext[1]{%
860     \parindent 1em%
861     \noindent
862     \hb@xt@1.8em{\hss\@makefnmark}#1}
863 \newcommand\contentsname{Contents}
864 \newcommand\listfigurename{List of Figures}
865 \newcommand\listtablename{List of Tables}
866 \newcommand\bibname{Bibliography}
867 \newcommand\indexname{Index}
868 \newcommand\figurename{Figure}
869 \newcommand\tablename{Table}
870 \newcommand\partname{Part}
871 \newcommand\chaptername{Chapter}
872 \newcommand\appendixname{Appendix}
873 \def\today{\ifcase\month\or
874   January\or February\or March\or April\or May\or June\or
875   July\or August\or September\or October\or November\or December\fi
876   \space\number\day, \number\year}
877 \setlength\columnsep{10\p@}
878 \setlength\columnseprule{0\p@}
879 \pagestyle{headings}
880 \pagenumbering{arabic}
881 \if@twoside
882 \else
883   \raggedbottom
884 \fi
885 \if@twocolumn
886   \twocolumn
887   \sloppy
888   \flushbottom
889 \else
890   \onecolumn
891 \fi
892 \endinput
893 %%
894 %% End of file `bsysmanual.cls'.