%%% ====================================================================
%%%  @LaTeX-style-file{
%%%     author          = "Enrico Bertolazzi",
%%%     version         = "0.1",
%%%     date            = "15-SEPT-96",
%%%     filename        = "easytable.sty",
%%%     address         = "Laboratorio di Matematica Applicata
%%%                        Trento University,
%%%                        Via Mesiano, Trento, Italy",
%%%     FAX             = "+39 (461) 882672",
%%%     email           = "bertolaz@ing.unitn.it (Internet)",
%%%     supported       = "yes. Please send comments via E-mail",
%%%     docstring       = "package for easy typing equations.
%%%
%%% INSTALLATION:
%%%   Put this file where your TeX looks for inputs.
%%%
%%% DOCUMENTATION:
%%%  Compile doctitle.tex.
%%%
%%% COPYING:
%%%   Copying of part or all of this file is allowed under the following
%%%   conditions only:
%%%   (1) You may freely distribute unchanged copies of the file. Please
%%%       include the documentation when you do so.
%%%   (2) You may modify a renamed copy of the file, but only for personal
%%%       use or use within an organization.
%%%   (3) You may copy fragments from the file, for personal use or for
%%%       distribution, as long as credit is given where credit is due.
%%%
%%%   You are NOT ALLOWED to take money for the distribution or use of
%%%   this file or modified versions or fragments thereof, except for
%%%   a nominal charge for copying etc.
%%%
%%%  }
%%% ====================================================================
%%%       ___    ____  ___   _   _      __    __    ____ ______
%%%      /   \  /     /   \  \  /      /  \  /  \  /       /
%%%     /____/ /__   /____/   \/       \    /   / /__     /
%%%    /   \  /     /  \      /         \  /   / /       /
%%%   /____/ /____ /    \    /       \__/  \__/ /       /
%%% ====================================================================
\typeout{Document Style `easytitle'  version 0.1 <15-SEPT-1996>.}
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{easytitle}[1996/09/15 v0.4]

\DeclareOption{thinlines}{%
   \@tab@srule=.7pt
   \@tab@sdash=.5pt
}

\DeclareOption{thiklines}{%
   \@tab@srule=1.5pt
   \@tab@sdash=1.2pt
}

\newdimen\@tab@srule\@tab@srule=1pt
\newdimen\@tab@sdash\@tab@sdash=.7pt

\newif\if@tab@eq

\ProcessOptions

\newcounter{@author@count}
\setcounter{@author@count}{\@z}


\let\@shorttitle\@empty
\let\@longtitle\@empty

\@for\@n:=i,ii,iii,iv,v,vi,vii,viii,ix,x\do{%
    \expandfter\let\csname @author@long@\@n\endcsname\@empty%
    \expandfter\let\csname @author@short@\@n\endcsname\@empty%
    \expandfter\let\csname @address@\@n\endcsname\@empty%
}

\def\titlefmt{}
\def\authorfmt{}

\def\title{\@dblarg{\@title}}
\def\@title[#1]#2{\gdef\@short@title{#1}\gdef\@long@title{\titlefmt#2}}

\@title@addto#1#2{%
\expandafter\ifx\csname#1\endcsname\@empty%
   \expandafter\xdef\csname#1\endcsname{#2\@killglue}%
\else
   \expandafter\xdef\csname#1\endcsname{\csname#1\endcsname,\space#2\@killglue}%
\fi}

\def\author{\addtocounter{@author@count}{\@ne}\addauthor}
\def\addauthor{\@ifnextchar[{\@addauthor}{\@addauthor[]}}
\def\@addauthor[#1]#2{%
\@title@addto{@author@long@\roman{@author@count}}{#2}%
\@title@addto{@author@short@\roman{@author@count}}{#1}%
}

\def\address#1{%
\expandafter\xdef\csname @address@\roman{@author@count}\endcsname
{#1\@killglue}}

\thankses\@empty
\curraddr
\email
\@date\@empty
\@dedicatory=\@empty
\let\@keywords=\@empty
\let\@subjclass=\@empty
\let\@commby=\@empty
\let\@translators=\@empty

\def\communicated#1{\gdef\@communicated{\vskip11pt\small Communicated by #1\par}}
\let\@communicated\@empty

\def\date#1{\gdef\@date{\vskip12pt\normalfont\small\itshape (Received #1)\par}}
\let\@date\@empty

\let\@thanks\@empty
\def\emailfmt{\normalfont\small\ttfamily}

\newcommand{\address}[1]{\g@addto@macro\@authors{{\addressfont#1\par}}}
\newcommand{\email}[1]{\g@addto@macro\@authors{{\emailfont#1\vphantom{q}\par}}}

\def\rightmark{\@shorttitle}
\def\leftmark{\@shortauthors}

\def\maketitle{%
  \def\thefootnote{\fnsymbol{footnote}}
  \cleardoublepage
  \thispagestyle{plainfirst}
  \@thanks
  \@maketitle
  \setcounter{footnote}{0}
  \setcounter{page}{1}
}

\def\@maketitle{%
 \begin{center}
   \parsep0pt
   \@title\unskip\vskip16pt
   \@authors
   \@date
   \@communicated
 \end{center}
}

\def\abstractname{Abstract}
\def\keywordsname{Keywords}

\newenvironment{abs@@@key}[1]{%
 \Small
 \list{}{%
  \labelwidth\z@
  \labelsep\z@
  \itemindent\z@
  \listparindent1em
  \topsep12pt
  \partopsep0pt
  \leftmargin24pt
  \rightmargin\leftmargin
  \parsep0pt plus 1pt}
  \item[\textbf{#1}---]
}{\endlist}

\newenvironment{abstract}
   {\begin{abs@@@key}{\abstractname}}
   {\end{abs@@@key}}

\newenvironment{keywords}
   {\begin{abs@@@key}{\keywordsname}}
   {\unskip.\end{abs@@@key}}
   
   

\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
