%
% IzPack documentation
%
% Copyright (c) 2001-2004 Julien Ponge
%
% <julien@izforge.com>
% http://www.izforge.com/
%
%begin{latexonly}
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi

% Change this as needed :
%   - a4paper to your paper format
%   - the document class to your need (book, article, ...)
\ifpdf
\documentclass[a4paper, 12pt, pdftex]{report}
\else
%end{latexonly}
\documentclass[a4paper, 12pt, dvips]{report}
%begin{latexonly}
\fi
%end{latexonly}

% The packages we need
\usepackage{verbatim}
\usepackage{moreverb}
\usepackage{url}
\usepackage{tabularx}
\usepackage[final]{graphicx}
\usepackage[hyperindex,breaklinks=true,pdfborder={0 0 0}]{hyperref}
%begin{latexonly}
\ifpdf
\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=red}
\fi
%end{latexonly}
\usepackage{html}
\begin{htmlonly}
\newcommand{\href}[2]{\htmladdnormallink{#2}{#1}}
\end{htmlonly}

% Commands definition
\newcommand{\Java}{Java\texttrademark\ }
\newcommand{\IzPack}{\textsc{IzPack}\ }
\newcommand{\tag}[1]{\texttt{<#1>}}
\newcommand{\attr}[1]{\texttt{#1}}

% get deeper TOC (so we have nice bookmarks in PDF)
\setcounter{tocdepth}{4}

% We start here
\begin{document}

  % First pages
  %\maketitle
  \include{cover}
  \tableofcontents

  % The chapters
  \include{introduction}
  \include{chapter1}
  \include{chapter2}
  \include{chapter3}
  \include{chapter4}
  \include{chapter5}
  \include{UserInput}
  \include{CustomActions}

  % Appendixes
  \appendix
  \chapter{The GNU General Public License}
  \footnotesize
  \verbatiminput{GPL}
  
  \normalsize
  \chapter{The Commons Creative Attribution-NonCommercial-ShareAlike License}
  \label{CC-license}
  A friendly summary of the license terms is available at
  \href{http://creativecommons.org/licenses/by-nc-sa/1.0/}
    {\url{http://creativecommons.org/licenses/by-nc-sa/1.0/}}. The following are
  the full legal terms which govern this documentation.\\
  \footnotesize
  \verbatiminput{CC-Attribution-NonCommercial-ShareAlike-1.0}
  \normalsize
\end{document}
