%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%   BornAgain User Manual
%%
%%   homepage:   http://www.bornagainproject.org
%%
%%   copyright:  Forschungszentrum Jülich GmbH 2015
%%
%%   license:    Creative Commons CC-BY-SA
%%
%%   authors:    Scientific Computing Group at MLZ Garching
%%               C. Durniak, M. Ganeva, G. Pospelov, W. Van Herck, J. Wuttke
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% To compile this report, run
%   xelatex BornAgainManual
%   bibtex  BornAgainManual
%   xelatex BornAgainManual
%   makeindex BornAgainManual
%   makeindex -s nomencl.ist BornAgainManual.nlo -o BornAgainManual.nls
%   xelatex BornAgainManual

%\includeonly{Assemblies}
%\includeonly{ScatteringTheory}
%\includeonly{Introduction,Conventions,OnlineDocs,ScatteringTheory,PolarizedScattering,Multilayers,Assemblies,Domains,Roughness,Experiment}
%\includeonly{FormFactors}

\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{Jan Burle, Céline Durniak, Jonathan M.\ Fisher, Marina Ganeva, Gennady Pospelov,
Walter Van Herck, Joachim Wuttke}
\def\version{1.7.2}

\input{Setup}

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

\input{Macros}
\input{Title}

\tableofcontents\cleardoublepage

\include{Introduction}
\pagemode{\thechapter}

%%%%  Part I: Physics
\include{Scattering}
\include{Multilayers}
\include{Assemblies}
\include{Roughness}
\include{PolarizedScattering}
\include{Instrument}

%%%% Part II: Reference
\include{ThreeAPIs}
\include{BasicRef}
\include{Sample}
\include{Particles}
\include{FormFactors}

%\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}
