% ejs-article.sty version 1, 04/97
% LaTeX package for articles published in the Electronic Journal of SADIO
% http://www.dc.uba.ar/sadio/ejs

\newcommand{\ShortIssueNo}{vol.\ 0, no.\ 0, 0000}
\newcommand{\IssueNo}{vol.\ 0, no.\ 0, 0000}
\newcommand{\Issue}[4]{%
  \renewcommand{\ShortIssueNo}{#1(#2) #3 (#4)}
  \renewcommand{\IssueNo}{vol.\ #1, no.\ #2, pp.\ #3 (#4)}
  ~\vspace{-0.5in}
  \hrule
  \begin{center}
    {\LARGE\sf Electronic Journal of SADIO} \\[8pt]
    {\large\tt http://www.dc.uba.ar/sadio/ejs/} \\[8pt]
    {\large\IssueNo}
  \end{center}
  \hrule
  \vspace{0.25in}
  }
\newcommand{\HeadingAuthorInfo}{}
\newcommand{\HeadingAuthor}[1]{\renewcommand{\HeadingAuthorInfo}{#1}}
\newcommand{\HeadingTitleInfo}{}
\newcommand{\HeadingTitle}[1]{\renewcommand{\HeadingTitleInfo}{#1}}

\newcommand{\Body}{
  \thispagestyle{empty} 
  \clearpage\pagestyle{myheadings}
  \markright{\rm \HeadingAuthorInfo, {\it\HeadingTitleInfo\/},
    {\sf EJS}, \ShortIssueNo}
  }
\newcommand{\Title}[1]{
  \begin{center}
    \Large\bf #1
  \end{center}
  }
\newcommand{\Author}[1]{
  \begin{center}
    \large\em #1
  \end{center}
  }
\newcommand{\And}{~~~}
\newcommand{\Institution}[1]{
  ~\vspace{-26pt}
  \begin{center}
   #1
  \end{center}
  }
\newcommand{\Email}[1]{{\tt #1}}
\newcommand{\Web}[1]{{\tt #1}}

\newcommand{\Ack}[1]{
\begin{figure}[b]
\noindent
\hrulefill\\
{\small #1}
\end{figure}
}
\newcommand{\History}[1]{\vfill
\centerline{\small\sf #1}
\vfill
}

% The \institute command is defined here.

\newcounter{@inst}
\newcounter{@auth}

\def\institute#1{\gdef\@institute{#1}}

\def\institutename{\par
 \begingroup
 \parskip=\z@
 \parindent=\z@
 \setcounter{@inst}{1}% 
 \def\and{\par\stepcounter{@inst}%
 \noindent$^{\the@inst}$\enspace\ignorespaces}%
 \setbox0=\vbox{\def\thanks##1{}\@institute}%
 \bigskip
 \ifnum\c@@inst=1\relax
 \else
   \setcounter{footnote}{\c@@inst}%
   \setcounter{@inst}{1}%
   \noindent$^{\the@inst}$\enspace
 \fi
 \ignorespaces
% \def\thefootnote{\fnsymbol{@inst}} %ojo aca!!!!!!!!
%\the@inst %OJO!!!!!!!!!!!!!!!
 \@institute\par
 \bigskip
 \endgroup}

\def\inst#1{\unskip$^{#1}$}

\newcommand{\myinstitution}[1]{
  \begin{center}
    \institute{#1}
    \institutename
  \end{center}
  }

