%%
%%
%%  The following characters must be preceded by a backslash
%%    to be entered as printable characters:
%%
%%   # $ % & ~ _ ^ \ { }
%%

\documentclass[10pt,bsyspaper,english,logo,titlepage,openright]{bsysmanual}

%% \topmargin -0.5in
%% \oddsidemargin 0.0in
%% \evensidemargin 0.0in
%% \textheight 10in
%% \textwidth 6.5in
\renewcommand{\familydefault}{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[toc,title,header,page]{appendix}
\usepackage[T1]{fontenc}
\usepackage{longtable,graphicx,fancyhdr,lastpage,eurosym,dcolumn,ltxtable,textcomp,varioref,
lscape,pdfpages,ifthen,setspace,colortbl,diagbox}
\usepackage{lmodern,minitoc}
\usepackage{MnSymbol}
\usepackage{bbding,multirow}
\usepackage[hyphens]{url}
\usepackage[plainpages=true,bookmarks=false,bookmarksopen=false,filecolor=black,linkcolor=black,urlcolor=bsysredtwo,filebordercolor={0. 0. 0.},menubordercolor={0. 0. 0.},urlbordercolor={0. 0. 0.},linkbordercolor={0. 0. 0.},hyperindex=false,colorlinks=true]{hyperref}
\usepackage{babel,xr,xr-hyper}
\usepackage[font={sf,bf},textfont=md]{caption}
\usepackage[printonlyused]{acronym}
\setlength\arrayrulewidth{0.4pt}
%\include{bsysincludes}
\include{bsyscommondefs}
\usepackage[left=4cm,right=3cm,bottom=2cm,top=2.5cm]{geometry}
\usepackage{moreverb,fancyvrb}
\usepackage{listings}
\input{external-references}
\pdfminorversion=4

%\usepackage{html}
\usepackage{float}
\usepackage{graphicx}
\usepackage{bacula}
\usepackage{longtable}
\usepackage{makeidx}
\usepackage{index}
\usepackage{setspace}
%\usepackage{hyperref}
% \usepackage[linkcolor=black,colorlinks=true]{hyperref}
\usepackage{url}

\makeindex
\newindex{dir}{ddx}{dnd}{Director Index}
\newindex{fd}{fdx}{fnd}{File Daemon Index}
\newindex{sd}{sdx}{snd}{Storage Daemon Index}
\newindex{console}{cdx}{cnd}{Console Index}
\newindex{general}{idx}{ind}{General Index}

\sloppy
\def\bsystitle{Main Reference Manual}
\begin{document}
\lstset{escapechar=,breaklines=true,basicstyle=\ttfamily\scriptsize,backgroundcolor=\color{lightbsysgrey}}
\sloppy

\input{coverpage}

\frontmatter%\clearpage
%\pagenumbering{roman}
\dominitoc
\tableofcontents
\listoffigures
\listoftables
\mainmatter

%\pagestyle{myheadings}
%\markboth{Bacula Version \version}{Bacula Version \version}
%\pagenumbering{arabic}
\include{general}
\include{newbsfeatures}
\include{newbs4.0features}
\include{newfeatures}
\include{state}
\include{requirements}
\include{supportedoses}
\include{supporteddrives}

\include{quickstart}   % install
\include{pkg-install}  % install
\include{critical}     % install

\include{tutorial}

\include{configure}    % install
\include{dirdconf}     % install
\include{filedconf}    % install
\include{storedconf}   % install
\include{messagesres}  % install
\include{consoleconf}  % install
\include{monitorconf}  % install

\include{restore}
\include{recycling}
\include{disk}
\include{pools}
\include{migration}
\include{basejob}
\include{strategies}
\include{autochangers}
\include{supportedchangers}
\include{spooling}
\include{statistics}
\include{ansi-labels}
\include{win32}
\include{rescue}
\include{tls}
\include{dataencryption}
\include{verify}

\include{mysql}           % catalog
\include{postgresql}      % catalog
\include{sqlite}          % catalog
\include{catmaintenance}  %catalog

\include{tapetesting}   % install
\include{security}        % install

\include{bootstrap}
%\backmatter
%\appendix
\begin{appendices}
\begin{small}
\include{jobstatus}
\include{license}
\include{projects}
\include{thanks}
\include{bugs}
\end{small}
\end{appendices}
% pull in the index
%\clearpage
%\backmatter
%\part*{Indexes}
\printindex[general]
\printindex[dir]
\printindex[fd]
\printindex[sd]
\printindex[console]

\end{document}
