%%%%% FORMAT THE PAPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\documentclass[draft,10pt]{thesis}
\documentclass[final,12pt]{thesis}
%\documentclass[compact,10pt]{thesis}
%\documentclass[final,10pt,sflabels]{thesis}
        % Wisconsin thesis requires a single-sided printout, and the page numbers
        % should always at the up right corner ('oneside'), see thesis.cls
        % Curly brackets: Specify the "thesis" class file (thesis.cls).
        %   It assumes the existence of a few other style (*.sty) files.  
        %   See the thesis.cls file for details.
        % Square brackets, specify the options you want to use.
        %   Allowed options are 10pt, 11pt, 12pt, draft, & final.
        %   See the "thesis.cls" file for descriptions.

% NOTE: If you want your figure captions, table captions, and bibliography
% items single-spaced (this is permissible for UW theses!), you can use
% the "\fixspacing" command in each of these environments.  This command
% will choose the appropriate spacing, whether you use the "final" or
% "draft" modes.  See the "thesis.cls" class file for details.
% CLARIFICATION: The \fixspacing command has to go inside EACH of your
%     \tablenotetext blocks to be effective

%\usepackage{lscape}     % Specify this package for landscape-style tables.
% You can use this by wrapping your table in a \begin{landscape}--
% \end{landscape} environment.  Note that the rotated table will
% probably *not* show up in Xdvi, but *will* show up in the PostScript
% version (e.g., can be seen with gv).

\usepackage{xspace}
\usepackage{longtable}   % Specify this package for multipage tables

\usepackage[final]{graphicx}    % Use the LaTeX2e graphics package

\usepackage{subfigure}   % Specify this package to create multipart figures
% with multiple files combined in a single numbered figure 
% i.e., Fig. 1(a), Fig. 1(b), etc.

\usepackage{amsmath,amssymb}  % Load the package for extended mathematical symbol set
\usepackage{axodraw}  % Necessary for using the ZEUS psfigadd command
\usepackage{placeins}
\usepackage{caption2}
\usepackage{epsfig}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage{mcite}
\usepackage{amscd}
\usepackage{array}
\usepackage{multirow}
\usepackage{supertabular}
\usepackage{dcolumn}
\usepackage{xspace}
\usepackage{color}
\usepackage{calc}
\usepackage{ifthen}
\usepackage{cite}
\usepackage{notoccite}

% Line numbers for drafts, thanks to Carlos P.d.l.H. from AMANDA.
% To use this feature, say \linenumbers right after \begin{document}.
% Be sure to remove before printing out the final version!
%                                       --Katherine Rawlins, Oct. 2001
%\usepackage[displaymath,mathlines]{lineno}


%\nofiles       
        % Uncomment to prevent the creation of new *.toc *.lot, and *.lof 
        %   files.  Do this if you need to edit these files for the final
        %   version of the paper.  For example, if you have multi-page 
        %   figures or tables but you want the lists of figures & tables
        %   to have only one line for these, you will need to delete the
        %   extra lines in the *.lof and *.lot files and re-run LaTeX.

\graphicspath{{figs/}}  % Specifies a subdirectory containing graphics files
                        % Multiple directories possible, each with inner {}
                        %   within the outer {}; e.g., {{figs/}{~/plots}}


   % Use \includeonly{} if you are just working on one \include{}'d
   % section.  This prevents LaTeX from re-processing the unneeded
   % chapters, but preserves references and page/fig/table numbers.
   % Try it.  You'll like it. 
   % Default is to compile entire document.
%\includeonly{detector.tex}

%\input{define}          % Read in list of user-defined LaTeX commands
\include{citations}
\include{zeus_def}

\begin{document}        % BEGIN THE DOCUMENT TEXT

%  The cool linenumbers feature... comment it out for the final version
%\linenumbers



%%%%% BEGIN TITLE/CONTENTS PAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{
 A Measurement of Multijet Production in Low-$x_{\rm Bj}$\\
Neutral Current Deep Inelastic Scattering with ZEUS at HERA
}
\author{Thomas Erik Danielson}
\year{2007}

% These aren't really needed except for the UMI abstract
\adviser{Wesley H. Smith}
\adviserrank{Professor}

\ttlpage                % This command produces the title page.  Nifty!
\cpypage                % This produces the copyright page.  Also nifty!
                        % Reminder: it costs money to retain copyright
                        
% The following three lines are for UMI abstract only
                        % Reminder: UMI abstract is required by gradschool but it is NOT a part of your thesis
%\begin{umiabstract}
%\input{umiabstract}    % *.tex file for UMI abstract page
%\end{umiabstract}      % Need to use \input rather than \include to avoid
                        %  implicit \clearpage's.  You shouldn't have any
                        %  cross-references between abstract and text, so
                        %  \input should be OK.

\frontmatter            % Choose roman-type numbers; reset page numbers to 1.

\pagestyle{thesis}      % Set the page style to "thesis" 
                        %   (page numbers at the top right)

%%%%% BEGIN ABSTRACT ETC. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{abstract}      % *.tex file for abstract
%\include{sponsor}      % *.tex file for "sponsorship" page
%\include{dedicate}     % *.tex file for dedication
%\include{quotes}       % *.tex file for quotations
\include{acknow}       % *.tex file for acknowledgements

\tableofcontents        % *.toc file with table of contents
\listoftables           % *.lot file with list of tables
\listoffigures          % *.lof file with list of figures
     % Note that the \listoftables does not play well with the
     % deluxetable environment.  You will probably have to do some
     % hand-tweaking of the master.lot file if you have multi-page
     % tables. 
\clearpage
\pagebreak              % Enforce the start of a new page



%%%%% BEGIN TEXT OF PAPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mainmatter

%\setfoot{\small \itshape \centerline{ DRAFT \today }} 

% This is a hand-tweak by Dolan to fix his odd landscape tables in
% compact style.  REMOVE THIS for your thesis!
%\ifkompakt\renewcommand\arraystretch{1.1}\else\fi

\include{chapter_1_intro}                % *.tex file for the Introduction
\include{chapter_2_evolution}                % *.tex file for the Introduction
\include{chapter_3_detector}      
\include{chapter_4_LO_MC}
\include{chapter_5_NLO}
\include{chapter_6_reconstruction}
\include{chapter_7_selection}
\include{chapter_8_analysis}   
\include{chapter_9_results}
\include{chapter_10_conclusion}    % *.tex file for the Conclusion
\addtocontents{toc}{\protect\vspace{0.5cm}}
\appendix               % Resets chapter numbering to A, B, C... for appendices
\include{data_tables}
\include{systematics}

%\include{bib}          % *.tex file for the Bibliography, or instead, use Latex4ZEUS!
\fixspacing
\bibliography{bibliography,l4z_zeus,l4z_articles,l4z_conferences,l4z_misc,l4z_preprints,l4z_h1,l4z_temporary,syn}  % .bib files for the BibTex references
\bibliographystyle{l4z_default}
%\bibliographystyle{unsrt}   % for using BibTex with references ordered as they appear

% See the thesis.cls file for the steps to convert AASTeX papers
% into thesis chapters


%%%%% BEGIN APPENDICES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}          % END THE DOCUMENT TEXT
