]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/bacula.sty.in
Add manuals/bacula.sty
[bacula/docs] / docs / manuals / bacula.sty.in
index 559719376962a96c161af71f1761b028df4a09be..de8c1c71515883790794ea0c526d467612024380 100644 (file)
 %% 
 %% 
 \ProvidesPackage{bacula}[2008/10/03]
+\usepackage{ltxtable,varioref}
+\usepackage{babel,xr-hyper}
+\usepackage{xr}
+\input{external-references}
 %%
 %%
 %% define images directory -- KES 15Aug08
-\def\idir{@BUILD_DIR@/images/}  %% images directory
+%\def\idir{@BUILD_DIR@/images/}  %% images directory
+\def\idir{}
+\newcolumntype{Y}{>{\centering\arraybackslash}X}
+%% LaTeX GraphicPath directive is able to manage this.
+%% manuals/_lang_/_manual_name/
+\graphicspath{{../../../images/pdf/}{../../../images/png/}{../../../images/jpeg/}{../../../images/}{../../../images/eps/}{../../../images/hires/}}
+%% In tex files: do _not_ put the filename extension
+%% Below, define the precedence for filetypes
+\include{graphicspolicy}
+%% Some definition for external references.
+\def\mbacula{Bacula Community}
+\def\miscman{\mbacula{} Misc Manual}
+\def\consoleman{\mbacula{} Console Manual}
+\def\mainman{\mbacula{} Main Manual}
+\def\devman{\mbacula{} Developers Manual}
+\def\utilityman{\mbacula{} Utility programs}
+\def\problemsman{\mbacula{} Problem Resolution Guide}
+%%
+%% eXternal References macro: borgxrlink
+%%% #1: Text to display
+%%% #2: Label defined
+%%% #3: manual: main, console, misc, developers
+%%% #4: text as reference level. will be displayed ``as is''
+%%%
+%%% Example:
+%%% \borgxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
+%%% will display
+%%% Console Configuration chapter (chapter 30 on page 269)
+\newcommand*{\borgxrlink}[4]{%
+  \href{../#3/#3}{\textbf{#1}} #4 (#4 \vref{#3-#2})
+}
+%%
+%% Same for pointing to document.
+%% \borgxrlinkdocument{Text}{label}{manual}{type-of-reference}
+%% Will display
+%% Text (chapter XX on page YY)
+\newcommand*{\borgxrlinkdocument}[4]{%
+  \href{../#3/#3}{\textbf{#1}} (#4 \vref{#3-#2})
+}
+
+\usepackage{multirow}
+\def\arraystretch{1.5}
+\pdfminorversion=4
+
 
 \def\version{@VERSION@}
 
-\def\fullversion{@VERSION@ (@DATE@)}
 
 %%
 \newcommand*{\elink}[2]{%
-  \htmladdnormallink{#1}{#2}%
+  %\htmladdnormallink{#1}{#2}%
+  \href{#2}{#1}
 }
 %%
 \newcommand*{\ilink}[2]{%
-  \htmlref{#1}{#2}%
+  \htmlref{\textcolor{black}{#1}}{#2}%
+%  #1 (cf. \vref{#2})%\htmlref{#1}{#2}%
+}
+\newcommand*{\borgref}[1]{%
+  %% displays 'the_reference on page p'
+  \vref{#1}
 }
 %%
+\newcommand{\dq}{\verb+"+}
 \newcommand{\vb}{$|$}
 \newcommand{\lt}{$<$}
 \newcommand{\gt}{$>$}