2 %% Provides macros and other stuff for the bacula manual
4 %% Original Creation -- K. Cunningham 2005-01-09
8 %% New Commands Currently implemented:
10 %% \elink{target}{text}
11 %% Inserts the text indicated (highlighted) and provides
12 %% an external hyperlink to the target.
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.
21 %% Inserts a less-than character (<).
24 %% Inserts a greater-than character (>).
27 %% Inserts the path to the images
31 \ProvidesPackage{bacula}[2008/10/03]
34 %% define images directory -- KES 15Aug08
35 \def\idir{}%%%@BUILD_DIR@/images/} %% images directory
36 \input{bsys-compiler-mode}
38 \def\arraystretch{1.5}
40 \def\version{@VERSION@}
41 \newenvironment{bsysitemize}{\renewcommand\labelitemi{\textcolor{bsysredtwo}{\ensuremath{\filledsquare}}}\renewcommand\labelitemii{\textcolor{bsysredtwo}{--}}\begin{itemize}}{\end{itemize}}
45 \def\mbacula{Bacula Enterprise}
46 \def\miscman{\mbacula{} Misc Manual}
47 \def\consoleman{\mbacula{} Console Manual}
48 \def\mainman{\mbacula{} Main Manual}
49 \def\devman{\mbacula{} Developers Manual}
50 \def\utilityman{\mbacula{} Utility programs}
51 \def\problemsman{\mbacula{} Problem Resolution Guide}
52 \definecolor{bsysred}{cmyk}{0., 0.8, 0.79, 0.36}
53 \definecolor{bsysgrey}{cmyk}{0.03, 0.02, 0., 0.60 }
54 \definecolor{lightbsysgrey}{cmyk}{0.00, 0.00, 0., 0.10 }
55 \definecolor{bsysdarkgrey}{cmyk}{0.0, 0.03, 0.01, 0.90 }
56 \definecolor{bsysredtwo}{cmyk}{0., 1., 0.87, 0.06}
59 \newenvironment{Aenumerate}[0]{%
60 \renewcommand{\theenumi}{\Alph{enumi}}%
61 \renewcommand{\theenumii}{\arabic{enumii}}%
62 \renewcommand{\theenumiii}{\alph{enumiii}}%
63 \renewcommand{\theenumiv}{\roman{enumiv}}%
64 \begin{enumerate}}{\end{enumerate}}
67 %%% #1: Text to display
69 %%% #3: manual: main, console, misc, developers
70 %%% #4: text as reference level. will be displayed ``as is''
73 %%% \bsysxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
75 %%% Console Configuration chapter (chapter 30 on page 269)
76 \newcommand*{\bsysxrlink}[4]{%
77 \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} #4 (#4 \vref{#3-#2})}
79 \newcommand*{\bsysxrlinkdocument}[4]{%
80 \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} (#4 \vref{#3-#2})}
83 %%% Include a graphic, horizontally
85 %%% #1: image filename, witout extension
88 %%% A label is automatically added. The name
89 %%% bsysimg-image_filename
90 \newcommand*{\bsysimageN}[3]{
94 \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
98 \newcommand*{\bsysimageH}[3]{
101 \includegraphics[width=0.95\linewidth]{#1}
102 \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
107 %%% Include a graphic, vertically
109 %%% #1: image filename, witout extension
112 %%% A label is automatically added. The name
113 %%% bsysimg-image_filename
114 \newcommand*{\bsysimageV}[3]{
117 \includegraphics[height=0.95\linewidth]{#1}
118 \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
124 \newcommand*{\elink}[2]{%
125 %\htmladdnormallink{#1}{#2}%
129 \newcommand*{\ilink}[2]{%
130 \htmlref{\textcolor{bsysredtwo}{#1}}{#2}%
131 % #1 (cf. \vref{#2})%\htmlref{#1}{#2}%
133 \newcommand*{\bsysref}[1]{%
137 \newcommand{\dq}{\verb+"+}
138 \newcommand{\vb}{$|$}
139 \newcommand{\lt}{$<$}
140 \newcommand{\gt}{$>$}
142 %% copied from /usr/share/texmf/tex/latex/base/book.cls, and
143 %% modified to suit. KEC 4-28-05
144 %% KEC: Removed the two-column arrangement, and added \newpage
145 \renewenvironment{theindex}
151 %% KEC: Switch to one column.
152 %% \columnseprule \z@
154 %% \twocolumn[\@makeschapterhead{\indexname}]%
155 \@mkboth{\MakeUppercase\indexname}%
156 {\MakeUppercase\indexname}%
158 \subsection*{\indexname}
159 \addcontentsline{toc}{subsection}{\indexname}
160 \thispagestyle{plain}\parindent\z@
161 \parskip\z@ \@plus .3\p@\relax
163 {\if@restonecol\onecolumn\else\clearpage\fi} %% Is this needed???