% Upper-case    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
% Lower-case    a b c d e f g h i j k l m n o p q r s t u v w x y z
% Digits        0 1 2 3 4 5 6 7 8 9
% Exclamation   !           Double quote "          Hash (number) #
% Dollar        $           Percent      %          Ampersand     &
% Acute accent  '           Left paren   (          Right paren   )
% Asterisk      *           Plus         +          Comma         ,
% Minus         -           Point        .          Solidus       /
% Colon         :           Semicolon    ;          Less than     <
% Equals        =           Greater than >          Question mark ?
% At            @           Left bracket [          Backslash     \
% Right bracket ]           Circumflex   ^          Underscore    _
% Grave accent  `           Left brace   {          Vertical bar  |
% Right brace   }           Tilde        ~

%
% Spring 2007 Masters Thesis: Optimal Foraging Theory Revisited
% 
% (c) Copyright 2007 by Theodore P. Pavlic
%

% ---------------------------------------------------------------------|
% --------------------------- 72 characters ---------------------------|
% ---------------------------------------------------------------------|

%%faketop{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\documentclass[ms,osudraft]{osudissert96}
\documentclass[ms]{osudissert96}

%%fakepart{Useful packages}
%----------------------------------------------------------------------|

% Gives \ifthenelse
\usepackage{ifthen}

% Let us add lengths together (e.g., in \settowidth below)
\usepackage{calc}

% Give us commands two two optional arguments
\usepackage{twoopt}

%% Citations use natbib (compare to biblatex below)

% Citations: Numbered (e.g., [1]); Use \citet, \citep, \citeauthor, etc.
%\usepackage[numbers,sort&compress]{natbib}
\usepackage[numbers,sort]{natbib}
\usepackage[withbib,all]{authorindex}

%\bibliographystyle{plainnat}
\bibliographystyle{abbrvnat}

%%% This fixes a bug with using backreferences and hyperref
%\makeatletter
%\let\saved@bibitem\@bibitem
%\let\saved@lbibitem\@lbibitem
%\makeatother

%% Citations: Gives \bibentry for vita page 
%% (also consider using multibib)
%\usepackage{bibentry}

%% BibLaTeX is pretty cool, but it's just not ready. For one, the style
%% files just are not available yet. Maybe some other time...
%
% % Citations: Numbered (e.g., [1]); with backwards compatibility to
% % natbib via biblatex
% \usepackage[style=numeric,sortcites=true,useprefix=true,abbreviate=true,
%             keywsort=true,maxnames=2,hyperref=false,backref=true]
%             {biblatex}
% \bibliography{optimal_foraging_theory}
% \let\citet\textcite
% \let\Citet\Textcite
% \let\citep\parencite
% \let\Citep\Parencite
% \let\bibentry\fullcite

% Tables -- gives us \hline[space] that puts space after \hline
\usepackage{tabls}

% Tables -- gives us horizontal rules that separate columns rather than
% vertical
\usepackage{booktabs}

% Give us nicer listing environments, especially for listing within
% paragraphs. Also adds item labels that can be automatically generated
% and labeled like equations. Compact environments: compactenum and
% compactitem 
% (the package enumitem might be a better choice)
\usepackage{paralist}

% Fix referencing of nested enumerations (put a dot between counters)
\makeatletter
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumi.\theenumii}
\renewcommand{\p@enumii}{\theenumi.}
\makeatother

% Mathematical symbols, etc.
\usepackage{amssymb,amsfonts,amsmath,amscd,mathrsfs}

%%fakepart{Acronyms, Symbols, and Index management}
%----------------------------------------------------------------------|

\input{oft_0pre0_index_management}

%%fakepart{Modern graphics support}
% ---------------------------------------------------------------------|

% Use subfig for subfigures
\usepackage[nearskip=-3pt,captionskip=4pt,
            listofformat=subsimple,labelformat=simple]{subfig}
\captionsetup[subfloat]{listofindent=4em}

% % Add subfigures to the List of Figures
% \setcounter{lofdepth}{2}

% Make sure subfigures have parentheses around them everywhere
\renewcommand\thesubfigure{(\alph{subfigure})}

% Use graphicx for including graphics
\usepackage{graphicx}

% Use pict2e for more advanced picture environment support
\usepackage{pict2e}

%%fakepart{Reference handling}
%----------------------------------------------------------------------|

%%%% Organization of figure, table, equation, and footnote numbering

% Have equations/tables/figures numbered by chapter
%\numberwithin{figure}{chapter}
%\numberwithin{table}{chapter}
%\numberwithin{equation}{chapter}

% Clear the footnote counter at every new chapter
\makeatletter \@addtoreset{footnote}{chapter} \makeatother

%%%% Reference management
\input{oft_0pre1_cross_refs}

%%fakepart{Miscellaneous}
%----------------------------------------------------------------------|

%%%% Macros
\input{oft_0pre2_macros}

%%faketop{Begin Document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% This will make chapter titles show up in uppercase
% (however, they will be normal case in the TOC)
\renewcommand\typesetChapterTitle[1]{\uppercase{#1}}

\includeonly{
        oft_ch0_ack,
        oft_ch0_vita,
        oft_ch1_intro,
        oft_ch2_model,
        oft_ch3_optimization_objectives,
        oft_ch4_optimization_results,
        oft_ch5_conclusion,
        oft_zapp_markov_encounter_sto_limits,
        %oft_zapp_lemma,
        }

\begin{document}
%% For bibentry commands
%\begingroup
%        \makeatletter
%        \let\@bibitem\saved@bibitem
%        \let\@lbibitem\saved@lbibitem
%        \nobibliography*
%\endgroup

%%fakepart{Author and Committee Information}
%----------------------------------------------------------------------|

%%%% Author information
\author{Theodore P.~Pavlic}
%% Be sure to use modified style that makes this uppercase
\title{Optimal Foraging Theory Revisited}
\authordegrees{B.S.}
\graduationyear{2007}
% Graduate Units get rid of ``Department'' and replace with ``Graduate
% Program'' in either of these two ways
%\unit{Graduate Program in 
%        Electrical \& Computer Engineering Graduate Program}
\unit{Electrical \& Computer Engineering Graduate Program}

%%%% M.S. Committee
\advisorname{Kevin M.~Passino}
\member{Yuan F.~Zheng}
\member{Thomas A.~Waite}

%%fakepart{Title Page, Copyright, and Abstract}
%----------------------------------------------------------------------|

% Create a title page
\maketitle

% Copyright the dissertation
\disscopyright

% The abstract
\begin{abstract}
        \input{oft_ch0_abstract}
\end{abstract}

% % The external abstract
% \begin{externalabstract}
%        \input{oft_ch0_abstract}
% \end{externalabstract}

%%fakepart{Dedication, Acknowledgments, Vita}
%----------------------------------------------------------------------|

% Dedication
\dedication{This is dedicated to my brother \aimention{Kenneth
Timmons}Kenny, whose bright disposition in dark times is not only
illuminating but warming. I could not be more proud to be a part of a
family that could produce someone like him.}

% Acknowledgments and Vita
\include{oft_ch0_ack}
\include{oft_ch0_vita}

%%fakepart{Table of Contents}
%----------------------------------------------------------------------|

% TOC stuff
\tableofcontents
\listoftables
\listoffigures

%%faketop{Main Document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Chapter 1: Introduction
\include{oft_ch1_intro}

% Chapter 2: Models of a Solitary Agent
\include{oft_ch2_model}

%% Discard this old chapter: too long and not relevant
% % Chapter 3: Review of Classical Optimal Foraging Theory
% \include{oft_ch3_review_classical_oft}

% Chapter 3: Optimization Objectives
\include{oft_ch3_optimization_objectives}

% Chapter 4: Optimization Results
\include{oft_ch4_optimization_results}

% Chapter 5: Conclusions
\include{oft_ch5_conclusion}

%%faketop{Appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix

% Appendix A: Stochastic Limits of Markov Renewal Encounter Process
\include{oft_zapp_markov_encounter_sto_limits}

% % Appendix B: Proof of a simple lemma about ratios
% \include{oft_zapp_lemma}

% Get rid of the math appendix for brevity; instead, use oft_zend_symbols
% for all the symbols
%
% % Appendix C: Lots of math background
% \include{oft_zapp_math}
% 
% % Appendix D: Renewal theory
% \include{oft_zapp_renewal}
% 
% % Appendix E: Lagrange Multiplier Method (KKT conditions/etc.)
% \include{oft_zapp_lagrange}

% Appendix Z: Symbols (result of makeappsyms)
\input{oft_zend_symbols}

%%faketop{End Document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% The rest of the document can be single spaced
\startsinglespace

% Bibliography
\setcounter{footnote}{0}
\phantomsection
\label{ch:bibliography}%
\addcontentsline{toc}{chapter}{Bibliography}%
%
%
%%% biblatex
%\newcommand{\bibfootnote}{Pages where the item is referenced are given
%in angle brackets (\hypertarget{ch:bibliography}{\eg},
%\examplebracketref{ch:bibliography}).}
%\defbibheading{thesisheading}%
%        {\chapter*{\MakeUppercase{\bibname}\footnote{\bibfootnote}}}
%\printbibliography[heading=thesisheading,keyword=AA,maxnames=25]
%\nocite{*}
%
%
%
%% Natbib
\bibliography{optimal_foraging_theory}

% List of Acronyms (Glossary)
\printindex[acronyms]

% List of Terms (Glossary)
\printindex[terms]

% List of Symbols (Glossary)
\printindex[symbols]

% Index
\printindex

% Citation Index
%\printindex[cite]

% Author Index
\printauthorindex

\end{document}
