\listfiles

\documentclass[]{msu-thesis}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{amsmath}
\title{The syntax and semantics of phonology}
\author{Joe Linguist}
\fieldofstudy{Linguistics}
\dedication{This thesis is dedicated to someone.}
\date{2010}

\usepackage{lipsum}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{gb4e}
\usepackage{cgloss}
\usepackage{natbib}

\counterwithin{exx}{chapter}
\bibliographystyle{unified}
\singlegloss
% Uncomment the next two lines for single spaced examples with gb4e
%\let\oldexe\exe
%\renewcommand{\exe}{\SingleSpacing\oldexe}
\begin{document}
\frontmatter
\maketitlepage
\begin{abstract}
\lipsum
\end{abstract}
\clearpage
\makecopyrightpage
\makededicationpage
\clearpage
\chapter*{Acknowledgements}
\DoubleSpacing
\lipsum[1]
\clearpage
\SingleSpacing
\tableofcontents* % ToC will not appear in the table of contents
\clearpage
\listoftables
\clearpage
\listoffigures
\mainmatter
% The next command changes chapters in the TOC to have no dotted leader
%\addtocontents{toc}{\protect\renewcommand{\protect\cftchapterdotsep}{\cftnodots}}
\chapter{Introduction}
\section{Some section}
\lipsum[2]

\subsection{Subsection}
\lipsum
\subsubsection{Subsubsection}
\begin{exe}
\ex\label{1}
\begin{xlist}
\ex[]{This is a linguistic example that is very long to see how it wraps around onto the next line of the text.}
\ex[]{This_{i} is an example_{i} with subscripts.}
\ex[*]{This is another example.}
\ex[]{This is a third example}
\ex[]{\gll Une example francaise\\
 an example french\\
\trans A French example.}
\end{xlist}
\end{exe}

\lipsum[1]
\lipsum[2]\cite{munn1999} says the following.\footnote{A footnote. This is a footnote with a subscript$_{\text{i}_{\text{j}}}$.  \lipsum[9]} \lipsum[2]
\begin{table}
\centering
\begin{tabular}{ccc}
\toprule
Men & Women & Monsters\\
\midrule
29 & 33 & 51\\
\bottomrule
\end{tabular}
\caption{A sample table}
\end{table}

\lipsum[3]
\section{More stuff}
\lipsum[4]\cite{munn2005}
\begin{figure}
\centering
{\color{gray!40}\rule{2in}{3in}}
\caption[A sample figure]{A sample figure with a figure caption that is extremely long to show single spacing in the long caption.}
\end{figure}
\lipsum[5]
\lipsum[10]
\chapter{A chapter with a really long title to see whether the chapter titles wrap correctly}
\lipsum
\begin{figure}
\centering
{\color{gray!40}\rule{4in}{2in}}
\caption{Another sample figure}
\end{figure}
\lipsum[6]
\section{A section with a really long title to check that sections wrap in the right way}
\subsection{A subsection with a really long title to check that sections wrap in the right way}
\subsubsection{A subsubsection with a really long title to check that sections wrap in the right way}
\begin{table}
\centering
\begin{tabular}{ccc}
\toprule
Men & Women & Monsters\\
\midrule
29 & 33 & 51\\
\bottomrule
\end{tabular}
\caption{Another sample table.}
\end{table}
\lipsum[7]
\begin{exe}
\ex\label{2}
\begin{xlist}
\ex[]{This^{i^{j^{k}}} contains three superscripts of the right size.}
\ex[]{This_{i_{j_{k}}} contains three subscripts of the right size.}
\end{xlist}
\end{exe}
\begin{figure}
\centering
{\color{gray!40}\rule{4in}{2in}}
\caption{Another sample figure}
\end{figure}
\lipsum[2]
\begin{quote}
\SingleSpacing
This is a sample long quotation. \lipsum[2]

\hfill{\citep{munn1999}}
\end{quote}
\begin{table}
\centering
\begin{tabular}{ccc}
\toprule
Men & Women & Monsters\\
\midrule
29 & 33 & 51\\
\bottomrule
\end{tabular}
\caption{Another sample table.}
\end{table}
\lipsum[8]

% Uncomment this next command if you have more than one appendix
%\appendicestrue

% This command creates the cover page for the appendix/appendices
\makeappendixcover
\appendix
\chapter{An appendix}
\lipsum[9-15]
\backmatter
% The next command forces the Bibliography to have a dotted leader
% (May not be required)
\addtocontents{toc}{%
   \protect\renewcommand{\protect\cftchapterdotsep}{\cftdotsep}}
\SingleSpacing
% This command creates the cover page for the bibliography
\makebibliographycover
\bibliography{MSU-thesis-testfile}
\end{document}

