% I am writing in Spanish
\usepackage[spanish]{babel}

% I do not like writing tildes with lots of characters
\usepackage[T1]{fontenc}

% I do not remember why, but these packages help producing nice PDFs
\usepackage{ae,aecompl}

% I want to use the Euro symbol
\usepackage{eurosym}

% I will include figures 
\usepackage{graphicx}
\usepackage{epsfig}

\usepackage{tabularx}

\defbeamertemplate*{footline}{split theme}{%
  \leavevmode%
  \hbox{%
 \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1.125ex,center]{title in head/foot}%
    \usebeamerfont{author in head/foot}ESIG 2008
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.5ex,dp=1.125ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1.125ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertframenumber\ de \inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}



%
% Define a command to set the document format
%
\newcommand{\setdocumentformat}{\pretolerance=10000\tolerance=10000}

%
% A comment
% In red, in the margin
%
\newcommand{\miguelcomment}[1]{\marginpar{\begin{flushright}\footnotesize\textcolor{red}{#1}\end{flushright}}}

\newcommand{\miguelspanish}[1]{{\em #1}}

%
% Defines a width for graphics such that the graphic is adjusted to the width of the page 
% if its size is bigger, or remains unchenged if smaller
%
\makeatletter
\def\maxwidth{%
  \ifdim\Gin@nat@width>\linewidth
    \linewidth
  \else
    \Gin@nat@width
  \fi
}
\makeatother

%
% Defines a command to center a chunk of text vertically in the page.
% Receives three arguments. The first two are numbers used to 
% control the vertical position. Both set to 1 will center the text.
% The third argument is the text to be centered
%
\newcommand\centervertically[3]{%
  \vspace*{\stretch{#1}}
    \leavevmode#3
  \vspace*{\stretch{#2}}
}

\hyphenation{data-base}
\hyphenation{car-to-gra-phic}