]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/bacula.sty.in
integrate external links
[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
37 \def\version{@VERSION@}
38 %%%
39 %%% Philippe Chauvat
40 %%% 01-Oct-2012
41 \def\mbacula{Bacula Enterprise}
42 \def\miscman{Misc \mbacula{} Manual}
43 \def\consoleman{Console \mbacula{} Manual}
44 \def\mainman{Main \mbacula{} Manual}
45 \def\devman{Developers \mbacula{} Manual}
46 %%%
47 %%% #1: Text to display
48 %%% #2: Label defined
49 %%% #3: manual: main, console, misc, developers
50 %%% #4: text as reference level. will be displayed ``as is''
51 %%%
52 %%% Example:
53 %%% \bsysxrlink{Console Configuration}{ConsoleConfChapter}{main}{chapter}
54 %%% will display
55 %%% Console Configuration chapter (chapter 30 on page 269)
56 \newcommand*{\bsysxrlink}[4]{%
57   \href{../#3/#3}{#1 #4 (#4 \vref{#3-#2})}
58 }
59 %%%
60 %%% --- PCT
61
62
63 %%
64 \newcommand*{\elink}[2]{%
65   \htmladdnormallink{#1}{#2}%
66 }
67 %%
68 \newcommand*{\ilink}[2]{%
69   \htmlref{#1}{#2}%
70 }
71 %%
72 \newcommand{\dq}{\verb+"+}
73 \newcommand{\vb}{$|$}
74 \newcommand{\lt}{$<$}
75 \newcommand{\gt}{$>$}
76
77 %% copied from /usr/share/texmf/tex/latex/base/book.cls, and
78 %%  modified to suit.  KEC 4-28-05
79 %% KEC: Removed the two-column arrangement, and added \newpage
80 \renewenvironment{theindex}
81                {\if@twocolumn
82                   \@restonecolfalse
83                 \else
84                   \@restonecoltrue
85                 \fi
86 %% KEC:  Switch to one column.
87 %%              \columnseprule \z@
88 %%              \columnsep 35\p@
89 %%              \twocolumn[\@makeschapterhead{\indexname}]%
90                 \@mkboth{\MakeUppercase\indexname}%
91                         {\MakeUppercase\indexname}%
92                                 \clearpage
93                                 \subsection*{\indexname}
94                                 \addcontentsline{toc}{subsection}{\indexname}
95                 \thispagestyle{plain}\parindent\z@
96                 \parskip\z@ \@plus .3\p@\relax
97                 \let\item\@idxitem}
98                                 {\if@restonecol\onecolumn\else\clearpage\fi}   %% Is this needed???
99
100 %% 
101 \endinput
102 %%