% sctitle.sty -- by Frank Neukam  (01 Dec 1993)

\ifx\sectfont\undefined
 \def\@sectfont{\bf}
\else
 \let\@sectfont=\sectfont
\fi

\def\next@tpage{\newpage\thispagestyle{empty}\null}
\def\@extratitle{}
\long\def\extratitle#1{\def\@extratitle{#1}}
\def\@titlehead{}
\long\def\titlehead#1{\def\@titlehead{#1}}
\def\@subject{}
\def\subject#1{\def\@subject{#1}}
\def\@publishers{}
\def\publishers#1{\def\@publishers{#1}}
\def\@uppertitleback{}
\long\def\uppertitleback#1{\def\@uppertitleback{#1}}
\def\@lowertitleback{}
\long\def\lowertitleback#1{\def\@lowertitleback{#1}}
\def\@dedication{}
\def\dedication#1{\def\@dedication{#1}}
\def\maketitle{\@ifnextchar [{\@maketitle}{\@maketitle[1]}}
\def\@maketitle[#1]{\bgroup \@restonecolfalse
 \if@twocolumn \@restonecoltrue\onecolumn \else \newpage \fi
 \thispagestyle{empty}\null
 \setcounter{page}{#1}
 \let\footnotesize\small
 \let\footnoterule\relax
 \ifx\@extratitle\@empty \else
  \noindent\@extratitle \next@tpage \if@twoside \next@tpage \fi
 \fi
 \ifx\@titlehead\@empty \else
  \noindent\begin{minipage}[t]{\textwidth}
  \@titlehead
  \end{minipage}\par
 \fi
 \null \vfill
 \ifx\@subject\@empty \else
  {\centering \Large \@subject \par}
  \vskip 3em
 \fi
 {\centering \huge \@sectfont \@title \par}
 \vskip 3em
 {\centering \Large \lineskip 0.75em
  \begin{tabular}[t]{c}\@author
  \end{tabular}\par}
 \vskip 1.5em
 {\centering \Large \@date \par}
 \vskip 0pt plus 3fill
 {\centering \Large \@publishers \par}
 \vskip 3em
 \par \@thanks
 \if@twoside \next@tpage
  \noindent\begin{minipage}[t]{\textwidth}
  \@uppertitleback
  \end{minipage}\par
  \vfill
  \noindent\begin{minipage}[b]{\textwidth}
  \@lowertitleback
  \end{minipage}
 \fi
 \ifx\@dedication\@empty \else
  \next@tpage \vfill
  {\centering \Large \@dedication \par}
  \vskip 0pt plus 3fill
  \if@twoside \next@tpage \fi
 \fi
 \if@restonecol\twocolumn \else \newpage \fi
 \egroup
 \setcounter{footnote}{0}
 \let\thanks\relax \gdef\@extratitle{}\gdef\@titlehead{}\gdef\@subject{}%
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@publishers{}%
 \gdef\@uppertitleback{}\gdef\@lowertitleback{}\gdef\@dedication{}%
 \let\maketitle\relax \let\@maketitle\relax}

\newif\if@abstrt
\def\abstracton{\@abstrttrue}
\def\abstractoff{\@abstrtfalse}
\def\abstractname{Abstract}
\def\abstract{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty} \null \vfil
 \if@abstrt \begin{center} {\@sectfont \abstractname} \end{center}\fi}
\def\endabstract{\par \vfil \null
 \if@twoside \next@tpage \fi
 \if@restonecol\twocolumn \else \newpage \fi}

