% abstract_colection.sty   by balemi@aut.ethz.ch
% created      15-AUG-91

\typeout{Document Style `abstract_collection' <15-AUG-91>.}

\input article.sty\relax

% Definitions Necessary to put all abstracts together

%disable \begin{document}, \end{document, \documentstyle
\def\document{}
\def\enddocument{}
\def\documentstyle{
\@ifnextchar[{\@documentstyle}{\@documentstyle[]}}
\def\@documentstyle[#1]#2{}
 
\def\@preamblecmds{\do\totaldocument \do\totaldocumentstyle 
   \do\@totaldocumentstyle
   \do\@options \do\@preamblecmds \do\@optionlist \do\@optionfiles
   \do\nofiles \do\includeonly \do\makeindex \do\makeglossary}

%\define totaldocument instead of document for the master file
\def\totaldocument{\endgroup
  \@colht\textheight  \@colroom\textheight \vsize\textheight
   \columnwidth\textwidth \@clubpenalty\clubpenalty
   \if@twocolumn \advance\columnwidth -\columnsep 
      \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue 
   \fi
  \hsize\columnwidth \linewidth\hsize
  \begingroup\@floatplacement\@dblfloatplacement
   \makeatletter\let\@writefile\@gobbletwo
   \@input{\jobname.aux}\endgroup 
  \if@filesw \immediate\openout\@mainaux=\jobname.aux
    \immediate\write\@mainaux{\relax}\fi
  \def\do##1{\let ##1\@notprerr}%
  \@preamblecmds
  \let\do\noexpand  
  \@normalsize\everypar{}}

\def\endtotaldocument{\@checkend{document}\clearpage\begingroup  
\if@filesw \immediate\closeout\@mainaux 
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
\if@tempswa \@warning{Label(s) may have changed.  Rerun to get
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}

% comment the lines
% in \let\maketitle\relax
% in \let\@maketitle\relax
% in the definition of \maketitle


\def\@maketitle{\newpage
 \null
 \vskip 2em 
\begin{center}
 \noindent{\LARGE \bf \@title \par} \vskip 1.5em {\lineskip .5em
\begin{tabular}[t]{c}\hskip -\parindent\hskip-.5em\large\@author 
 \end{tabular}\par} 
 \vskip 1em {\large \@date} 
 \par
\end{center}
 \vskip 1.5em} 
\def\abstract{\if@twocolumn
\section*{Abstract}
\else \small 
\begin{center}
{\bf Abstract\vspace{-.5em}\vspace{0pt}} 
\end{center}
\quotation 
\fi}
\def\and{%%                             % \begin{tabular} 
\end{tabular}
\par
\begin{tabular}[t]{c}\hskip -\parindent\hskip-.5em\large%% \end{tabular}
}

\def\maketitle{
\par
 \begingroup
 \def\thefootnote{\fnsymbol{footnote}}
 \def\@makefnmark{\hbox 
 to 0pt{$^{\@thefnmark}$\hss}} 
 \newpage
 \global\@topnum\z@ \@maketitle \thispagestyle{plain}\@thanks
 \endgroup
 \setcounter{footnote}{0}
 %\let\maketitle\relax
 %\let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@abstract{}
\gdef\@keywords{}\gdef\@title{}\let\thanks\relax
}

% removes date
\def\date#1{}
\gdef\@date{}

% redefines abstract to be as wide as page
\def\abstract{ \section*{Abstract}}
\def\endabstract{\normalsize\rm}

% one column only for abstracts
\onecolumn

% to input a whole document
\def\inputabstract#1{\input{#1}\newpage}

\setlength\topmargin{-15mm}
\setlength\oddsidemargin{4mm}
\setlength\evensidemargin{4mm}
\setlength\textheight{245mm}
\setlength\textwidth{160mm}
