\documentclass[12pt]{report}

% used in each figure after the caption
\newenvironment{fignote}
   {\vspace{\parsep}\begin{minipage}{\columnwidth}[}
   {]\end{minipage}}

\newenvironment{fignotecenter}
   {\vspace{\parsep}\begin{minipage}{\columnwidth}\centering[}
   {]\end{minipage}}

\newenvironment{tabnote}
   {\begin{minipage}{\columnwidth}[}
   {]\end{minipage}\vspace{\parsep}}

\newenvironment{tabnotecenter}
   {\begin{minipage}{\columnwidth}\centering[}
   {]\end{minipage}\vspace{\parsep}}

\newcommand\mytitle{Storage Management for Large Scale Systems}

\usepackage[sort&compress]{natbib}
\bibpunct{[}{]}{,}{n}{}{;}
%\newcommand{\citet}{\cite}
%\newcommand{\citeauthor}{\cite}

\usepackage{uofs-thesis}
\usepackage{url,subfigure,float,fancyhdr}
\usepackage{bigdelim,bigstrut,multirow}
\usepackage{mathrsfs,amsmath}

\newcommand{\myfigwidth}{.6\columnwidth}
\newcommand{\myfigwidththree}{.5\columnwidth}

% these are already included by uofs-thesis.sty
%\usepackage{setspace}

% for inverse search of kdvi, not recommended for MiKTeX, since MiKTeX
% can inserts source information much better than srcltx.sty
%\usepackage[active]{srcltx}

\usepackage{ifthen}                 %%% package for conditionals in TeX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SWITCH FOR PDFLATEX or LATEX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\pdfoutput\undefined %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LATEX %%%
\usepackage[dvips]{graphicx}       %%% graphics for dvips
\usepackage[colorlinks=true, linkcolor=blue, 
            citecolor=blue, urlcolor=blue,
ps2pdf,                %%% hyper-references for ps2pdf
bookmarks=true,%                   %%% generate bookmarks ...
bookmarksnumbered=true,%           %%% ... with numbers
]{hyperref}
% pdfcreator and pdfproducer are set automatically in pdfLaTeX
\hypersetup{pdfcreator  = {LaTeX with hyperref package, dvips, and ps2pdf},
            pdfproducer = {dvips + ps2pdf}}
\let\url\nolinkurl % because dvips cannot break url across lines

\else %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PDFLATEX %%%

\usepackage[pdftex]{graphicx}
\usepackage[colorlinks=true, linkcolor=blue, 
            citecolor=blue, urlcolor=blue,
pdftex,                %%% hyper-references for pdflatex
bookmarks=true,%                   %%% generate bookmarks ...
bookmarksnumbered=true,%           %%% ... with numbers
]{hyperref}
\pdfadjustspacing=1                %%% force LaTeX-like character spacing

\fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF CONDITION %%%

\hypersetup{%
 pdfauthor   = {Wenguang Wang <wang@cs.usask.ca>},
 pdftitle    = {\mytitle},
 pdfsubject  = {Ph.D. Thesis},
 pdfkeywords = {performance evaluation, storage system, file
 system, disk layout, buffer cache replacement algorithm, DBMS}
}

% for tex2page to reuse images
%\imgdef\myeta{$\eta$}
%\imgdef\myh{$h$}
\newcommand\myeta{$\eta$}
\newcommand\myh{$h$}

%use the \includeonly command to speed up processing of your thesis.
%Since each chapter starts on a new page it is best to create seperate 
%latex files for each chapter and then use the \include command to 
%insert each chapter into the thesis. The \includeonly command allows you
%to process only those files given as arguements yet still maintain all
%references, pagenumberings, etc.

%\includeonly{intro,relatedwork,simulator,bufferpool,contention,physical,conclusion}
%\includeonly{relatedwork}

%\setlength{\topmargin}{-0.75in}
%\setlength{\textheight}{9in}
%\setlength{\textwidth}{6.5in}
%\setlength{\oddsidemargin}{0in}
%\setlength{\evensidemargin}{0in}

% you can put a figure caption inside a table environment
% by command \figcaption.
% you can put a table caption inside a figure environment
% by command \tabcaption.
\makeatletter
    \newcommand\figcaption{\def\@captype{figure}\caption}
    \newcommand\tabcaption{\def\@captype{table}\caption}
\makeatother

% allow many figures on one page
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
\setcounter{totalnumber}{100}
\renewcommand{\topfraction}{1.00}
\renewcommand{\bottomfraction}{1.00}
\renewcommand{\textfraction}{0.00}

% GO was here
%\setcounter{lofdepth}{1}
%%%% I Guess these are for Sub-section Numbering
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{4}

%\singlespacing
%\onehalfspacing
%\doublespacing

\newtheorem{Theorem}{Theorem}

\begin{document}

%\title{Storage Management in RDBMS}
%\author{%
%      \begin{tabular}[t]{c}
%        PhD Student: Wenguang Wang\\
%        Supervisor: Professor Rick Bunt\\
%        Department of Computer Science\\
%        University of Saskatchewan\\
%        57 Campus Drive\\
%        Saskatoon, SK S7N 5A9\\
%        Canada\\
%        Email: wew036@cs.usask.ca
%      \end{tabular}
%       }
%\maketitle

        %three commands are available for customizing the heading displays
        %for Chapters, Table of Contents, etc.
        %\chapsmall  - use small fonts for headings
        %\chapcenter - center all headings
        %\chapcaps   - headings all CAPS (does not include user defined headings
        %              such as \chapter{chaptername}, you would have to use
        %              \chapter{CHAPTERNAME} to get all caps) 
        %
        %by default headings are huge, lower case (except first letter), and left just.

%       \chapsmall
%       \chapcenter
%       \chapcaps

        %title and preamble
        \title{\mytitle}
        \author{Wenguang Wang}
        \degree{Doctor of Philosophy}
        \degreemonth{October}
        \degreeyear{2004}
        \prevdegrees{B.S. Computer Science, Shandong University, China (1995)\\
        M.Sc. Computer Science, Institute of Computing Technology,
        Chinese Academy of Sciences, China (1998)}
        \department{Department of Computer Science}

        % If there is more than one supervisor, use the \supervisor command
        % once for each.
        \supervisor{Rick B. Bunt}

        %usage: \isproposal for proposal, otherwise thesis
        %\isproposal
        \maketitle

        %here is the permission to use page
        %usage: \permission
        \permission

        \abstractpage{\input{abstract}}
        \endabstractpage
 
        %here is the acknowledgment section of the thesis
        %usage: \acknowledge{ text }
%        \acknowledge{\input{acknowledge}}

        %Display the contents section i.e., toc, lot, lof, loa and
        %set up the rest of the formatting for the thesis
        %if you want to skip toc, lof, and/or lot use the commands \notoc,\nolof,\nolot
        %before using the \thesisbody command
        %
       %\notoc
       %\nolof
       %\nolot
       %\noloa

%%     Sample format of the acronym.tex
%%     \chapter*{List of Acronyms}
%%     { \flushleft
%%     
%%     \textbf{2Q} -- Two Queue
%%     
%%     \textbf{AFC} -- Application/file-level characterization
%%     }

%      if no acronym is required, use the following line
%      \begin{thesisbody}{} % no acronym
%      otherwise, use the following line to add acronyms
       \begin{thesisbody}{\input{acronym}} % with acronym
          %chapters
          \include{intro}
          \include{relatedwork}
          \include{simulator}
          \include{bufferpool}
          \include{contention}
          \include{physical}
          \include{conclusion}
        \end{thesisbody}

    %\bibliographystyle{plainnat}
    \bibliographystyle{plain}
    \bibliography{../bib/wwg}
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
