\documentclass[]{book}
\bibliographystyle{plain}
\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{supertabular}
\usepackage{color}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{verbatim}
\usepackage{eurosym}
\usepackage{float}
\usepackage{fancyvrb}
\usepackage{framed}

\DeclareGraphicsExtensions{.png}

%\newcommand{\euro}[0]{euro}
\renewcommand{\textfraction}{0.00}
\renewcommand{\floatpagefraction}{0.8}
\renewcommand{\dblfloatpagefraction}{0.8}


\input{macros-epub}

\makeindex

\begin{document}

\frontmatter

\input{cover-epub}

\setcounter{tocdepth}{1}
\tableofcontents
\listoftables
\listoffigures

\input{cha-preface}

\mainmatter

\input{cha-library}


\input{cha-intro-tls}

\input{cha-auth}

\input{cha-cert-auth}

\input{cha-gtls-app}

\input{cha-tls-app}

\input{cha-programs}

\input{cha-internals}

\appendix

\input{cha-support}

\input{cha-ciphersuites}

\input{cha-errors}

\input{fdl}

\backmatter

\printindex
\addcontentsline{toc}{chapter}{Index}

\bibliography{gnutls}
\addcontentsline{toc}{chapter}{Bibliography}

\cleardoublepage

\end{document}

