\documentclass[a4paper]{report}
% Definition of fonts, choose T1 encoding for fonts
\usepackage[T1]{fontenc}
\usepackage{mathptmx,
  courier
}
\usepackage[scaled=.90]{helvet}
%
\usepackage{graphicx,
  enumitem,
  fullpage,
  appendix,
  hyperref,
  algorithm,
  algorithmic,
  listings,
  xtab,
  parskip,
  paralist
}
\usepackage[utf8]{inputenc}
\usepackage[light]{draftcopy}
\usepackage[draft,nomargin,inline,marginclue]{fixme}

\lstloadlanguages{bash}
\lstset{basicstyle=\ttfamily,
        keywordstyle=\bfseries}

\bibliographystyle{plainurl}

\renewcommand{\t}[1]{\texttt{#1}}
\renewcommand{\i}[1]{\textit{#1}}
\newcommand{\e}[1]{\emph{#1}}
\renewcommand{\b}[1]{\textbf{#1}}
\newcommand{\note}[1]{\paragraph{Note:} #1}
\newcommand{\TODOBUG}[2]{\fixme[inline]{(discussion on bug \##1) #2}}
\newcommand{\TODO}[1]{\fixme[inline]{#1}}

\usepackage{ifthen}
\newboolean{ENABLE-ALL-OPTIONS}
\newboolean{ENABLE-KDEBUILD}

%%% Enable the below option if you'd like to see both sides of KDEBUILD conditionals shown in
%%% different colours. Disable it to either fully enable or fully disable KDEBUILD.
\setboolean{ENABLE-ALL-OPTIONS}{true}

%%% Enable the below if you'd like to see KDEBUILD things.
\setboolean{ENABLE-KDEBUILD}{true}

\usepackage{color}
\ifthenelse{\boolean{ENABLE-ALL-OPTIONS}}
{
    \definecolor{deepblue}{rgb}{0.0, 0.2, 0.7}
    \definecolor{deeppurple}{rgb}{0.7, 0.0, 0.8}
    \newcommand{\IFKDEBUILDELSE}[2]{{\color{deepblue} #1}{\color{deeppurple} #2}}
}{
    \ifthenelse{\boolean{ENABLE-KDEBUILD}}
    {
        \newcommand{\IFKDEBUILDELSE}[2]{ #1 }
    }{
        \newcommand{\IFKDEBUILDELSE}[2]{ #2 }
    }
}

\hypersetup{%
  urlcolor=black,
  colorlinks=true,
  citecolor=black,
  linkcolor=black,
  pdftitle={Package Manager Specification},
  pdfauthor={Stephen P. Bennet, Ciaran McCreesh},
  pdfcreator={pdfLaTeX and hyperref},
  pdfsubject={Defining a feature set for package managers in the
    Gentoo world},
  pdflang={en},
  pdfkeywords={Gentoo, package manager, specification, draft},
  pdfproducer={pdfLaTeX and hyperref},
}

\title{Package Manager Specification}
\author{Stephen P. Bennett\\\url{spb@gentoo.org}
\and Ciaran McCreesh\\\url{ciaran.mccreesh@googlemail.com}}

\begin{document}
\maketitle

\tableofcontents
\listofalgorithms
\lstlistoflistings
\listoftables
\listoffixmes

\include{credits}

\include{introduction}

\include{names}

\include{tree-layout}

\include{profiles}

\include{virtuals}

\include{ebuild-format}

\include{eclasses}

\include{ebuild-vars}

\include{dependencies}

\include{ebuild-functions}

\include{ebuild-environment}

\include{config-protection}

\include{glossary}

\include{appendices}

\bibliography{pms}

\end{document}

% vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en :


%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
