]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/bacula.sty.in
This fix give an answer to the documentation bug https://bugs.baculasystems.com/view...
[bacula/docs] / docs / manuals / bacula.sty.in
index 5407da30f07c319c8f974801d9b263dcf8823d1d..8cd831b792d41199a7561902ec8308c3eb0d73d4 100644 (file)
@@ -1,22 +1,22 @@
 %% bacula.sty
 %% Provides macros and other stuff for the bacula manual
-%% 
+%%
 %% Original Creation -- K. Cunningham 2005-01-09
-%% 
-%% 
-%% 
+%%
+%%
+%%
 %% New Commands Currently implemented:
-%% 
+%%
 %% \elink{target}{text}
 %%    Inserts the text indicated (highlighted) and provides
 %%    an external hyperlink to the target.
-%% 
-%% 
+%%
+%%
 %% \ilink{target}{text}
 %%    Inserts the text indicated (highlighted) and provides
 %%    an internal hyperlink to the target. Target must be a
 %%    \label somewhere in the same document.
-%% 
+%%
 %% \lt
 %%    Inserts a less-than character (<).
 %%
 %% \idir
 %%    Inserts the path to the images
 %%
-%% 
-%% 
+%%
+%%
 \ProvidesPackage{bacula}[2008/10/03]
 %%
 %%
 %% define images directory -- KES 15Aug08
-\def\idir{@BUILD_DIR@/images/}  %% images directory
-
+\def\idir{}%%%@BUILD_DIR@/images/}  %% images directory
+\input{bsys-compiler-mode}
+\usepackage{multirow}
+\def\arraystretch{1.5}
+\pdfminorversion=4
 \def\version{@VERSION@}
-
-
+\newenvironment{bsysitemize}{\renewcommand\labelitemi{\textcolor{bsysredtwo}{\ensuremath{\filledsquare}}}\renewcommand\labelitemii{\textcolor{bsysredtwo}{--}}\begin{itemize}}{\end{itemize}}
+\usepackage{booktabs}
+%%%
+%%% Philippe Chauvat
+%%% 23-oct-2013 - Definitions used
+\def\director{\texttt{Director}}
+\def\bat{\texttt{BAT}}
+%%% 01-Oct-2012
+\def\mbacula{Bacula Enterprise}
+\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}
+\definecolor{bsysred}{cmyk}{0., 0.8, 0.79, 0.36}
+\definecolor{bsysgrey}{cmyk}{0.03, 0.02, 0., 0.60 }
+\definecolor{lightbsysgrey}{cmyk}{0.00, 0.00, 0., 0.10 }
+\definecolor{bsysdarkgrey}{cmyk}{0.0, 0.03, 0.01, 0.90 }
+\definecolor{bsysredtwo}{cmyk}{0., 1., 0.87, 0.06}
+%%
+%% A.1.b.ii enumerate
+\newenvironment{Aenumerate}[0]{%
+  \renewcommand{\theenumi}{\Alph{enumi}}%
+  \renewcommand{\theenumii}{\arabic{enumii}}%
+  \renewcommand{\theenumiii}{\alph{enumiii}}%
+  \renewcommand{\theenumiv}{\roman{enumiv}}%
+  \begin{enumerate}}{\end{enumerate}}
 %%
+%%%
+%%% #1: Text to display
+%%% #2: Label defined
+%%% #3: manual: main, console, misc, developers
+%%% #4: text as reference level. will be displayed ``as is''
+%%%
+%%% Example:
+%%% \bsysxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
+%%% will display
+%%% Console Configuration chapter (chapter 30 on page 269)
+\newcommand*{\bsysxrlink}[4]{%
+  \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} #4 (#4 \vref{#3-#2})}
+}
+\newcommand*{\bsysxrlinkdocument}[4]{%
+  \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} (#4 \vref{#3-#2})}
+}
+%%%
+%%% Include a graphic, horizontally
+%%% Parameters:
+%%% #1: image filename, witout extension
+%%% #2: Caption
+%%%
+%%% A label is automatically added. The name
+%%% bsysimg-image_filename
+\newcommand*{\bsysimageN}[3]{
+  \begin{figure}[htpb]
+    \begin{center}
+      \includegraphics{#1}
+      \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
+    \end{center}
+  \end{figure}
+}
+\newcommand*{\bsysimageH}[3]{
+  \begin{figure}[htpb]
+    \begin{center}
+      \includegraphics[width=0.95\linewidth]{#1}
+      \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
+    \end{center}
+  \end{figure}
+}
+%%%
+%%% Include a graphic, vertically
+%%% Parameters:
+%%% #1: image filename, witout extension
+%%% #2: Caption
+%%%
+%%% A label is automatically added. The name
+%%% bsysimg-image_filename
+\newcommand*{\bsysimageV}[3]{
+  \begin{figure}[htpb]
+    \begin{center}
+      \includegraphics[height=0.95\linewidth]{#1}
+      \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
+    \end{center}
+  \end{figure}
+}
+%%%
+%%% --- PCT
 \newcommand*{\elink}[2]{%
-  \htmladdnormallink{#1}{#2}%
+  %\htmladdnormallink{#1}{#2}%
+  \href{#2}{#1}
 }
 %%
 \newcommand*{\ilink}[2]{%
-  \htmlref{#1}{#2}%
+  \htmlref{\textcolor{bsysredtwo}{#1}}{#2}%
+%  #1 (cf. \vref{#2})%\htmlref{#1}{#2}%
+}
+\newcommand*{\bsysref}[1]{%
+  \vref{#1}
 }
 %%
 \newcommand{\dq}{\verb+"+}
                 \let\item\@idxitem}
                                 {\if@restonecol\onecolumn\else\clearpage\fi}   %% Is this needed???
 
-%% 
+%%
 \endinput
-%% 
+%%