]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/bacula.sty.in
tweak again
[bacula/docs] / docs / manuals / bacula.sty.in
1 %% bacula.sty
2 %% Provides macros and other stuff for the bacula manual
3 %% 
4 %% Original Creation -- K. Cunningham 2005-01-09
5 %% 
6 %% 
7 %% 
8 %% New Commands Currently implemented:
9 %% 
10 %% \elink{target}{text}
11 %%    Inserts the text indicated (highlighted) and provides
12 %%    an external hyperlink to the target.
13 %% 
14 %% 
15 %% \ilink{target}{text}
16 %%    Inserts the text indicated (highlighted) and provides
17 %%    an internal hyperlink to the target. Target must be a
18 %%    \label somewhere in the same document.
19 %% 
20 %% \lt
21 %%    Inserts a less-than character (<).
22 %%
23 %% \gt
24 %%    Inserts a greater-than character (>).
25 %%
26 %% \idir
27 %%    Inserts the path to the images
28 %%
29 %% 
30 %% 
31 \ProvidesPackage{bacula}[2008/10/03]
32 %%
33 %%
34 %% define images directory -- KES 15Aug08
35 \def\idir{@BUILD_DIR@/images/}  %% images directory
36
37 \def\version{@VERSION@}
38 %%%
39 %%% Philippe Chauvat
40 %%% 01-Oct-2012
41 \def\mbacula{Bacula Enterprise}
42 \def\miscman{Misc \mbacula{} Manual}
43 \def\consoleman{Console \mbacula{} Manual}
44 \def\mainman{Main \mbacula{} Manual}
45 \def\devman{Developers \mbacula{} Manual}
46 \definecolor{bsysredtwo}{cmyk}{0., 1., 0.87, 0.06}
47 \definecolor{lightbsysgrey}{cmyk}{0.00, 0.00, 0., 0.10 }
48 %%
49 %% A.1.b.ii enumerate
50 \newenvironment{Aenumerate}[0]{%
51   \renewcommand{\theenumi}{\Alph{enumi}}%
52   \renewcommand{\theenumii}{\arabic{enumii}}%
53   \renewcommand{\theenumiii}{\alph{enumiii}}%
54   \renewcommand{\theenumiv}{\roman{enumiv}}%
55   \begin{enumerate}}{\end{enumerate}}
56 %%
57 %%%
58 %%% #1: Text to display
59 %%% #2: Label defined
60 %%% #3: manual: main, console, misc, developers
61 %%% #4: text as reference level. will be displayed ``as is''
62 %%%
63 %%% Example:
64 %%% \bsysxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
65 %%% will display
66 %%% Console Configuration chapter (chapter 30 on page 269)
67 \newcommand*{\bsysxrlink}[4]{%
68   \href{../#3/#3}{#1 #4 (#4 \vref{#3-#2})}
69 }
70 %%%
71 %%% --- PCT
72
73
74 %%
75 \newcommand*{\elink}[2]{%
76   \htmladdnormallink{#1}{#2}%
77 }
78 %%
79 \newcommand*{\ilink}[2]{%
80   \htmlref{#1}{#2}%
81 }
82 %%
83 \newcommand{\dq}{\verb+"+}
84 \newcommand{\vb}{$|$}
85 \newcommand{\lt}{$<$}
86 \newcommand{\gt}{$>$}
87
88 %% copied from /usr/share/texmf/tex/latex/base/book.cls, and
89 %%  modified to suit.  KEC 4-28-05
90 %% KEC: Removed the two-column arrangement, and added \newpage
91 \renewenvironment{theindex}
92                {\if@twocolumn
93                   \@restonecolfalse
94                 \else
95                   \@restonecoltrue
96                 \fi
97 %% KEC:  Switch to one column.
98 %%              \columnseprule \z@
99 %%              \columnsep 35\p@
100 %%              \twocolumn[\@makeschapterhead{\indexname}]%
101                 \@mkboth{\MakeUppercase\indexname}%
102                         {\MakeUppercase\indexname}%
103                                 \clearpage
104                                 \subsection*{\indexname}
105                                 \addcontentsline{toc}{subsection}{\indexname}
106                 \thispagestyle{plain}\parindent\z@
107                 \parskip\z@ \@plus .3\p@\relax
108                 \let\item\@idxitem}
109                                 {\if@restonecol\onecolumn\else\clearpage\fi}   %% Is this needed???
110
111 %% 
112 \endinput
113 %%