% ===============================================================
% MACROS.TEX
% ===============================================================
% This is part of the Orb Language Reference Manual.
% Copyright (C) 2007 Adrián Fraga Fernandez
% See the file main.tex for copying conditions. ===============================================================

\usepackage{amsmath}
\usepackage{graphicx}		 	
\usepackage{subfigure}
\usepackage{longtable}
\usepackage{fancybox}
\usepackage{color}
\usepackage{colortbl}
\usepackage{listings}
\usepackage[gen]{eurosym}

%\renewcommand{\fbox}[1]{\Ovalbox{#1}}

\newcommand{\SOLOMEMORIA}[1]{#1}

\newcommand{\token}[1]{{\upshape\textsc{Token(}#1\textsc{)}}}
\newcommand{\comen}[1]{{\footnotesize (#1)}}
\newcounter{icontador}

%-------------------------------------------------------------------------------------------
%  Verbatim
%-------------------------------------------------------------------------------------------

\newcommand{\tab}{\hspace{0.5cm}}
\newcommand{\tabx}{\hspace{1cm}}

\newcommand{\code}[1]{\textup{\texttt{#1}}}
%
% (ver "man ascii") 
%
\newcommand{\codecomp}{\symbol{126}}
\newcommand{\codeand}{\symbol{38}}
\newcommand{\codeor}{\symbol{124}}
\newcommand{\codexor}{\symbol{94}}
\newcommand{\codemod}{\symbol{37}}
\newcommand{\codemenor}{\symbol{60}}
\newcommand{\codemayor}{\symbol{62}}
\newcommand{\codebackslash}{\symbol{92}}
\newcommand{\codecarcel}{\symbol{35}}
\newcommand{\codeabrellave}{\symbol{123}}
\newcommand{\codecierrallave}{\symbol{125}}
\newcommand{\codeguionbajo}{\symbol{95}}
\newcommand{\codecomillas}{\symbol{34}}

\newcommand{\uno}[1]{$\langle$#1$\rangle$}
\newcommand{\cerouno}[1]{$\langle$#1$\rangle^{\textrm{0..1}}$}
\newcommand{\ceromas}[1]{$\langle$#1$\rangle^{0+}$}
\newcommand{\unomas}[1]{$\langle$#1$\rangle^{1+}$}
\newcommand{\der}{$\rightarrow$}
%\newcommand{\cont}{$|$}
\newcommand{\vacio}{$\epsilon$}	
\newcommand{\obien}{\hspace{0.075cm}$|$\hspace{0.075cm}}

\newcommand{\fboxcentrado}[1]{
	\begin{center}
%	\fbox{
	\parbox{0.8\textwidth}{\begin{center}#1\end{center}}
%	}
	\end{center}
}
\newcommand{\comentario}[1]{
	{
	\subparrafo{\mdseries Comentario:}
	\itshape
	#1
	\upshape
	}
}

\setlength{\shadowsize}{1.5pt}

\newcommand{\operador}[1]{
	
	\begin{center}
	%\setlength{\fboxrule}{.25pt}
	%\cornersize{.35}
	\shadowbox{
	%\colorbox[gray]{.95}{
	%\begin{tabular}{|cl|}
	\begin{tabular}{cl}
	%\hline
	#1
	%\\\hline
	\end{tabular}
	}
	\end{center}
	
}

\newcommand{\expresion}[1]{$exp_{#1}$}
\newcommand{\ident}[1]{$id_{#1}$}
\newcommand{\eps}{$\epsilon$}

\newcommand{\eemph}[1]{\textbf{\emph{#1}}}
\newenvironment{mienumerate}
	{\begin{enumerate}\renewcommand{\labelenumi}{(\eemph{\arabic{enumi}})}}
	{\end{enumerate}}

%-------------------------------------------------------------------------------------------
%  Draft
%-------------------------------------------------------------------------------------------

\newcommand{\todo}{\tiny\fbox{\textbf{Incompleto}}\normalsize\ }
\newcommand{\revisar}{\tiny\fbox{\textbf{Revisar}}\normalsize\ }
\newcommand{\interrogacion}{\large\fbox{\fbox{\textbf{?}}}\normalsize\ }

%-------------------------------------------------------------------------------------------
%  Hyphenation
%-------------------------------------------------------------------------------------------

\hyphenation{fic-cion in-te-rac-ti-va tra-di-cio-nal di-cho tan-to a-pro-xi-ma-cion tra-duc-tor tra-duc-cion al-go-rit-mo cla-se miem-bro nin-gun or-to-go-na-li-dad}

