% style for senhonformat.ltx

\usepackage{fontspec} %calls euenc
\usepackage{xunicode}
\usepackage{xltxtra}
%\setmainfont{Times New Roman}
\setmainfont{Charis SIL}


\RequirePackage{setspace}
\usepackage[pdftex,
    letterpaper,
    pdftitle={\@title},
    pdfauthor={\@author},
    pdfsubject=Linguistics,
    xetex]{hyperref}
\doublespacing

\pagestyle{plain}  % page numbers at bottom of page
\setlength{\oddsidemargin}{0.5in}  % add 1 inch to this to get 1.5in left margin
\setlength{\textwidth}{6in}  % 1.5in left margin + 6in text leaves 1in right
\setlength{\topmargin}{0in}  % add 1 inch to this to get 1in top margin
\setlength{\headsep}{0in}  % because we will use no running heads
\setlength{\textheight}{8.25in} 
\setlength{\footskip}{0.5in}  % space above the page number

\raggedright  % no justification of right margin

\setlength{\parindent}{0.5in}  % indent first line of most paragraphs
\pagenumbering{roman}  % e.g. ii. Will retain this style until main text starts
\setlength{\footnotesep}{24pt}  % skip line between footnotes
\renewcommand{\footnotesize}{\small}  % default was lots smaller than text

\renewcommand{\maketitle}[1][A thesis presented to the\\
Linguistics Program\\
of Washington University in\\
partial fulfillment of the\\
requirements for the \\
degree of Bachelor of Arts\\
with Honors]{\newpage
\thispagestyle{empty}
\begin{center}
WASHINGTON UNIVERSITY\\
Linguistics Program\\
\vspace*{\stretch{1}}
\expandafter{\textbf\@title}\\
by\\
\@author\\
\vspace*{\stretch{1}}
#1\\
\vspace*{\stretch{2}}
\@date\\
Saint Louis, Missouri
\end{center}
\newpage
}

\newcommand{\frontsection}[1]{
\newpage
\addcontentsline{toc}{section}{\numberline{}#1}
\begin{center}\textbf{\large #1}\end{center}\@afterindentfalse\@afterheading}

\renewenvironment{abstract}{\frontsection{Abstract}}{}


\let\@ldtableofcontents\tableofcontents
\renewcommand{\tableofcontents}{
\renewcommand{\contentsname}{\centering{\large Table of Contents}}
\newpage
\addcontentsline{toc}{section}{\numberline{}Contents}
\@ldtableofcontents
}

\newcommand{\acknowledgments}{\frontsection{Acknowledgments}}

\newcommand{\abbreviations}{\frontsection{Abbreviations}}

\newcommand{\symbols}{\frontsection{Symbols}}

\newcommand{\mainmatter}{
\newpage
\pagenumbering{arabic}
}

\newcommand{\backsection}[1]{\frontsection{#1}}

\renewcommand\listfigurename{\large Figures}
\renewcommand\listtablename{\large Tables}
\newcommand\listofillustrations{
    \frontsection{List of Illustrations}
    \noindent\textbf{\listfigurename}\par\@starttoc{lof}\par\bigskip
    \noindent\textbf{\listtablename}\par\@starttoc{lot}
}
\renewcommand\listoffigures{
    \frontsection{List of \listfigurename}
    \@starttoc{lof}
}
\renewcommand\listoftables{
    \frontsection{List of \listtablename}
    \@starttoc{lot}
}

\newenvironment{references}{
\backsection{References}

\begin{list}{}{
\setlength{\leftmargin}{0.5in}
\setlength{\itemindent}{-0.5in}
\setlength{\itemsep}{0in}
}}{
\end{list}
}

\newcommand{\parhead}[1]{\textbf{#1}}  % section heading in a paragraph
\newcommand{\phonet}[1]{[#1]}
\newcommand{\phonem}[1]{/#1/]}
\newcommand{\bibtitle}[1]{\textit{#1}}  % book or journal title


