% RIT CSI abstract template
% By Fran Rogers, 2010-07-26
%
% Based on ``Conference single Abstract style for LaTeX2e'':
% http://spectroscopy.mps.ohio-state.edu/eas/viewStyle.php
% Original copyright follows:
%
% Copyright (C) 1995 by Sergey Panov
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
%
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{csiabstract}[2010/07/26]
\RequirePackage{ifthen}[1994/05/27]

\pagestyle{empty}

\ExecuteOptions{final}
\ProcessOptions

\def\@authoraddress{}
\def\and{\unskip,}

\renewcommand{\author}[1]{
 \ifx\@empty\@authoraddress
  \def\@authoraddress{#1, }
 \else
  \expandafter\def\expandafter\@authoraddress\expandafter
  {\@authoraddress{; #1, }}
 \fi
}

\newcommand\address[1]{
  \expandafter\def\expandafter\@authoraddress\expandafter
  {\@authoraddress{\itshape#1}}
}

\renewcommand\maketitle{\par
  \begingroup
    \newpage
    \global\@topnum\z@
    \@maketitle
    \@thanks
  \endgroup
  \let\thanks\relax
  \let\maketitle\relax\let\@maketitle\relax
  \gdef\@thanks{}
  \gdef\@author{}
  \gdef\@title{}
}

\def\@maketitle{
\@title
\vskip.5em
\begin{list}{}{\setlength{\rightmargin}{\leftmargin}}
\item[]\ignorespaces
\@authoraddress\unskip.
\end{list}
}

\AtBeginDocument{
  \flushleft\minipage{\columnwidth}
  \maketitle
  \small
}

\AtEndDocument{
  \endminipage\endflushleft
}
