%
% Definitions
%

\usepackage{tabularx}

% Adds a space between the text and the [T]op \hline
\newcommand\T{\rule{0pt}{3.1ex}}

% Adds a space between the text and the [B]ottom \hline
\newcommand\B{\rule[-1.7ex]{0pt}{0pt}}

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

% I will include subfigures 
%\usepackage{subfigure}

% 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 will use colors
\usepackage{color}
%\usepackage{graphicx,color}
\usepackage{epsfig}
%\input epsf
%\usepackage{psfig}

% Package to crete references (links) in the PDF
\definecolor{darkblue}{rgb}{0,0.08,0.5}
\usepackage[dvipdfm,
            bookmarks,
            bookmarksnumbered,
            %pdfpagemode={None},
            %colorlinks,
            pdfborder={0 0 0},
            linkcolor={0 0 0},
            linkbordercolor={0 0 0},
            citecolor={0 0 0},
            citebordercolor={0 0 0},
            urlcolor={0 0 0},
            urlbordercolor={0 0 0}
            ]{hyperref}
\usepackage{url}

% Packages for tables
\usepackage{multirow}
\usepackage{multicol}

%
% 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}
