rendered paste body\documentclass[a4paper,11pt, twoside]{book}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{a4,fancyhdr}
\pagestyle{fancyplain}
\linespread{1.1}
%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
{\fancyplain{}{\thepage}}
\cfoot{}
\sloppy
\usepackage[Sonny]{fncychap}
\ChTitleVar{\huge\sf}
% insert program listings using \listing{<filename>}
\newcount\lineno
\font\Alisttt=cmtt9 at 9 truept
\font\Alistrm=cmr8 at 8 truept
\def\uncatcodespecials{\def\do##1{\catcode`##1=12 }\dospecials}
\def\listing#1{\par\begingroup\setupverbatim\input#1 \endgroup}
\def\setupverbatim{
\Alisttt\baselineskip= 8.5truept\lineskip=1truept
\lineskiplimit=1truept\topskip=0pt
\lineno=0
\def\par{\leavevmode\egroup\box0\endgraf}
\obeylines \uncatcodespecials \obeyspaces
\catcode`\`=\active \catcode`\^^I=\active
\everypar{\advance\lineno by1
\llap{\Alistrm\the\lineno\ \ }\startbox}}
\newdimen\w \setbox0=\hbox{\Alisttt\space} \w=8\wd0
\def\startbox{\setbox0=\hbox\bgroup}
{\catcode`\^^I=\active
\gdef^^I{\leavevmode\egroup
\dimen0=\wd0
\divide\dimen0 by\w
\multiply\dimen0 by\w
\advance\dimen0 by\w
\wd0=\dimen0 \box0 \startbox}}
{\obeyspaces\global\let =\ }
{\catcode`\`=\active \gdef`{\relax\lq}}
%\usepackage{doxygen}
%\include{pdfs}
%maple setup
%\usepackage{maple2e}
% \def\emptyline{\vspace{12pt}}
%\DefineParaStyle{Maple Output}
%\DefineParaStyle{Maple Plot}
%\DefineCharStyle{2D Math}
%\DefineCharStyle{2D Output}
\setlength\arraycolsep{2pt}
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{example}{Example}[section]
%% start the show...
\begin{document}
\begin{titlepage}
\vspace*{2in}
\par\noindent
\begin{Huge}{Pricing American Options by\newline Simulation with Importance Sampling}\end{Huge}
\par\noindent
\rule{\textwidth}{0.4pt}
\par
\begin{center}
\vspace{1.5in}
{\LARGE Simon J. Pascoe}
{\Large
\par
\vspace{1.5in}
A Thesis submitted for the
Degree of Master of Science in Mathematics
\par
\vspace{0.5in}
Imperial College London
\par
\vspace{0.5in}
June 2006}
\end{center}
\end{titlepage}
\setcounter{page}{1}
\pagenumbering{roman}
\tableofcontents
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\clearpage
\chapter*{Acknowledgements}
\include{introduction}
\part{Single Factor Options}
\include{pricing}
\include{lsmethod}
\include{isampling}
\part{Extensions to Multifactor Options}
\include{multifactor}
\include{multisampling}
\part{Option Pricing Framework and Further Examples}
\include{framework}
\include{applications}
\part{Conclusions and Summary}
\include{theend}
\part{Reference}
\begin{appendix}
\appendix
\include{app_vs2005}
\include{app_cd}
\include{app_docs}
\end{appendix}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{alpha}
\thispagestyle{empty}
\bibliography{bib}
\end{document}