%\documentclass[10pt,a4paper,oneside]{tesis}
\documentclass[12pt,a4paper,openany]{tesis}

\usepackage{amsmath}
\usepackage{bm}
\usepackage{graphicx}

%-PAGE FORMAT FOR 10pt---------------------------

%\pagestyle{plain}
%\setlength{\textheight}{9.5in}\setlength{\topmargin}{-.25in}
%\setlength{\textwidth}{7in}\setlength{\oddsidemargin}{-.25in}

%-PAGE FORMAT FOR 12pt---------------------------

\setlength{\textheight}{23.5cm}
\setlength{\topmargin}{0in}

\setlength{\textwidth}{15.5cm}
\setlength{\oddsidemargin}{.5cm} \setlength{\evensidemargin}{0cm}

%-COMMANDS---------------------------------------

  % this command generates the unit matrix symbol.
\DeclareRobustCommand\openone{\leavevmode\hbox{\small1\normalsize\kern-.33em1}}%

  % this command set the style for the vectors
\newcommand{\vect}[1]{\bm{#1}}%

 % this command set the style for the means
\newcommand{\mean}[1]{\overline{#1}}%

  % here are some new mathematical operators
\DeclareMathOperator{\tr}{Tr}

  % here are some roman characters for some mathematical symbols
\newcommand{\la}{{\langle}}%
\newcommand{\ra}{{\rangle}}%
\newcommand{\rmi}{{\rm i}}%
\newcommand{\rme}{{\rm e}}%
\newcommand{\rmd}{{\rm d}}%
\newcommand{\dg}{\dagger}%
\newcommand{\ga}{{\alpha}}%
\newcommand{\gb}{{\beta}}%
\newcommand{\gga}{{\gamma}}%
\newcommand{\gG}{{\Gamma}}%
\newcommand{\gk}{{\kappa}}%
\newcommand{\gl}{{\lambda}}%
\newcommand{\gL}{{\Lambda}}%
\newcommand{\go}{{\omega}}%
\newcommand{\gO}{{\Omega}}%
\newcommand{\gr}{{\rho}}%
\newcommand{\gs}{{\sigma}}%
\newcommand{\gt}{{\tau}}%

  % these commands set the counters for the appendices
\let\APPsection=\section
\newcommand{\appendixon}{
  \setcounter{section}{0}%
  \setcounter{equation}{0}%
  \renewcommand{\section}{\setcounter{equation}{0}%
                          \APPsection}%
  \renewcommand{\thesection}{\arabic{chapter}.\Alph{section}}%
  \renewcommand{\theequation}{\arabic{chapter}.\Alph{section}.\arabic{equation}}%
}%
\newcommand{\appendixoff}{
  \renewcommand{\section}{\APPsection}%
  \renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}%
  \renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
}%


%-INCLUDED SECTIONS---------------------------------------
%\includeonly{cv-tesis}

\begin{document}

\frontmatter

\include{titlepage}

\include{gutachter}

\include{abstract}

\include{olga}

\tableofcontents

\mainmatter

\include{introduction}

\include{chapter5}

\include{chapter1}
\appendixon
\include{appendix1}
\appendixoff

\include{chapter2}
\appendixon
\include{appendix2}
\appendixoff

\include{chapter3}
\appendixon
\include{appendix3}
\appendixoff

\include{chapter4}
\appendixon
\include{appendix4}
\appendixoff

\backmatter

\addcontentsline{toc}{chapter}{Bibliography\dotfill}
\bibliography{books,papers}
\bibliographystyle{elsart-num}

\include{acknowledgements}
\include{cv-tesis}

\end{document}





