\documentclass[12pt,twoside,workingdraft]{mitthesis}
\usepackage{xspace}
\usepackage{url}
\usepackage{color}
\usepackage{graphicx}
\usepackage{balance}
\usepackage{color}
\usepackage[tracking]{microtype}  % I am a font nerd.
\usepackage{caption}
\DeclareCaptionType{copyrightbox}
\usepackage[normalsize]{subfigure}
\usepackage{nicefrac}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{lastpage}
\usepackage[x11names, rgb]{xcolor}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
\usepackage{listings}
\usepackage{array}
\usepackage{cite}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{relsize}
\usepackage[xspace]{ellipsis}
\usepackage{titlesec}
\usepackage{textcase}
\usepackage{booktabs}
\usepackage{attrib}
\usepackage{epigraph}
\usepackage{enumitem}
\usepackage[textsize=footnotesize,backgroundcolor=white]{todonotes}
\usepackage{alltt}

\pagestyle{plain}
\input{svnrev}
\input{macros}
\definecolor{linkblue} {rgb}{0.0,0.0,0.8}
\definecolor{linkred}  {rgb}{0.7,0.0,0.0}
\ifworkingdraft
\usepackage[bookmarksopen,colorlinks,backref,
            linkcolor=linkblue,citecolor=linkblue,urlcolor=linkblue]
            {hyperref}
\else
\ifproof
\usepackage[bookmarksopen,colorlinks,
            linkcolor=linkblue,citecolor=linkblue,urlcolor=linkblue]
            {hyperref}
\else
\ifwebversion
\usepackage[bookmarksopen,colorlinks,
            linkcolor=linkblue,citecolor=linkblue,urlcolor=linkblue]
            {hyperref}
\else
\usepackage[bookmarksopen,colorlinks,
            linkcolor=black,citecolor=black,urlcolor=black]
            {hyperref}
\fi
\fi
\fi

\ifworkingdraft
\renewcommand*{\backref}[1]{}  
\renewcommand*{\backrefalt}[4]{
  \ifcase #1
  \or
  Cited in Section #2.
  \else
  Cited in Sections #2.
  \fi}
\fi
    
%\renewcommand\citeform[1]{\liningnumerals #1}

% this has to be loaded after hyperref
\usepackage{cleveref}
\newcommand{\crefrangeconjunction}{--}

\usepackage[T1]{fontenc}
\usepackage[urw-garamond,expert]{mathdesign}
\usepackage{adobegaramond}
\usepackage{textmath}
\usepackage{courier}
%\usepackage[boldemph]{comicsans}
\linespread{1.15}         % increase leading
\frenchspacing

\renewcommand{\epigraphsize}{\footnotesize}
\addtolength{\epigraphwidth}{0.7in}
\setlength{\epigraphrule}{0pt}
\setlength{\beforeepigraphskip}{-1em}
\setlength{\afterepigraphskip}{1em}


% Seriously, don't split footnotes across pages!
\interfootnotelinepenalty=10000

% enable synctex
\synctex=1

\newcommand\liningnumerals[0]{\fontfamily{pagx}\selectfont}
\newcommand\oldstylenumerals[0]{\fontfamily{pagj}\selectfont}

%pplr9d = palatino
{\newfont{\chapterNumber}{LY1-AGaramondPro-Semibold-onum-kern-liga scaled 10000}
\definecolor{halfgray}{gray}{0.5}
\DeclareRobustCommand{\spacedallcaps}[1]{\textls[160]{\MakeTextUppercase{#1}}}%
\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}
\titleformat{\chapter}[display]%
        {\relax}{\mbox{}\centering\vspace*{0.6\baselineskip}\color{halfgray}\chapterNumber\thechapter}{0pt}%
        {\raggedright\Large\bf\centering\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule] 
% \titleformat{\chapter}[display]%
%         {\relax}{\mbox{}\hfill\vspace*{-1\baselineskip}\color{halfgray}\chapterNumber\thechapter}{0pt}%
%         {\raggedright\Large\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]
\titleformat{\section}
      {\relax}{\Large\textsc{\MakeTextLowercase{\thesection}}}{1em}{\Large\spacedlowsmallcaps}
\titleformat{\subsection}
        {\relax}{\large\textsc{\MakeTextLowercase{\thesubsection}}}{1em}{\large\spacedlowsmallcaps}
\titleformat{\subsubsection}
        {\relax}{\textsc{\MakeTextLowercase{\thesubsubsection}}}{1em}{\normalsize\itshape}        

    

\def\chapterautorefname{Chapter}
\def\sectionautorefname{Section}
\def\subsectionautorefname{Section}
\def\subsubsectionautorefname{Section}

% change Table 4.1 to Figure 4-1                                               
\renewcommand*{\thetable}{\thechapter-\arabic{table}}                    
                                                                                
% Use the same counter for tables, figures and listings                         
% i think this needs to be after \begin{document}                               
\makeatletter                                                                   
\let\c@table\c@figure                                                           
\makeatother

\begin{document}

\title{Application-Level~Caching with Transactional~Consistency}
\author{Dan R. K. Ports}
\department{Department~of~Electrical~Engineering~and~Computer~Science}
\prevdegrees{M.Eng., Massachusetts Institute of Technology (2007)\\
  S.B., S.B., Massachusetts Institute of Technology (2005)}
\degree{Doctor of Philosophy in Computer Science}
\degreemonth{June}
\degreeyear{2012}
\thesisdate{May 23, 2012}
\supervisor{Barbara H. Liskov}{Institute Professor}
\chairman{Leslie A. Kolodziejski}{Chair, Department Committee
  on Graduate Theses}

\makeatletter
\hypersetup{pdftitle={\@title}}
\hypersetup{pdfauthor={\@author}}
\makeatother

\maketitle

\ifworkingdraft
\listoftodos
\cleardoublepage
\fi

\setcounter{savepage}{\thepage}
\begin{abstractpage}
\input{abstract}
\end{abstractpage}

\input{acknowledgments}

\cleardoublepage
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage
\listoftables
%\cleardoublepage
%\lstlistoflistings

\input{intro}
\input{arch}
\input{programming}
\input{consistency-model}
\input{consistency-protocol}
\input{storage}
\input{inval}
\input{eval}
\input{relwork}
\input{conclusion}
\appendix
\input{rw}
\input{serializability}

\bibliographystyle{plain}
\bibliography{thesis,../bibliography/bibliography}

\end{document}


%  LocalWords:  memoization
