\documentclass[twoside]{report}

%\topmargin -1cm 
%\textwidth 16.5cm 
%\textheight 22.5cm 
%\oddsidemargin 0cm 
%\evensidemargin 0cm 

%\listfiles %lists files called in compiling this document

%\usepackage{showkeys} %shows label names
%\usepackage{axodraw,color}%,graphicx}
\usepackage{latexsym,amssymb,epsf}
\usepackage{setspace,cite} %double spacing for text, single for captions,
		      	   %footnotes, etc.
%\usepackage{mcite}
%\usepackage{draft}
\usepackage{equations,fancyhdr,graphicx}  % may need to comment some
					  % out to process this file
%\usepackage{makeidx}
\usepackage{a4}
%\usepackage{chapterbib}

%\makeindex
\raggedbottom
%\addtolength{\topmargin}{-1.4cm}
%\addtolength{\oddsidemargin} {-0.7cm}
%\addtolength{\evensidemargin}{-3.5cm}
\setlength{\textheight}{23cm}
\setlength{\textwidth}{13.7cm}

%   this is for BibTeX.  If you choose not to use it and to make your
%   own bibliography (which is daft, imo), remove these lines
\bibliographystyle{h-physrev3}
\bibliography{../jcwbibliography/rwj
%rwj.bib is provided with these files

% fully inclusive
\includeonly{header,intro,background,appendix}


\begin{document}

\newpage
\pagenumbering{arabic}
\setcounter{page}{1} \pagestyle{fancy} %\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername%
\ \thechapter:\,\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\,\ #1}}

\include{header}

\newpage


%{\setlength{\baselineskip}{24pt} 
%\pagestyle{fancy}
\addtolength{\headheight}{3pt}    % more space for rule under running head
\fancyhead{}
%\fancyhead[LE]{\sl\leftmark}
%\fancyhead[LO,RE]{\rm\thepage}
%\fancyhead[RO]{\sl\rightmark}
\fancyhead[LE]{\sl\leftmark}
\fancyhead[LO,RE]{\rm\thepage}
\fancyhead[RO]{\sl\rightmark}
\fancyfoot[C,L,E]{}


\pagenumbering{arabic}

%\chapter{Introduction}
\include{intro}
%\chapter{A few background bits and pieces}
\include{background}
%\chapter{Pomeron exchange in diffractive DIS}
\renewcommand{\chaptermark}[1]{\markboth{Appendix%\chaptername%
\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\appendix
%\chapter{Appendix: Constraints on parton virtualities}
\include{appendix}


\bibliography{rwj}
%\printindex
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% End of file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




