]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/bacula.sty.in
Add \director and \bat LaTeX macro definitions.
[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 \input{bsys-compiler-mode}
37 \usepackage{multirow}
38 \def\arraystretch{1.5}
39 \pdfminorversion=4
40 \def\version{@VERSION@}
41 \newenvironment{bsysitemize}{\renewcommand\labelitemi{\textcolor{bsysredtwo}{\ensuremath{\filledsquare}}}\renewcommand\labelitemii{\textcolor{bsysredtwo}{--}}\begin{itemize}}{\end{itemize}}
42 %%%
43 %%% Philippe Chauvat
44 %%% 23-oct-2013 - Definitions used
45 \def\director{\texttt{Director}}
46 \def\bat{\texttt{BAT}}
47 %%% 01-Oct-2012
48 \def\mbacula{Bacula Enterprise}
49 \def\miscman{\mbacula{} Misc Manual}
50 \def\consoleman{\mbacula{} Console Manual}
51 \def\mainman{\mbacula{} Main Manual}
52 \def\devman{\mbacula{} Developers Manual}
53 \def\utilityman{\mbacula{} Utility programs}
54 \def\problemsman{\mbacula{} Problem Resolution Guide}
55 \definecolor{bsysred}{cmyk}{0., 0.8, 0.79, 0.36}
56 \definecolor{bsysgrey}{cmyk}{0.03, 0.02, 0., 0.60 }
57 \definecolor{lightbsysgrey}{cmyk}{0.00, 0.00, 0., 0.10 }
58 \definecolor{bsysdarkgrey}{cmyk}{0.0, 0.03, 0.01, 0.90 }
59 \definecolor{bsysredtwo}{cmyk}{0., 1., 0.87, 0.06}
60 %%
61 %% A.1.b.ii enumerate
62 \newenvironment{Aenumerate}[0]{%
63   \renewcommand{\theenumi}{\Alph{enumi}}%
64   \renewcommand{\theenumii}{\arabic{enumii}}%
65   \renewcommand{\theenumiii}{\alph{enumiii}}%
66   \renewcommand{\theenumiv}{\roman{enumiv}}%
67   \begin{enumerate}}{\end{enumerate}}
68 %%
69 %%%
70 %%% #1: Text to display
71 %%% #2: Label defined
72 %%% #3: manual: main, console, misc, developers
73 %%% #4: text as reference level. will be displayed ``as is''
74 %%%
75 %%% Example:
76 %%% \bsysxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
77 %%% will display
78 %%% Console Configuration chapter (chapter 30 on page 269)
79 \newcommand*{\bsysxrlink}[4]{%
80   \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} #4 (#4 \vref{#3-#2})}
81 }
82 \newcommand*{\bsysxrlinkdocument}[4]{%
83   \href{../#3/#3}{\textcolor{bsysgrey}{\textbf{#1}} (#4 \vref{#3-#2})}
84 }
85 %%%
86 %%% Include a graphic, horizontally
87 %%% Parameters:
88 %%% #1: image filename, witout extension
89 %%% #2: Caption
90 %%%
91 %%% A label is automatically added. The name
92 %%% bsysimg-image_filename
93 \newcommand*{\bsysimageN}[3]{
94   \begin{figure}[htpb]
95     \begin{center}
96       \includegraphics{#1}
97       \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
98     \end{center}
99   \end{figure}
100 }
101 \newcommand*{\bsysimageH}[3]{
102   \begin{figure}[htpb]
103     \begin{center}
104       \includegraphics[width=0.95\linewidth]{#1}
105       \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
106     \end{center}
107   \end{figure}
108 }
109 %%%
110 %%% Include a graphic, vertically
111 %%% Parameters:
112 %%% #1: image filename, witout extension
113 %%% #2: Caption
114 %%%
115 %%% A label is automatically added. The name
116 %%% bsysimg-image_filename
117 \newcommand*{\bsysimageV}[3]{
118   \begin{figure}[htpb]
119     \begin{center}
120       \includegraphics[height=0.95\linewidth]{#1}
121       \caption{#2}\ifthenelse{\equal{#3}{}}{\label{bsysimg-#1}}{\label{#3}}
122     \end{center}
123   \end{figure}
124 }
125 %%%
126 %%% --- PCT
127 \newcommand*{\elink}[2]{%
128   %\htmladdnormallink{#1}{#2}%
129   \href{#2}{#1}
130 }
131 %%
132 \newcommand*{\ilink}[2]{%
133   \htmlref{\textcolor{bsysredtwo}{#1}}{#2}%
134 %  #1 (cf. \vref{#2})%\htmlref{#1}{#2}%
135 }
136 \newcommand*{\bsysref}[1]{%
137   \vref{#1}
138 }
139 %%
140 \newcommand{\dq}{\verb+"+}
141 \newcommand{\vb}{$|$}
142 \newcommand{\lt}{$<$}
143 \newcommand{\gt}{$>$}
144
145 %% copied from /usr/share/texmf/tex/latex/base/book.cls, and
146 %%  modified to suit.  KEC 4-28-05
147 %% KEC: Removed the two-column arrangement, and added \newpage
148 \renewenvironment{theindex}
149                {\if@twocolumn
150                   \@restonecolfalse
151                 \else
152                   \@restonecoltrue
153                 \fi
154 %% KEC:  Switch to one column.
155 %%              \columnseprule \z@
156 %%              \columnsep 35\p@
157 %%              \twocolumn[\@makeschapterhead{\indexname}]%
158                 \@mkboth{\MakeUppercase\indexname}%
159                         {\MakeUppercase\indexname}%
160                                 \clearpage
161                                 \subsection*{\indexname}
162                                 \addcontentsline{toc}{subsection}{\indexname}
163                 \thispagestyle{plain}\parindent\z@
164                 \parskip\z@ \@plus .3\p@\relax
165                 \let\item\@idxitem}
166                                 {\if@restonecol\onecolumn\else\clearpage\fi}   %% Is this needed???
167
168 %%
169 \endinput
170 %%