%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%   BornAgain Physics Manual
%%
%%   homepage:   http://www.bornagainproject.org
%%
%%   copyright:  Forschungszentrum Jülich GmbH 2015-2020
%%
%%   license:    Creative Commons CC-BY-SA
%%
%%   authors:    Scientific Computing Group at MLZ Garching
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% To compile this report, run
%   export T=PhysicsManual
%   xelatex $T
%   bibtex  $T
%   xelatex $T
%   makeindex $T
%   makeindex -s nomencl.ist $T.nlo -o $T.nls
%   xelatex $T

\documentclass[a4paper,11pt,fleqn]{report}\usepackage[final]{graphicx}
%\documentclass[a4paper,11pt,fleqn,draft]{report}\usepackage[final]{graphicx}
%\documentclass[a4paper,11pt,fleqn,draft]{report}\usepackage[draft]{graphicx}

\def\authors{Gennady Pospelov, Walter Van Herck, Joachim Wuttke}
\def\version{1.16}

\input{Setup}

\begin{document}
\ifdraft{\pagenumbering{roman}}{}
\flushbottom

\input{Macros}
\input{Title}

\tableofcontents\cleardoublepage

\include{Preface}
\pagemode{\thechapter}

\include{Scattering}
\include{Multilayers}
\include{Assemblies}
%\include{Roughness}
%\include{PolarizedScattering}
\include{Instrument}

%\appendix %\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
%\include{..}

\otherchapter{Bibliography}{X}
\bibliographystyle{switch}
\bibliography{jw7}

\otherchapter{List of Symbols}{Y}
\chapter*{List of Symbols}
\label{Snomencl}
\printnomenclature[6em]

\otherchapter{Index}{Z}
\small
\printindex

\end{document}
