\documentclass[letterpaper, twoside]{book}
\usepackage{graphicx}
\usepackage{listings}
\setcounter{secnumdepth}{0} % number ``part'' and ``chapter'', thats it
\setcounter{tocdepth}{1} % put part, chapter, and section in the table-contents
\pagestyle{headings} % page number and chapter on the top
% A couple of this-book-specific commands
\newcommand{\mylstinputlisting}[1]{\smallskip \lstinputlisting{#1} \smallskip}
\lstnewenvironment{mylstlisting}{\smallskip}{\smallskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Beginning the book
\begin{document}
%minor inlined snippets of C++ found in Chapter8
\lstset{language=Ada, alsolanguage=C++, numbers=left, numberstyle=\small, stepnumber=1, columns=flexible, showstringspaces=false, showtabs=false}
\frontmatter
\title{Wikibook's Ada Programming}
\author{Martin Krischik \\
Manuel G\'omez \\
Santiago Urue\~na \\
And many other anonymous Wikibook Contributors }
\date{This version was compiled on \today}
\maketitle
\tableofcontents
\input{frontstuff}
\mainmatter
\part{Getting started}
\input{chapter1}
\input{chapter2}
\input{chapter3}
\part{Language Features}
\input{chapter4}
\input{chapter5}
\input{chapter6}
\input{chapter7}
\input{chapter8}
\input{chapter9}
\input{chapter10}
\appendix
\input{gfdl}
%placeholder
\backmatter
\bibliographystyle{plain}
\bibliography{bib}
\end{document}