%%%
% $Revision: 29 $
% $Date: 2006-03-27 12:22:01 +0200 (lun, 27 mar 2006) $
%
%%%
%*********************************************************
%\parskip    = 5mm plus .1mm minus .1mm
\parskip    = 5mm
\headsep = 4mm
\textheight = 180mm
\textwidth  = 120mm
\oddsidemargin = 0mm
\evensidemargin= -12mm
\topmargin     = -5mm

\parindent = 10mm

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Soluciones
\def\solu#1{}
\def\insolu{\def\solu##1{##1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\arraystrecht{1.2}

\def\bibname{Bibliografía}
\def\chaptername{Capítulo}
\def\contentsname{Índice}
\def\figurename{Figura}
\def\indexname{Glosario}
\def\listfigurename{Índice de figuras}
\def\listtablename{Índice de tablas}
\def\partname{Parte}
\def\seename{V.}
\def\tablename{Tabla}
\def\thepart{\Alph{part}}
\setlength\abovecaptionskip{0pt} %10pt
\setlength\belowcaptionskip{0pt}


%\renewcommand{\(}{$\begin{displaystyle}}  % Displayed Formula
%\renewcommand{\)}{\end{displaystyle}$}    % Displayed Formula
%********************************************************
%\newcommand{\FinLinea}{\mbox{ } \newline}
%\newcommand{\DEM}{\noindent {\bf Demostraci\'on.\mbox{ }} \\ \indent}
%\newcommand{\FDEM}{\par\vspace{-10mm}\null\hfill $\Box$}
%\newcommand{\OBS}{\noindent {\bf Observaci\'on. \mbox{ }} \\ \indent}
%\newcommand{\BOX}{$\hfill \Box$}
%********************************************************
%\def\contra{{\bf Contraejemplo.}\\}
%\newcounter{alg}[chapter]
%\def\alg{\par\goodbreak\noindent{\bf Algoritmo \refstepcounter{alg}\thealg.}\par}
%\newtheorem{pro}{Proposici\'on}[chapter]
%\newtheorem{teo}{Teorema}[chapter]
%\newtheorem{defi}{Definici\'on}[chapter]
%\newtheorem{lema}{Lema}[chapter]
%\newtheorem{cor}{Corolario}[chapter]
%\newtheorem{met}{M\'etodo}[chapter]
%\newcounter{horiz}
%\newcounter{verti}

\def\thechapter{\arabic{chapter}}
\def\chapter#1
     {
     \markboth{}{}
     \cleardoublepage
     \thispagestyle{empty}
     \begin{center}
     {
     \large\bf
     \refstepcounter{chapter}
     \vspace*{38mm}
     \chaptername\ \thechapter\\
     \vspace{6mm}
     #1
     \addcontentsline{toc}{chapter}{\thechapter $\qquad$ #1\dotfill}
     \markboth{\ \ \ \chaptername\ \thechapter.\ #1\hfill}{}
     }
     \end{center}
     \chapternote
     }

%%% Cabecera de los capítulos con la nota de copyright
\def\chapternote{}
\def\chapternoteon{\def\chapternote{\marginpar{\hspace{-75mm}\raisebox{50mm}{\fbox{\parbox{70mm}{\tiny\thechapternote}}}}}}

\def\appendix
{
\def\chaptername{Ap\'endice}
\setcounter{chapter}{0}
\def\thechapter{\Alph{chapter}}
}

\def\chaptere#1
     {
     \markboth{}{}
     \cleardoublepage
     \thispagestyle{empty}
     \begin{center}
     {
     \large\bf
     \vspace*{38mm}
     #1
     \markboth{\ \ \ #1\hfill}{}
     }
     \end{center}
     \chapternote
     }

\def\ca#1
     {
     \newpage
     \thispagestyle{empty}
     \begin{center}
     {
     \vspace*{38mm}
     \large\bf
     #1
     \markboth{#1}{}
     }
     \end{center}
     }

\def\capi#1
     {
     \cleardoublepage
     \thispagestyle{empty}
     \begin{center}
     {
     \large\bf
     \vspace*{38mm}
     #1
     \addcontentsline{toc}{chapter}{#1}
     \markright{#1}
     }
     \end{center}
     }

\def\tableofcontents
     {
     {
%    \raggedright
     \ca{\contentsname}
     \@starttoc{toc}
     }
     }

\def\listoffigures
     {
     \ca{\listfigurename}
     \@starttoc{lof}
     }

\def\listoftables
     {
     \ca{\listtablename}
     \@starttoc{lot}
     }

\def\section#1
     {
     \refstepcounter{section}
     \def\thesection{\arabic{section}}
     \par
     \goodbreak
        {
        \raggedright
     \bf \makebox[10mm][l]{\bf \thesection.\sectionmark} #1
        \par\nopagebreak
        }
%     \addcontentsline{toc}{section}{$\qquad$\thesection.\ \ \lowercase{#1}}
     \addcontentsline{toc}{section}{$\qquad$\thesection.\ \ #1}
     \markright{\hfill\thechapter.\thesection\ #1\ \ \ }
     \def\sectionmark{}
     }

\def\marksection{\def\sectionmark{\mbox{$^{***}$}}}

\def\subsection#1
     {
     \refstepcounter{subsection}
     \def\thesubsection{\arabic{subsection}}
     \par
     \goodbreak
        {
        \raggedright
     \bf \makebox[10mm][l]{\bf \thesection.\thesubsection.} #1
        \par\nopagebreak
        }
%    \addcontentsline{toc}{subsection}{\thesubsection$\qquad$ #1}
     }

\def\subsectione#1
     {
     \par
     \goodbreak
        {
        \raggedright
     \bf #1
        \par\nopagebreak
        }
     }

\def\subsubsection#1
     {
     \refstepcounter{subsubsection}
     \def\thesubsubsection{\arabic{subsubsection}}
     \par
     \goodbreak
        {
        \raggedright
     \bf \makebox[10mm][l]{\bf \thesection.\thesubsection.\thesubsubsection.}
#1
        \par\nopagebreak
        }
%    \addcontentsline{toc}{subsubsection}{\thesubsubsection$\qquad$ #1}
     }

\def\thebibliography#1{\ca{\bibname}
\list
  {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}%
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \def\theenumiv{\arabic{enumiv}}}%
    \def\newblock{\hskip .11em plus.33em minus.07em}%
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=\@m}

\def\endthebibliography{%
  \def\@noitemerr{\@warning{Empty `thebibliography' environment}}%
  \endlist}
