\documentclass[english,russian,12pt]{ttuthes}

\usepackage{amsmath,amssymb,latexsym,amsthm,babel}
\usepackage{graphics}
\usepackage{graphicx}

%various other packages
%\usepackage{tree-dvips}
%\usepackage{ecltree}
%\usepackage{epic}
%\usepackage{qtree} <-- this is perhaps the better package for drawing trees
%\usepackage{lscape}

\newcommand{\grad}{\nabla}
\newcommand{\eps}{\epsilon}
\newcommand{\esp}{\epsilon}
\newcommand{\rtaw}{\rightarrow}
\newcommand{\dspl}{\displaystyle}
\newcommand{\bx}{\bar{x}}
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{notations}{Notations}[section]
\newtheorem{notation}{Notation}[section]
\newtheorem{assumption}{Assumption}[section]
\newtheorem{remark}{Remark}[chapter]
\newtheorem{problem}{Problem}[section]
\newtheorem{conjecture}{Conjecture}[section]

\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\renewcommand{\theremark}{\arabic{chapter}.\arabic{remark}}
\renewcommand{\thelemma}{\arabic{chapter}.\arabic{lemma}}
\renewcommand{\thecorollary}{\arabic{chapter}.\arabic{corollary}}
\renewcommand{\thetheorem}{\arabic{chapter}.\arabic{theorem}}

%%The following is my command for writing fractions in text; E.g., ...then, $\gf{1}{2}$ is...
\newcommand{\gf}[2]{\genfrac{}{}{0.5pt}{0}{#1}{#2}}

\begin{document}
\frontmatter
\chapter{ACKNOWLEDGMENTS}

% To thank someone or write in another language 
% If you compile this file, the following will appear in Russian.
\selectlanguage{russian}
По-русский
\selectlanguage{english}
In English
\tableofcontents

\chapter{ABSTRACT}


%comment out \listoffigures if you lack figures
\renewcommand{\baselinestretch}{1}\selectfont
\listoffigures \addcontentsline{toc}{chapter}{LIST OF FIGURES}
\renewcommand{\baselinestretch}{1.5}\selectfont

\mainmatter \setcounter{page}{1} \pagenumbering{arabic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{INTRODUCTION}
\setcounter{equation}{0}

%write in ALL CAPS when naming the chapter
\chapter{}

%normal capitalization in section
\section{}
%normal capitalization in subsection
%\subsection{}

%Spacing before and after equations.  I used the following \vspace command to correct the double spacing; use this also %with tables.  I sometimes had to use \vspace{-.15in} with tables
%\vspace{-.1in}
%\[
% a_1 \geq a_2 \geq \cdots \geq a_k \geq 1.
% \vspace{-.1in}
%\]


%Also, when using \begin{eqnarray} \end{eqnarray}, etc., be sure that the last line does not contain the newline command: \\
%E.g.:
%\begin{eqnarray}
% 3 \equiv 1 \mod 2
%\end{eqnarray}
%Instead of:
%\begin{eqnarray}
%3 \equiv 1 \mod 2 \\
%\end{eqnarray}

 
%Bibliography goes on a new page
\newpage

%Use \nocite{*} to inlcude references not directly referred to in the text
\nocite{*}
\backmatter
\vspace{\baselineskip}
\renewcommand{\baselinestretch}{1.0}\selectfont
\bibliographystyle{plain}

%It is help to keep the bibliography in a separate file.  In this case, the bibliography is kept in the file named %thesisBib.bib
\bibliography{thesisBib}
\vspace{-\baselineskip}






\newpage
\begin{appendix}
\addcontentsline{toc}{chapter}{APPENDIX}
 \setcounter{equation}{0}

\begin{center}APPENDIX \\C++ CODE\end{center}

\newpage

\end{appendix}

\end{document}
