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]
32 \usepackage{ltxtable,varioref}
33 \usepackage{babel,xr-hyper}
35 \input{external-references}
38 %% define images directory -- KES 15Aug08
39 %\def\idir{@BUILD_DIR@/images/} %% images directory
41 \newcolumntype{Y}{>{\centering\arraybackslash}X}
42 %% LaTeX GraphicPath directive is able to manage this.
43 %% manuals/_lang_/_manual_name/
44 \graphicspath{{../../../images/pdf/}{../../../images/png/}{../../../images/jpeg/}{../../../images/}{../../../images/eps/}{../../../images/hires/}}
45 %% In tex files: do _not_ put the filename extension
46 %% Below, define the precedence for filetypes
47 \include{graphicspolicy}
48 %% Some definition for external references.
49 \def\mbacula{Bacula Community}
50 \def\miscman{\mbacula{} Misc Manual}
51 \def\consoleman{\mbacula{} Console Manual}
52 \def\mainman{\mbacula{} Main Manual}
53 \def\devman{\mbacula{} Developers Manual}
54 \def\utilityman{\mbacula{} Utility programs}
55 \def\problemsman{\mbacula{} Problem Resolution Guide}
57 %% eXternal References macro: borgxrlink
58 %%% #1: Text to display
60 %%% #3: manual: main, console, misc, developers
61 %%% #4: text as reference level. will be displayed ``as is''
64 %%% \borgxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
66 %%% Console Configuration chapter (chapter 30 on page 269)
67 \newcommand*{\borgxrlink}[4]{%
68 \href{../#3/#3}{\textbf{#1}} #4 (#4 \vref{#3-#2})
71 %% Same for pointing to document.
72 %% \borgxrlinkdocument{Text}{label}{manual}{type-of-reference}
74 %% Text (chapter XX on page YY)
75 \newcommand*{\borgxrlinkdocument}[4]{%
76 \href{../#3/#3}{\textbf{#1}} (#4 \vref{#3-#2})
80 \def\arraystretch{1.5}
84 \def\version{@VERSION@}
88 \newcommand*{\elink}[2]{%
89 %\htmladdnormallink{#1}{#2}%
93 \newcommand*{\ilink}[2]{%
94 \htmlref{\textcolor{black}{#1}}{#2}%
95 % #1 (cf. \vref{#2})%\htmlref{#1}{#2}%
97 \newcommand*{\borgref}[1]{%
98 %% displays 'the_reference on page p'
102 \newcommand{\dq}{\verb+"+}
103 \newcommand{\vb}{$|$}
104 \newcommand{\lt}{$<$}
105 \newcommand{\gt}{$>$}
107 %% copied from /usr/share/texmf/tex/latex/base/book.cls, and
108 %% modified to suit. KEC 4-28-05
109 %% KEC: Removed the two-column arrangement, and added \newpage
110 \renewenvironment{theindex}
116 %% KEC: Switch to one column.
117 %% \columnseprule \z@
119 %% \twocolumn[\@makeschapterhead{\indexname}]%
120 \@mkboth{\MakeUppercase\indexname}%
121 {\MakeUppercase\indexname}%
123 \subsection*{\indexname}
124 \addcontentsline{toc}{subsection}{\indexname}
125 \thispagestyle{plain}\parindent\z@
126 \parskip\z@ \@plus .3\p@\relax
128 {\if@restonecol\onecolumn\else\clearpage\fi} %% Is this needed???