%%
%% This is file `book.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% classes.dtx  (with options: `book')
%%
%% This is a generated file.
%%
%% Copyright 1993 1994 1995 1996 1997
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%%
%% For further copyright information, and conditions for modification
%% and distribution, see the file legal.txt, and any other copyright
%% notices in this file.
%%
%% This file is part of the LaTeX2e system.
%% ----------------------------------------
%%   This system is distributed in the hope that it will be useful,
%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%%
%%   For error reports concerning UNCHANGED versions of this file no
%%   more than one year old, see bugs.txt.
%%
%%   Please do not request updates from us directly.  Primary
%%   distribution is through the CTAN archives.
%%
%%
%% IMPORTANT COPYRIGHT NOTICE:
%%
%% You are NOT ALLOWED to distribute this file alone.
%%
%% You are allowed to distribute this file under the condition that it
%% is distributed together with all the files listed in manifest.txt.
%%
%% If you receive only some of these files from someone, complain!
%%
%%
%% Permission is granted to copy this file to another file with a
%% clearly different name and to customize the declarations in that
%% copy to serve the needs of your installation, provided that you
%% comply with the conditions in the file legal.txt.
%%
%% However, NO PERMISSION is granted to generate or to distribute a
%% modified version of this file under its original name.
%%
%% You are NOT ALLOWED to change this file.
%%
%%
%% MODIFICATION ADVICE:
%%
%% If you want to customize this file, it is best to make a copy of
%% the source file(s) from which it was produced.  Use a different
%% name for your copy(ies) and modify the copy(ies); this will ensure
%% that your modifications do not get overwritten when you install a
%% new release of the standard system.  You should also ensure that
%% your modified source file does not generate any modified file with
%% the same name as a standard file.
%%
%% You can then easily distribute your modifications by distributing
%% the modified and renamed copy of the source file, taking care to
%% observe the conditions in legal.txt; this will ensure that other
%% users can safely use your modifications.
%%
%% You will also need to produce your own, suitably named, .ins file to
%% control the generation of files from your source file; this file
%% should contain your own preambles for the files it generates, not
%% those in the standard .ins files.
%%
%% The names of the source files used are shown above.
%%
%%
%%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{eamd2015}
             [1997/10/10 v1.3x
Standard LaTeX document class]

\newcommand\@ptsize{}
\newif\if@restonecol
\newif\if@titlepage
\@titlepagetrue
\newif\if@openright
\newif\if@mainmatter \@mainmattertrue
\if@compatibility\else
\DeclareOption{a4paper}
  {\setlength\paperheight {297mm}%
   \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
  {\setlength\paperheight {210mm}%
   \setlength\paperwidth  {148mm}}
\DeclareOption{b5paper}
  {\setlength\paperheight {240mm}%
   \setlength\paperwidth  {170mm}}
\DeclareOption{letterpaper}
  {\setlength\paperheight {11in}%
   \setlength\paperwidth  {8.5in}}
\DeclareOption{legalpaper}
  {\setlength\paperheight {14in}%
   \setlength\paperwidth  {8.5in}}
\DeclareOption{executivepaper}
  {\setlength\paperheight {10.5in}%
   \setlength\paperwidth  {7.25in}}
\DeclareOption{landscape}
  {\setlength\@tempdima   {\paperheight}%
   \setlength\paperheight {\paperwidth}%
   \setlength\paperwidth  {\@tempdima}}
\fi
\if@compatibility
 \renewcommand\@ptsize{0}
\else
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\fi
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\if@compatibility\else
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\fi
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\if@compatibility\else
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\fi
\DeclareOption{titlepage}{\@titlepagetrue}
\if@compatibility\else
\DeclareOption{notitlepage}{\@titlepagefalse}
\fi
\if@compatibility
\@openrighttrue
\else
\DeclareOption{openright}{\@openrighttrue}
\DeclareOption{openany}{\@openrightfalse}
\fi
\if@compatibility\else
\DeclareOption{onecolumn}{\@twocolumnfalse}
\fi
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\DeclareOption{openbib}{%
 \AtEndOfPackage{%
  \renewcommand\@openbib@code{%
     \advance\leftmargin\bibindent
     \itemindent -\bibindent
     \listparindent \itemindent
     \parsep \z@
     }%
  \renewcommand\newblock{\par}}%
}
\ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
\ProcessOptions
\input{bk1\@ptsize.clo}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{}
\setlength\parskip{0\p@ \@plus \p@}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
\setcounter{topnumber}{2}
\renewcommand\topfraction{.7}
\setcounter{bottomnumber}{1}
\renewcommand\bottomfraction{.3}
\setcounter{totalnumber}{3}
\renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7}
\renewcommand\dblfloatpagefraction{.5}
\if@twoside
 \def\ps@headings{%
     \let\@oddfoot\@empty\let\@evenfoot\@empty
     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
     \def\@oddhead{\title{\slshape\rightmark}\hfil\thepage}%
     \let\@mkboth\markboth
   \def\chaptermark##1{%
     \markboth {\bf\small{%
       \ifnum \c@secnumdepth >\m@ne
         \if@mainmatter
           \@chapapp\ \thechapter. \ %
         \fi
       \fi
       ##1}}{}}%
   \def\sectionmark##1{%
     \markright {\bf\small{%
       \ifnum \c@secnumdepth >\z@
         \ %
       \fi
       ##1}}}}
\else
 \def\ps@headings{%
   \let\@oddfoot\@empty
   \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
   \let\@mkboth\markboth
   \def\chaptermark##1{%
     \markright {\bf\small{%
       \ifnum \c@secnumdepth >\m@ne
         \if@mainmatter
           \@chapapp\ \thechapter. \ %
         \fi
       \fi
       ##1}}}}
\fi
\def\ps@myheadings{%
   \let\@oddfoot\@empty\let\@evenfoot\@empty
   \def\@evenhead{\thepage\hfil\slshape\leftmark}%
   \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
   \let\@mkboth\@gobbletwo
   \let\chaptermark\@gobble
   \let\sectionmark\@gobble
   }
 \if@titlepage
 \newcommand\maketitle{\begin{titlepage}%
 \let\footnotesize\small
 \let\footnoterule\relax
 \let \footnote \thanks
 \null\vfil
 \vskip 60\p@
 \begin{center}%
   {\LARGE \@title \par}%
   \vskip 3em%
   {\large
    \lineskip .75em%
     \begin{tabular}[t]{c}%
       \@author
     \end{tabular}\par}%
     \vskip 1.5em%
   {\large \@date \par}%       % Set date in \large size.
 \end{center}\par
 \@thanks
 \vfil\null
 \end{titlepage}%
 \setcounter{footnote}{0}%
 \global\let\thanks\relax
 \global\let\maketitle\relax
 \global\let\@thanks\@empty
 \global\let\@author\@empty
 \global\let\@date\@empty
 \global\let\@title\@empty
 \global\let\title\relax
 \global\let\author\relax
 \global\let\date\relax
 \global\let\and\relax
}
\else
\newcommand\maketitle{\par
 \begingroup
   \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
   \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
   \long\def\@makefntext##1{\parindent 1em\noindent
           \hb@xt@1.8em{%
               \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
   \if@twocolumn
     \ifnum \col@number=\@ne
       \@maketitle
     \else
       \twocolumn[\@maketitle]%
     \fi
   \else
     \newpage
     \global\@topnum\z@   % Prevents figures from going at top of page.
     \@maketitle
   \fi
   \thispagestyle{plain}\@thanks
 \endgroup
 \setcounter{footnote}{0}%
 \global\let\thanks\relax
 \global\let\maketitle\relax
 \global\let\@maketitle\relax
 \global\let\@thanks\@empty
 \global\let\@author\@empty
 \global\let\@date\@empty
 \global\let\@title\@empty
 \global\let\title\relax
 \global\let\author\relax
 \global\let\date\relax
 \global\let\and\relax
}
\def\@maketitle{%
 \newpage
 \null
 \vskip 2em%
 \begin{center}%
 \let \footnote \thanks
   {\LARGE \@title \par}%
     \vskip 1.5em%
   {\large
     \lineskip .5em%
     \begin{tabular}[t]{c}%
       \@author
     \end{tabular}\par}%
   \vskip 1em%
   {\large \@date}%
 \end{center}%
 \par
 \vskip 1.5em}
\fi
\newcommand*\chaptermark[1]{}
\setcounter{secnumdepth}{2}
\newcounter {part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\renewcommand \thepart {\@Roman\c@part}
\renewcommand \thechapter {\@arabic\c@chapter}
\renewcommand \thesection {\@arabic\c@section}
\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
\newcommand\@chapapp{\chaptername}
\newcommand\frontmatter{%
 \if@openright
   \cleardoublepage
 \else
   \clearpage
 \fi
 \@mainmatterfalse
 \pagenumbering{roman}}
\newcommand\mainmatter{%
 \if@openright
   \cleardoublepage
 \else
   \clearpage
 \fi
 \@mainmattertrue
 \pagenumbering{arabic}}
\newcommand\backmatter{%
 \if@openright
   \cleardoublepage
 \else
   \clearpage
 \fi
 \@mainmatterfalse}
\newcommand\part{%
 \if@openright
   \cleardoublepage
 \else
   \clearpage
 \fi
 \thispagestyle{plain}%
 \if@twocolumn
   \onecolumn
   \@tempswatrue
 \else
   \@tempswafalse
 \fi
 \null\vfil
 \secdef\@part\@spart}

\def\@part[#1]#2{%
   \ifnum \c@secnumdepth >-2\relax
     \refstepcounter{part}%
     \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
   \else
     \addcontentsline{toc}{part}{#1}%
   \fi
   \markboth{}{}%
   {\centering
    \interlinepenalty \@M
    \normalfont
    \ifnum \c@secnumdepth >-2\relax
      \huge\bfseries \partname~\thepart
      \par
      \vskip 20\p@
    \fi
    \Huge \bfseries #2\par}%
   \@endpart}
\def\@spart#1{%
   {\centering
    \interlinepenalty \@M
    \normalfont
    \Huge \bfseries #1\par}%
   \@endpart}
\def\@endpart{\vfil\newpage
             \if@twoside
               \null
               \thispagestyle{empty}%
               \newpage
             \fi
             \if@tempswa
               \twocolumn
             \fi}
\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
                   \thispagestyle{plain}%
                   \global\@topnum\z@
                   \@afterindentfalse
                   \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
                      \if@mainmatter
                        \refstepcounter{chapter}%
                        \typeout{\@chapapp\space\thechapter.}%
                        \addcontentsline{toc}{chapter}%
                                  {\protect\numberline{\thechapter}#1}%
                      \else
                        \addcontentsline{toc}{chapter}{#1}%
                      \fi
                   \else
                     \addcontentsline{toc}{chapter}{#1}%
                   \fi
                   \chaptermark{#1}%
                   \addtocontents{lof}{\protect\addvspace{10\p@}}%
                   \addtocontents{lot}{\protect\addvspace{10\p@}}%
                   \if@twocolumn
                     \@topnewpage[\@makechapterhead{#2}]%
                   \else
                     \@makechapterhead{#2}%
                     \@afterheading
                   \fi}
\def\@makechapterhead#1{%

 \vspace*{-50\p@}%
 {\parindent \z@ \raggedright \normalfont
   \ifnum \c@secnumdepth >\m@ne
     \if@mainmatter
       \bfseries %\thechapter
       \par\nobreak
       \vskip 20\p@
     \fi
   \fi
   \interlinepenalty\@M
   %\begin{center}
   #1\par\nobreak
   %\end{center}
   %\Huge \bfseries #1\par\nobreak
   \vskip -10\p@
 }}
\def\@schapter#1{\if@twocolumn
                  \@topnewpage[\@makeschapterhead{#1}]%
                \else
                  \@makeschapterhead{#1}%
                  \@afterheading
                \fi}
\def\@makeschapterhead#1{%
 \vspace*{-75\p@}%
 {\parindent \z@ \raggedright
   \normalfont
   \interlinepenalty\@M
   \begin{center}
   #1\par\nobreak
   \end{center}
   %\Huge \bfseries  #1\par\nobreak
   \vskip 40\p@
 }}
\newcommand\section{\@startsection {section}{1}{\z@}%
                                  {-3.5ex \@plus -1ex \@minus -.2ex}%
                                  {2.3ex \@plus.2ex}%
                                  %{\normalfont\Large\bfseries}
                                  {\Large\sc}}
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                    {-3.25ex\@plus -1ex \@minus -.2ex}%
                                    {1.5ex \@plus .2ex}%
                                    {\normalfont\large\bfseries}}
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                    {-3.25ex\@plus -1ex \@minus -.2ex}%
                                    {1.5ex \@plus .2ex}%
                                    {\normalfont\normalsize\bfseries}}
\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                   {3.25ex \@plus1ex \@minus.2ex}%
                                   {-1em}%
                                   {\normalfont\normalsize\bfseries}}
\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                      {3.25ex \@plus1ex \@minus .2ex}%
                                      {-1em}%
                                     {\normalfont\normalsize\bfseries}}
\if@twocolumn
 \setlength\leftmargini  {2em}
\else
 \setlength\leftmargini  {2.5em}
\fi
\leftmargin  \leftmargini
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\if@twocolumn
 \setlength\leftmarginv  {.5em}
 \setlength\leftmarginvi {.5em}
\else
 \setlength\leftmarginv  {1em}
 \setlength\leftmarginvi {1em}
\fi
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
\renewcommand\theenumi{\@arabic\c@enumi}
\renewcommand\theenumii{\@alph\c@enumii}
\renewcommand\theenumiii{\@roman\c@enumiii}
\renewcommand\theenumiv{\@Alph\c@enumiv}
\newcommand\labelenumi{\theenumi.}
\newcommand\labelenumii{\theenumii)}
\newcommand\labelenumiii{\theenumiii)}
\newcommand\labelenumiv{\theenumiv.}
\renewcommand\p@enumii{\theenumi}
\renewcommand\p@enumiii{\theenumi(\theenumii)}
\renewcommand\p@enumiv{\p@enumiii\theenumiii}
\newcommand\labelitemi{\textbullet}
\newcommand\labelitemii{\normalfont\bfseries \textendash}
\newcommand\labelitemiii{\textasteriskcentered}
\newcommand\labelitemiv{\textperiodcentered}
\newenvironment{description}
              {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                       \let\makelabel\descriptionlabel}}
              {\endlist}
\newcommand*\descriptionlabel[1]{\hspace\labelsep
                               \normalfont\bfseries #1}
\newenvironment{verse}
              {\let\\\@centercr
               \list{}{\itemsep      \z@
                       \itemindent   -1.5em%
                       \listparindent\itemindent
                       \rightmargin  \leftmargin
                       \advance\leftmargin 1.5em}%
               \item\relax}
              {\endlist}
\newenvironment{quotation}
              {\list{}{\listparindent 1.5em%
                       \itemindent    \listparindent
                       \rightmargin   \leftmargin
                       \parsep        \z@ \@plus\p@}%
               \item\relax}
              {\endlist}
\newenvironment{quote}
              {\list{}{\rightmargin\leftmargin}%
               \item\relax}
              {\endlist}
\if@compatibility
\newenvironment{titlepage}
   {%
     \cleardoublepage
     \if@twocolumn
       \@restonecoltrue\onecolumn
     \else
       \@restonecolfalse\newpage
     \fi
     \thispagestyle{empty}%
     \setcounter{page}\z@
   }%
   {\if@restonecol\twocolumn \else \newpage \fi
   }
\else
\newenvironment{titlepage}
   {%
     \cleardoublepage
     \if@twocolumn
       \@restonecoltrue\onecolumn
     \else
       \@restonecolfalse\newpage
     \fi
     \thispagestyle{empty}%
     \setcounter{page}\@ne
   }%
   {\if@restonecol\twocolumn \else \newpage \fi
    \if@twoside\else
       \setcounter{page}\@ne
    \fi
   }
\fi
\newcommand\appendix{\par
 \setcounter{chapter}{0}%
 \setcounter{section}{0}%
 \renewcommand\@chapapp{\appendixname}%
 \renewcommand\thechapter{\@Alph\c@chapter}}
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\@addtoreset {equation}{chapter}
\renewcommand\theequation
% {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
 {\ifnum \c@chapter>\z@ \fi \@arabic\c@equation}
\newcounter{figure}[chapter]
\renewcommand \thefigure
    {\ifnum \c@chapter>\z@ \fi \@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename~\thefigure}
\newenvironment{figure}
              {\@float{figure}}
              {\end@float}
\newenvironment{figure*}
              {\@dblfloat{figure}}
              {\end@dblfloat}
\newcounter{table}[chapter]
\renewcommand \thetable
    {\ifnum \c@chapter>\z@ \fi \@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename~\thetable}
\newenvironment{table}
              {\@float{table}}
              {\end@float}
\newenvironment{table*}
              {\@dblfloat{table}}
              {\end@dblfloat}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@makecaption#1#2{%
 \vskip\abovecaptionskip
 \sbox\@tempboxa{#1: #2}%
 \ifdim \wd\@tempboxa >\hsize
   #1: #2\par
 \else
   \global \@minipagefalse
   \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
 \fi
 \vskip\belowcaptionskip}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
\newcommand\@pnumwidth{1.55em}
\newcommand\@tocrmarg{2.55em}
\newcommand\@dotsep{4.5}
\setcounter{tocdepth}{2}
\newcommand\tableofcontents{%
   \if@twocolumn
     \@restonecoltrue\onecolumn
   \else
     \@restonecolfalse
   \fi
   \chapter*{\contentsname
       \@mkboth{%
          \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
   \@starttoc{toc}%
   \if@restonecol\twocolumn\fi
   }
\newcommand*\l@part[2]{%
 \ifnum \c@tocdepth >-2\relax
   \addpenalty{-\@highpenalty}%
   \addvspace{2.25em \@plus\p@}%
   \begingroup
     \parindent \z@ \rightskip \@pnumwidth
     \parfillskip -\@pnumwidth
     {\leavevmode
      \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
      \nobreak
        \global\@nobreaktrue
        \everypar{\global\@nobreakfalse\everypar{}}%
   \endgroup
 \fi}
\newcommand*\l@chapter[2]{%
 \ifnum \c@tocdepth >\m@ne
   \addpenalty{-\@highpenalty}%
   \vskip 1.0em \@plus\p@
   \setlength\@tempdima{1.5em}%
   \begingroup
     \parindent \z@ \rightskip \@pnumwidth
     \parfillskip -\@pnumwidth
     \leavevmode \bfseries
     \advance\leftskip\@tempdima
     \hskip -\leftskip
     #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
     \penalty\@highpenalty
   \endgroup
 \fi}
\newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
\newcommand\listoffigures{%
   \if@twocolumn
     \@restonecoltrue\onecolumn
   \else
     \@restonecolfalse
   \fi
   \chapter*{\listfigurename
     \@mkboth{\MakeUppercase\listfigurename}%
             {\MakeUppercase\listfigurename}}%
   \@starttoc{lof}%
   \if@restonecol\twocolumn\fi
   }
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand\listoftables{%
   \if@twocolumn
     \@restonecoltrue\onecolumn
   \else
     \@restonecolfalse
   \fi
   \chapter*{\listtablename
     \@mkboth{%
         \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
   \@starttoc{lot}%
   \if@restonecol\twocolumn\fi
   }
\let\l@table\l@figure
\newdimen\bibindent
\setlength\bibindent{1.5em}
\newenvironment{thebibliography}[1]
    {\section*{\bibname
       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
     \list{\@biblabel{\@arabic\c@enumiv}}%
          {\settowidth\labelwidth{\@biblabel{#1}}%
           \leftmargin\labelwidth
           \advance\leftmargin\labelsep
           \@openbib@code
           \usecounter{enumiv}%
           \let\p@enumiv\@empty
           \renewcommand\theenumiv{\@arabic\c@enumiv}}%
     \sloppy
     \clubpenalty4000
     \@clubpenalty \clubpenalty
     \widowpenalty4000%
     \sfcode`\.\@m}
    {\def\@noitemerr
      {\@latex@warning{Empty `thebibliography' environment}}%
     \endlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{thebibliographyi}[1]
     {\section*{\bibnamei
        \@mkboth{\MakeUppercase\bibnamei}{\MakeUppercase\bibnamei}}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty
\newenvironment{theindex}
              {\if@twocolumn
                 \@restonecolfalse
               \else
                 \@restonecoltrue
               \fi
               \columnseprule \z@
               \columnsep 35\p@
               \twocolumn[\@makeschapterhead{\indexname}]%
               \@mkboth{\MakeUppercase\indexname}%
                       {\MakeUppercase\indexname}%
               \thispagestyle{plain}\parindent\z@
               \parskip\z@ \@plus .9\p@\relax
               \let\item\@idxitem}
              {\if@restonecol\onecolumn\else\clearpage\fi}

% Esto es para crear el indice de simbolos
\newenvironment{simbolo}
              {\if@twocolumn
                 \@restonecolfalse
               \else
                 \@restonecoltrue
               \fi
               \columnseprule \z@
               \columnsep 35\p@
               \twocolumn[\@makeschapterhead{\simbol}]%
               \@mkboth{\MakeUppercase\simbol}%
                       {\MakeUppercase\simbol}%
               \thispagestyle{plain}\parindent\z@
               \parskip\z@ \@plus .3\p@\relax
               \let\item\@idxitem}
              {\if@restonecol\onecolumn\else\clearpage\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
\renewcommand\footnoterule{%
 \kern-3\p@
 \hrule\@width.4\columnwidth
 \kern2.6\p@}
\@addtoreset{footnote}{chapter}
\newcommand\@makefntext[1]{%
   \parindent 1em%
   \noindent
   \hb@xt@1.8em{\hss\@makefnmark}#1}
\newcommand\contentsname{Contenido}
\newcommand\listfigurename{Lista de Figuras}
\newcommand\listtablename{Lista de Tablas}
\newcommand\bibname{Referencias}
\newcommand\bibnamei{References}
\newcommand\indexname{\Large \sc {\'I}ndice de autores}
\newcommand\simbol{S{\'\i}mbolos}
\newcommand\figurename{Fig.}
\newcommand\tablename{Tabla}
\newcommand\partname{Parte}
\newcommand\chaptername{Cap\'{\i}tulo}
\newcommand\appendixname{Ap\'endice}
\def\today{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi
 \space\number\day, \number\year}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\pagestyle{headings}
\pagenumbering{arabic}
\if@twoside
\else
 \raggedbottom
\fi
\if@twocolumn
 \twocolumn
 \sloppy
 \flushbottom
\else
 \onecolumn
\fi
%\endinput


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ifancy@mpty#1{\def\temp@a{#1}\ifx\temp@a\@empty}

\def\fancy@def#1#2{\ifancy@mpty{#2}\fancy@gbl\def#1{\leavevmode}\else
                                  \fancy@gbl\def#1{#2\strut}\fi}

\let\fancy@gbl\global

\def\@fancyerrmsg#1{%
       \ifx\PackageError\undefined
       \errmessage{#1}\else
       \PackageError{Fancyhdr}{#1}{}\fi}
\def\@fancywarning#1{%
       \ifx\PackageWarning\undefined
       \errmessage{#1}\else
       \PackageWarning{Fancyhdr}{#1}{}\fi}

% Usage: \@forc \var{charstring}{command to be executed for each char}
% This is similar to LaTeX's \@tfor, but expands the charstring.

\def\@forc#1#2#3{\expandafter\f@rc\expandafter#1\expandafter{#2}{#3}}
\def\f@rc#1#2#3{\def\temp@ty{#2}\ifx\@empty\temp@ty\else
                                   \f@@rc#1#2\f@@rc{#3}\fi}
\def\f@@rc#1#2#3\f@@rc#4{\def#1{#2}#4\f@rc#1{#3}{#4}}

% Usage: \f@nfor\name:=list\do{body}
% Like LaTeX's \@for but an empty list is treated as a list with an empty
% element

\newcommand{\f@nfor}[3]{\edef\@fortmp{#2}%
   \expandafter\@forloop#2,\@nil,\@nil\@@#1{#3}}

% Usage: \def@ult \cs{defaults}{argument}
% sets \cs to the characters from defaults appearing in argument
% or defaults if it would be empty. All characters are lowercased.

\newcommand\def@ult[3]{%
   \edef\temp@a{\lowercase{\edef\noexpand\temp@a{#3}}}\temp@a
   \def#1{}%
   \@forc\tmpf@ra{#2}%
       {\expandafter\if@in\tmpf@ra\temp@a{\edef#1{#1\tmpf@ra}}{}}%
   \ifx\@empty#1\def#1{#2}\fi}
%
% \if@in <char><set><truecase><falsecase>
%
\newcommand{\if@in}[4]{%
   \edef\temp@a{#2}\def\temp@b##1#1##2\temp@b{\def\temp@b{##1}}%
   \expandafter\temp@b#2#1\temp@b\ifx\temp@a\temp@b #4\else #3\fi}

\newcommand{\fancyhead}{\@ifnextchar[{\f@ncyhf\fancyhead h}%
                                    {\f@ncyhf\fancyhead h[]}}
\newcommand{\fancyfoot}{\@ifnextchar[{\f@ncyhf\fancyfoot f}%
                                    {\f@ncyhf\fancyfoot f[]}}
\newcommand{\fancyhf}{\@ifnextchar[{\f@ncyhf\fancyhf{}}%
                                  {\f@ncyhf\fancyhf{}[]}}

% New commands for offsets added

\newcommand{\fancyheadoffset}{\@ifnextchar[{\f@ncyhfoffs\fancyheadoffset h}%
                                          {\f@ncyhfoffs\fancyheadoffset h[]}}
\newcommand{\fancyfootoffset}{\@ifnextchar[{\f@ncyhfoffs\fancyfootoffset f}%
                                          {\f@ncyhfoffs\fancyfootoffset f[]}}
\newcommand{\fancyhfoffset}{\@ifnextchar[{\f@ncyhfoffs\fancyhfoffset{}}%
                                        {\f@ncyhfoffs\fancyhfoffset{}[]}}

% The header and footer fields are stored in command sequences with
% names of the form: \f@ncy<x><y><z> with <x> for [eo], <y> from [lcr]
% and <z> from [hf].

\def\f@ncyhf#1#2[#3]#4{%
   \def\temp@c{}%
   \@forc\tmpf@ra{#3}%
       {\expandafter\if@in\tmpf@ra{eolcrhf,EOLCRHF}%
           {}{\edef\temp@c{\temp@c\tmpf@ra}}}%
   \ifx\@empty\temp@c\else
       \@fancyerrmsg{Illegal char `\temp@c' in \string#1 argument:
         [#3]}%
   \fi
   \f@nfor\temp@c{#3}%
       {\def@ult\f@@@eo{eo}\temp@c
        \if@twoside\else
          \if\f@@@eo e\@fancywarning
            {\string#1's `E' option without twoside option is useless}\fi\fi
        \def@ult\f@@@lcr{lcr}\temp@c
        \def@ult\f@@@hf{hf}{#2\temp@c}%
        \@forc\f@@eo\f@@@eo
            {\@forc\f@@lcr\f@@@lcr
                {\@forc\f@@hf\f@@@hf
                    {\expandafter\fancy@def\csname
                     f@ncy\f@@eo\f@@lcr\f@@hf\endcsname
                     {#4}}}}}}

\def\f@ncyhfoffs#1#2[#3]#4{%
   \def\temp@c{}%
   \@forc\tmpf@ra{#3}%
       {\expandafter\if@in\tmpf@ra{eolrhf,EOLRHF}%
           {}{\edef\temp@c{\temp@c\tmpf@ra}}}%
   \ifx\@empty\temp@c\else
       \@fancyerrmsg{Illegal char `\temp@c' in \string#1 argument:
         [#3]}%
   \fi
   \f@nfor\temp@c{#3}%
       {\def@ult\f@@@eo{eo}\temp@c
        \if@twoside\else
          \if\f@@@eo e\@fancywarning
            {\string#1's `E' option without twoside option is useless}\fi\fi
        \def@ult\f@@@lcr{lr}\temp@c
        \def@ult\f@@@hf{hf}{#2\temp@c}%
        \@forc\f@@eo\f@@@eo
            {\@forc\f@@lcr\f@@@lcr
                {\@forc\f@@hf\f@@@hf
                    {\expandafter\setlength\csname
                     f@ncyO@\f@@eo\f@@lcr\f@@hf\endcsname
                     {#4}}}}}%
    \fancy@setoffs}

% Fancyheadings version 1 commands. These are more or less deprecated,
% but they continue to work.

\newcommand{\lhead}{\@ifnextchar[{\@xlhead}{\@ylhead}}
\def\@xlhead[#1]#2{\fancy@def\f@ncyelh{#1}\fancy@def\f@ncyolh{#2}}
\def\@ylhead#1{\fancy@def\f@ncyelh{#1}\fancy@def\f@ncyolh{#1}}

\newcommand{\chead}{\@ifnextchar[{\@xchead}{\@ychead}}
\def\@xchead[#1]#2{\fancy@def\f@ncyech{#1}\fancy@def\f@ncyoch{#2}}
\def\@ychead#1{\fancy@def\f@ncyech{#1}\fancy@def\f@ncyoch{#1}}

\newcommand{\rhead}{\@ifnextchar[{\@xrhead}{\@yrhead}}
\def\@xrhead[#1]#2{\fancy@def\f@ncyerh{#1}\fancy@def\f@ncyorh{#2}}
\def\@yrhead#1{\fancy@def\f@ncyerh{#1}\fancy@def\f@ncyorh{#1}}

\newcommand{\lfoot}{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
\def\@xlfoot[#1]#2{\fancy@def\f@ncyelf{#1}\fancy@def\f@ncyolf{#2}}
\def\@ylfoot#1{\fancy@def\f@ncyelf{#1}\fancy@def\f@ncyolf{#1}}

\newcommand{\cfoot}{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
\def\@xcfoot[#1]#2{\fancy@def\f@ncyecf{#1}\fancy@def\f@ncyocf{#2}}
\def\@ycfoot#1{\fancy@def\f@ncyecf{#1}\fancy@def\f@ncyocf{#1}}

\newcommand{\rfoot}{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
\def\@xrfoot[#1]#2{\fancy@def\f@ncyerf{#1}\fancy@def\f@ncyorf{#2}}
\def\@yrfoot#1{\fancy@def\f@ncyerf{#1}\fancy@def\f@ncyorf{#1}}

\newlength{\fancy@headwidth}
\let\headwidth\fancy@headwidth
\newlength{\f@ncyO@elh}
\newlength{\f@ncyO@erh}
\newlength{\f@ncyO@olh}
\newlength{\f@ncyO@orh}
\newlength{\f@ncyO@elf}
\newlength{\f@ncyO@erf}
\newlength{\f@ncyO@olf}
\newlength{\f@ncyO@orf}
\newcommand{\headrulewidth}{0.4pt}
\newcommand{\footrulewidth}{0pt}
\newcommand{\footruleskip}{.3\normalbaselineskip}

% Fancyplain stuff shouldn't be used anymore (rather
% \fancypagestyle{plain} should be used), but it must be present for
% compatibility reasons.

\newcommand{\plainheadrulewidth}{0pt}
\newcommand{\plainfootrulewidth}{0pt}
\newif\if@fancyplain \@fancyplainfalse
\def\fancyplain#1#2{\if@fancyplain#1\else#2\fi}

\headwidth=-123456789sp %magic constant

% Command to reset various things in the headers:
% a.o.  single spacing (taken from setspace.sty)
% and the catcode of ^^M (so that epsf files in the header work if a
% verbatim crosses a page boundary)
% It also defines a \nouppercase command that disables \uppercase and
% \Makeuppercase. It can only be used in the headers and footers.
\let\fnch@everypar\everypar% save real \everypar because of spanish.ldf
\def\fancy@reset{\fnch@everypar{}\restorecr\endlinechar=13
\def\baselinestretch{1}%
\def\nouppercase##1{{\let\uppercase\relax\let\MakeUppercase\relax
    \expandafter\let\csname MakeUppercase \endcsname\relax##1}}%
\ifx\undefined\@newbaseline% NFSS not present; 2.09 or 2e
  \ifx\@normalsize\undefined \normalsize % for ucthesis.cls
  \else \@normalsize \fi
\else% NFSS (2.09) present
 \@newbaseline%
\fi}

% Initialization of the head and foot text.

% The default values still contain \fancyplain for compatibility.
\fancyhf{} % clear all
% lefthead empty on ``plain'' pages, \rightmark on even, \leftmark on odd pages
% evenhead empty on ``plain'' pages, \leftmark on even, \rightmark on odd pages
\if@twoside
 \fancyhead[el,or]{\fancyplain{}{\sl\rightmark}}
 \fancyhead[er,ol]{\fancyplain{}{\sl\leftmark}}
\else
 \fancyhead[l]{\fancyplain{}{\sl\rightmark}}
 \fancyhead[r]{\fancyplain{}{\sl\leftmark}}
\fi
\fancyfoot[c]{\rm\thepage} % page number

% Use box 0 as a temp box and dimen 0 as temp dimen.
% This can be done, because this code will always
% be used inside another box, and therefore the changes are local.

\def\@fancyvbox#1#2{\setbox0\vbox{#2}\ifdim\ht0>#1\@fancywarning
 {\string#1 is too small (\the#1): ^^J Make it at least \the\ht0.^^J
   We now make it that large for the rest of the document.^^J
   This may cause the page layout to be inconsistent, however\@gobble}%
 \dimen0=#1\global\setlength{#1}{\ht0}\ht0=\dimen0\fi
 \box0}

% Put together a header or footer given the left, center and
% right text, fillers at left and right and a rule.
% The \lap commands put the text into an hbox of zero size,
% so overlapping text does not generate an errormessage.
% These macros have 5 parameters:
% 1. LEFTSIDE BEARING % This determines at which side the header will stick
%    out. When \fancyhfoffset is used this calculates \headwidth, otherwise
%    it is \hss or \relax (after expansion).
% 2. \f@ncyolh, \f@ncyelh, \f@ncyolf or \f@ncyelf. This is the left component.
% 3. \f@ncyoch, \f@ncyech, \f@ncyocf or \f@ncyecf. This is the middle comp.
% 4. \f@ncyorh, \f@ncyerh, \f@ncyorf or \f@ncyerf. This is the right component.
% 5. RIGHTSIDE BEARING. This is always \relax or \hss (after expansion).

\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
 \@fancyvbox\headheight{\hbox
   {\rlap{\parbox[b]{\headwidth}{\raggedright#2}}\hfill
     \parbox[b]{\headwidth}{\centering#3}\hfill
     \llap{\parbox[b]{\headwidth}{\raggedleft#4}}}\headrule}}#5}

\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
   \@fancyvbox\footskip{\footrule
     \hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2}}\hfill
       \parbox[t]{\headwidth}{\centering#3}\hfill
       \llap{\parbox[t]{\headwidth}{\raggedleft#4}}}}}#5}

\def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
   \hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}

\def\footrule{{\if@fancyplain\let\footrulewidth\plainfootrulewidth\fi
   \vskip-\footruleskip\vskip-\footrulewidth
   \hrule\@width\headwidth\@height\footrulewidth\vskip\footruleskip}}

\def\ps@fancy{%
\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}%for amsbook
%
% Define \MakeUppercase for old LaTeXen.
% Note: we used \def rather than \let, so that \let\uppercase\relax (from
% the version 1 documentation) will still work.
%
\@ifundefined{MakeUppercase}{\def\MakeUppercase{\uppercase}}{}%
\@ifundefined{chapter}{\def\sectionmark##1{\markboth
{\MakeUppercase{\ifnum \c@secnumdepth>\z@
\thesection\hskip 1em\relax \fi ##1}}{}}%
\def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne
\thesubsection\hskip 1em\relax \fi ##1}}}%
{\def\chaptermark##1{\markboth {\MakeUppercase{\ifnum \c@secnumdepth>\m@ne
\@chapapp\ \thechapter. \ \fi ##1}}{}}%
\def\sectionmark##1{\markright{\MakeUppercase{\ifnum \c@secnumdepth >\z@
\thesection. \ \fi ##1}}}}%
%\csname ps@headings\endcsname % use \ps@headings defaults if they exist
\ps@@fancy
\gdef\ps@fancy{\@fancyplainfalse\ps@@fancy}%
% Initialize \headwidth if the user didn't
%
\ifdim\headwidth<0sp
%
% This catches the case that \headwidth hasn't been initialized and the
% case that the user added something to \headwidth in the expectation that
% it was initialized to \textwidth. We compensate this now. This loses if
% the user intended to multiply it by a factor. But that case is more
% likely done by saying something like \headwidth=1.2\textwidth.
% The doc says you have to change \headwidth after the first call to
% \pagestyle{fancy}. This code is just to catch the most common cases were
% that requirement is violated.
%
   \global\advance\headwidth123456789sp\global\advance\headwidth\textwidth
\fi}
\def\ps@fancyplain{\ps@fancy \let\ps@plain\ps@plain@fancy}
\def\ps@plain@fancy{\@fancyplaintrue\ps@@fancy}
\let\ps@@empty\ps@empty
\def\ps@@fancy{%
\ps@@empty % This is for amsbook/amsart, which do strange things with \topskip
\def\@mkboth{\protect\markboth}%
\def\@oddhead{\@fancyhead\fancy@Oolh\f@ncyolh\f@ncyoch\f@ncyorh\fancy@Oorh}%
\def\@oddfoot{\@fancyfoot\fancy@Oolf\f@ncyolf\f@ncyocf\f@ncyorf\fancy@Oorf}%
\def\@evenhead{\@fancyhead\fancy@Oelh\f@ncyelh\f@ncyech\f@ncyerh\fancy@Oerh}%
\def\@evenfoot{\@fancyfoot\fancy@Oelf\f@ncyelf\f@ncyecf\f@ncyerf\fancy@Oerf}%
}
% Default definitions for compatibility mode:
% These cause the header/footer to take the defined \headwidth as width
% And to shift in the direction of the marginpar area

\def\fancy@Oolh{\if@reversemargin\hss\else\relax\fi}
\def\fancy@Oorh{\if@reversemargin\relax\else\hss\fi}
\let\fancy@Oelh\fancy@Oorh
\let\fancy@Oerh\fancy@Oolh

\let\fancy@Oolf\fancy@Oolh
\let\fancy@Oorf\fancy@Oorh
\let\fancy@Oelf\fancy@Oelh
\let\fancy@Oerf\fancy@Oerh

% New definitions for the use of \fancyhfoffset
% These calculate the \headwidth from \textwidth and the specified offsets.

\def\fancy@offsolh{\headwidth=\textwidth\advance\headwidth\f@ncyO@olh
                  \advance\headwidth\f@ncyO@orh\hskip-\f@ncyO@olh}
\def\fancy@offselh{\headwidth=\textwidth\advance\headwidth\f@ncyO@elh
                  \advance\headwidth\f@ncyO@erh\hskip-\f@ncyO@elh}

\def\fancy@offsolf{\headwidth=\textwidth\advance\headwidth\f@ncyO@olf
                  \advance\headwidth\f@ncyO@orf\hskip-\f@ncyO@olf}
\def\fancy@offself{\headwidth=\textwidth\advance\headwidth\f@ncyO@elf
                  \advance\headwidth\f@ncyO@erf\hskip-\f@ncyO@elf}

\def\fancy@setoffs{%
% Just in case \let\headwidth\textwidth was used
 \fancy@gbl\let\headwidth\fancy@headwidth
 \fancy@gbl\let\fancy@Oolh\fancy@offsolh
 \fancy@gbl\let\fancy@Oelh\fancy@offselh
 \fancy@gbl\let\fancy@Oorh\hss
 \fancy@gbl\let\fancy@Oerh\hss
 \fancy@gbl\let\fancy@Oolf\fancy@offsolf
 \fancy@gbl\let\fancy@Oelf\fancy@offself
 \fancy@gbl\let\fancy@Oorf\hss
 \fancy@gbl\let\fancy@Oerf\hss}

\newif\iffootnote
\let\latex@makecol\@makecol
\def\@makecol{\ifvoid\footins\footnotetrue\else\footnotefalse\fi
\let\topfloat\@toplist\let\botfloat\@botlist\latex@makecol}
\def\iftopfloat#1#2{\ifx\topfloat\empty #2\else #1\fi}
\def\ifbotfloat#1#2{\ifx\botfloat\empty #2\else #1\fi}
\def\iffloatpage#1#2{\if@fcolmade #1\else #2\fi}

\newcommand{\fancypagestyle}[2]{%
 \@namedef{ps@#1}{\let\fancy@gbl\relax#2\relax\ps@fancy}}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%
%% This is file `ifthen.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ifthen.dtx  (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%%
%% This file was generated from file(s) of the LaTeX base system.
%% --------------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This file has the LPPL maintenance status "maintained".
%%
%% This file may only be distributed together with a copy of the LaTeX
%% base system. You may however distribute the LaTeX base system without
%% such generated files.
%%
%% The list of all files belonging to the LaTeX base distribution is
%% given in the file `manifest.txt'. See also `legal.txt' for additional
%% information.
%%
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%%
%% File `ifthen.dtx'.
%% Copyright (C) 1991 by Leslie Lamport
%% Copyright (C) 1994-2001 LaTeX3 project, David Carlisle
%%                       all rights reserved.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{ifthen}
         [2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)]
\def\TE@throw{\@ne=\@ne\noexpand\fi}
\def\boolean#1#2{%
 \TE@throw\expandafter\noexpand\csname if#1\endcsname#2}
\def\TE@length#1#2{\TE@throw\noexpand\ifdim#1#2}
\def\TE@odd#1#2{%
 \TE@throw\noexpand\TE@@odd#1\noexpand\@nil\noexpand\ifodd\count@#2}
\def\TE@@odd#1#2\@nil{%
 \@defaultunits
 \count@\if-#1-0\else0\expandafter#1\fi#2\relax\@nnil}
\def\TE@repl#1#2{%
 \long\def\@tempc##1#1##2{%
   \def\@tempa{##2}\def\@tempb{\@tempc}%
   \ifx\@tempa\@tempb
    \toks@\expandafter{\the\toks@##1}%
    \expandafter\@gobble
   \else
     \toks@\expandafter{\the\toks@##1#2}%
   \expandafter\@tempc
   \fi
   ##2}%
 \expandafter\toks@\expandafter{\expandafter}%
 \expandafter\@tempc\the\toks@#1\@tempc}
\long\def\ifthenelse#1{%
 \toks@{#1}%
 \TE@repl\or\TE@or
 \TE@repl\and\TE@and
 \TE@repl\not\TE@neg
 \TE@repl\OR\TE@or
 \TE@repl\AND\TE@and
 \TE@repl\NOT\TE@neg
   \begingroup
       \let\protect\@unexpandable@protect
       \def\@setref##1##2##3{%
        \ifx##1\relax\z@\else\expandafter##2##1\fi}%
       \def\value##1{\the\csname c@##1\endcsname}%
       \let\equal\TE@equal \let\(\TE@lparen \let\)\TE@rparen
       \let\isodd\TE@odd \let\lengthtest\TE@length
       \let\isundefined\TE@undef
       \begingroup
         \let\@tempa\relax\let\@tempb\relax
         \xdef\@gtempa{\expandafter\TE@eval\the\toks@\TE@endeval}%
       \endgroup
       \@gtempa
       \expandafter\endgroup\ifTE@val
         \expandafter\@firstoftwo
       \else
         \expandafter\@secondoftwo
       \fi}
\def\TE@eval{\noexpand\TE@negatefalse\noexpand\iftrue\noexpand\ifnum}
\newif\ifTE@val
\newif\ifTE@negate
\def\TE@endeval{\relax
     \noexpand\TE@setvaltrue\noexpand
   \else
     \noexpand\TE@setvalfalse\noexpand
   \fi
   \noexpand\TE@negatefalse\noexpand
 \fi}
\def\TE@setvaltrue{%
 \ifTE@negate\TE@valfalse\else\TE@valtrue\fi}
\def\TE@setvalfalse{\let\ifTE@val\ifTE@negate}
\def\TE@or{\TE@endeval\noexpand\ifTE@val\noexpand\else\noexpand\ifnum}
\def\TE@and{\TE@endeval\noexpand\ifTE@val\noexpand\ifnum}
\def\TE@neg{\TE@throw\noexpand\TE@negswitch\noexpand\ifnum}
\def\TE@negswitch{\ifTE@negate\TE@negatefalse\else\TE@negatetrue\fi}
\def\TE@lparen#1{\TE@throw\begingroup\TE@eval#1}
\def\TE@rparen#1{%
 \TE@endeval
 \noexpand\expandafter\endgroup\noexpand\ifTE@val#1}
\long\def\TE@equal#1#2#3{\TE@throw
     \def\@tempa{#1}\def\@tempb{#2}%
     \noexpand\ifx\@tempa\@tempb#3}
\def\setboolean#1#2{%
 \lowercase{\def\@tempa{#2}}%
 \@ifundefined{@tempswa\@tempa}%
   {\PackageError{ifthen}%
      {You can only set a boolean to `true' or `false'}\@ehc}%
   {\@ifundefined{#1\@tempa}%
     {\PackageError{ifthen}{Boolean #1 undefined}\@ehc}%
     {\csname#1\@tempa\endcsname}}}
\def\newboolean#1{%
 \expandafter\@ifdefinable\csname if#1\endcsname{%
   \expandafter\newif\csname if#1\endcsname}}
\def\provideboolean#1{%
 \@ifundefined{if#1}{%
   \expandafter\newif\csname if#1\endcsname}\relax}
\long\def\whiledo#1#2{%
 \ifthenelse{#1}%
   {\@whiledotrue
    \@whilesw\if@whiledo\fi
      {#2%
       \ifthenelse{#1}\@whiledotrue\@whiledofalse}}%
   {}%
 }
\def\TE@undef#1#2{%
 \TE@throw\noexpand\ifx\noexpand\@undefined\noexpand#1#2}
\newif\if@whiledo
%%\endinput
%%
%% End of file `ifthen.sty'.




\usepackage[dvipdf]{graphicx}
\usepackage[ansinew]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
%\usepackage{eso-pic}



\newtheorem{definicion}{Definici\'on}
\newtheorem{ejemplo}{Ejemplo}
\newtheorem{conjetura}{Conjetura}
\newtheorem{nota}{Nota}
\newtheorem{algoritmo}{Algoritmo}
\newtheorem{teorema}{Teorema}
\newtheorem{proposicion}{Proposici\'on}
\newtheorem{lema}{Lema}
\newtheorem{corolario}{Corolario}


\@addtoreset{definicion}{chapter}
\@addtoreset{ejemplo}{chapter}
\@addtoreset{conjetura}{chapter}
\@addtoreset{nota}{chapter}
\@addtoreset{algoritmo}{chapter}
\@addtoreset{teorema}{chapter}
\@addtoreset{proposicion}{chapter}
\@addtoreset{lema}{chapter}
\@addtoreset{corolario}{chapter}



\newenvironment{demostracion}{\begin{proof} }{\end{proof}}

\renewcommand{\proofname}{Demostración}

%%%%%%%%%%%%%%%%%%%%%%%%%%Entornos para trabajos en inglés%%%%%%%%%%%%%%%%%

\newtheorem{definicioni}{Definition}
\newtheorem{ejemploi}{Example}
\newtheorem{conjeturai}{Conjecture}
\newtheorem{notai}{Note}
\newtheorem{algoritmoi}{Algorithm}
\newtheorem{teoremai}{Theorem}
\newtheorem{proposicioni}{Proposition}
\newtheorem{lemai}{Lemma}
\newtheorem{corolarioi}{Corollary}


\@addtoreset{definicioni}{chapter}
\@addtoreset{ejemploi}{chapter}
\@addtoreset{conjeturai}{chapter}
\@addtoreset{notai}{chapter}
\@addtoreset{algoritmoi}{chapter}
\@addtoreset{teoremai}{chapter}
\@addtoreset{proposicioni}{chapter}
\@addtoreset{lemai}{chapter}
\@addtoreset{corolarioi}{chapter}



\newenvironment{demostracioni}{\begin{proof} }{\end{proof}}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\textwidth=13.5cm
\textheight=19.0cm
%\hoffset=0.5cm
%\voffset=1cm
\hoffset=2cm
\voffset=2.7cm
\oddsidemargin=-0.5cm
\evensidemargin=-1cm
\topmargin=-1cm


\def\resumen{\bigskip\hrule \vspace*{1.3\baselineskip} \noindent{\bf{Resumen.}}\small }
\def\resumeni{\bigskip\hrule \vspace*{1.3\baselineskip} \noindent{\bf{Abstract.}}\small } %Para el inglés
%\def\keywords{\vspace*{0.5\baselineskip} \noindent{\bf{Palabras clave. }}\small }

\newenvironment{keywords}[1]{\vspace*{0.5\baselineskip} \noindent{{\small \it Palabras clave. }} \it\small #1}{\bigskip\hrule\bigskip\bigskip}
\newenvironment{keywordsi}[1]{\vspace*{0.5\baselineskip} \noindent{{\small \it Keywords. }} \it\small #1}{\bigskip\hrule\bigskip\bigskip}

\def\direccion#1{\begin{raggedright}
   \textit{\noindent\small #1}\bigskip\end{raggedright}}
\renewcommand{\thefootnote}{\arabic{footnote}}


\newcommand{\agrahecho}{ninguno}
\def\agradecimientos#1{\renewcommand{\agrahecho}{#1}}

\def\email#1{{\small\tt E-mail: #1}}

\newcommand{\theautor}{}
\newcommand{\autores}[1]{\renewcommand{\theautor}{#1} \bigskip\bigskip\noindent\textbf{#1}\bigskip}

%Autores para el encabezado de páginas
\newcommand{\theaut}{}
\newcommand{\aut}[1]{\renewcommand{\theaut}{#1}}


\newcommand{\thetitulo}{}
\newcommand{\titulo}[1]{
   \ifthenelse{\equal{\agrahecho}{ninguno}}
   {\renewcommand{\thetitulo}{#1} \noindent{\Large {\chapter{#1}}}}
   {\renewcommand{\thetitulo}{#1} \noindent{\Large {\chapter{#1{\small$^\circledS$}}}} \vskip-0.45truecm
   \renewcommand{\thefootnote}{\fnsymbol{footnote}}
   \footnote[0]{$^\circledS$ \agrahecho} \renewcommand{\thefootnote}{\arabic{footnote}}}
   \renewcommand{\agrahecho}{ninguno}
   }


%%%%Título para el encabezado de páginas
\newcommand{\thetit}{}
\newcommand{\tit}[1]{\renewcommand{\thetit}{#1}}



%ENCABEZADOS


\pagestyle{fancy}
\fancyhead{}
%\fancypagestyle{plain}
\fancyfoot{}
\fancyhead[LO]{\small\bf\theaut}
\fancyhead[RE]{\small\bf\thetit}
\fancyhead[C]{}
\fancyhead[LE]{\thepage}
\fancyhead[RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}

%Marco de la página
%\makeatletter
%\AddToShipoutPicture{%
%  \begingroup
%    \setlength{\@tempdima}{0mm}%
%    \thicklines%
%    \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdima}){%
%      \framebox(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){}}%
%  \endgroup
%}
%\makeatother



\endinput
