\documentclass[11pt,twoside,a4paper]{book}

\usepackage{latexsym,amssymb,amsthm,amsmath}
%\usepackage[notcite,notref]{showkeys}
\usepackage[english]{babel}
\usepackage{xspace}
\usepackage{fancyvrb}
\usepackage{newvbtm}
\usepackage{verbdef}
\usepackage{listings} %% better support for source-code listing
\usepackage{url}
\usepackage{path}
% Better processing of multiple indices, unfortunately this package is 
% not standard on my machine. (DK)   :-|
%\usepackage{makeidx}
\usepackage[makeindex,idxcommands]{splitidx}
\usepackage{comment}
\usepackage{xr}
\usepackage{xr-hyper}

\newif\ifletter
%\lettertrue
\letterfalse

\ifletter
%% Letter Option
\setlength{\topmargin}{1.0cm}
\setlength{\textheight}{22.7cm}
\setlength{\textwidth}{16.4cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\evensidemargin}{0cm}
\setlength{\floatsep}{2mm}
\setlength{\textfloatsep}{2.5mm}
\setlength{\intextsep}{2.5mm}
\else
%% Din A4 Option
\usepackage{a4wide}
\fi
\newlength{\MPwidth}
\setlength{\MPwidth}{0.8\textwidth}

\renewcommand{\textfraction}{0.05}
\renewcommand{\topfraction}{0.95}
\renewcommand{\bottomfraction}{0.95}
\renewcommand{\floatpagefraction}{1}

\usepackage{graphicx}
\DeclareGraphicsExtensions{.jpg,.pdf,.png}
\usepackage{tocbibind}
\usepackage[colorlinks=true,bookmarks=true,linkcolor=blue,plainpages=false]{hyperref}
\graphicspath{{./EPS/}{./Logo/}}

% Settings for the depth of subsub...section numbering
\setcounter{secnumdepth}{3}  % Only to \subsubsections!
\setcounter{tocdepth}{2}      % Only to \subsections!

\frenchspacing
\sloppy

% Index definitions
\newindex[Index]{idx} % General index
\newindex[List of data types]{ddx}
\newindex[List of symbolic constants]{cdx}
\newindex[List of functions]{fdx}
\newindex[List of macros]{mdx}

\pagestyle{headings}
\input defs.tex

\providecommand{\lstname}{}
\lstset{language=C,caption={[\lstname]},breaklines=true,breakautoindent=true,basicstyle=\footnotesize,breakatwhitespace=true}
\renewcommand{\lstlistlistingname}{Source Code Listings}
\renewcommand{\lstlistingname}{Source Code Listing}

%% For external references to the book. Note: that optional argument
%% ``book'' means, that any references to the ``boot''-part need to be
%% prefixed by ``man:'', like \secref{man:S:introduction} or so.
\externaldocument[man:]{alberta-man}

\includeonly{intro,concept,examples,impl,tools}

\begin{document}

%% title-page
\frontmatter

%\title{\ALBERTA: An adaptive hierarchical finite element toolbox}
\title{Design of Adaptive Finite Element Software: 
       The Finite Element Toolbox \ALBERTA}

%\author{Alfred Schmidt and Kunibert G.~Siebert\\[0.2cm]%
%Institut f\"ur Angewandte Mathematik\strut\\%
%Universit\"at Freiburg i.~Br.\strut\\%
%{\small\tt alfred, kunibert@mathematik.uni-freiburg.de}}

\author{Alfred Schmidt and Kunibert G.\ Siebert}

\vspace*{10mm}
\thispagestyle{empty}

\begin{center}
\LARGE 
%\ALBERTA: An adaptive hierarchical finite element toolbox\\[5mm]
Design of adaptive finite element software:\\[2mm]
       The finite element toolbox \ALBERTA
\vfil\vfil

\small
\begin{minipage}{0.4\textwidth}
\textbf{Alfred Schmidt}\\[1mm]
Zentrum für Technomathematik\strut\\
%Fachbereich 3 Mathematik/Informatik\strut\\
Universit\"at Bremen\strut\\
Bibliothekstr. 2\\
D-28359 Bremen, Germany
\\[5mm]
\textbf{Daniel K\"oster}\\[1mm]
Department of Applied Mathematics\strut\\%
University of Twente\strut\\%
P.O. Box 217\strut\\
7500AE Enschede, The Netherlands
\end{minipage}\hfill
\begin{minipage}{0.4\textwidth}
\textbf{Kunibert G.~Siebert}\\[1mm]
Institut f\"ur Mathematik\strut\\%
Universit\"at Augsburg\strut\\%
Universit\"atstr. 14\strut\\
D-86159 Augsburg, Germany
\\[5mm]
\textbf{Claus-Justus Heine}\\[1mm]
Abteilung f\"ur Angewandte Mathematik\strut\\%
Albert-Ludwigs-Universit\"at Freiburg\strut\\%
Hermann-Herder-Str. 10\strut\\
D-79104 Freiburg im Breisgau, Germany
\end{minipage}

\vspace{5mm}
{\normalsize\url{http://www.alberta-fem.de}}
\vfil
\includegraphics[scale=1.0]{alberta}
\vfil

\ALBERTA is an \textsf{A}daptive multi-\textsf{L}evel finite element
toolbox using \textsf{B}i\-sec\-tion\-ing refinement and \textsf{E}rror
control by \textsf{R}esidual \textsf{T}echniques for scientific
\textsf{A}pplications. 
\vfil

Version: \ALBERTA-3.1, \today\strut
\end{center}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\input{preface}

\newpage
\tableofcontents       % Inhaltsverzeichnis
\newpage

\cleardoublepage
\include{intro}          % Titel, Abstrakt, Einleitung
\cleardoublepage
\mainmatter

%%%%%%%%%%% THIS IS NOW SEPARATED FROM THE TECHNICAL MANUAL %%%%%%%%%%%%%%%%%%
\include{concept}        % Ch. 1 Concepts and abstract algorithms
%\cleardoublepage
%\include{examples}       % Ch. 2 Implementation of model problems
%\cleardoublepage
%\include{impl}           % Ch. 3 Data structures and implementation
%\cleardoublepage
%\include{tools}          % Ch. 4 Tools for finite element calculations

%  Literaturverzeichnis   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter

\cleardoublepage
\bibliographystyle{siam}
\bibliography{alberta}  % Literaturverzeichnis
%% Index                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\cleardoublepage
%addcontentsline{toc}{chapter}{\indexname}%{Index}
%\printindex[idx]
%\cleardoublepage
%\input{struct-func}    % List of data structures and functions
\end{document}
