%
Paper title and related stuff (author, institution, abstract, keywords)
% Usage:
% \begintitles
% \title{P is equal to NP\cp (I think)}
% \shorttitle{P=NP(?)} % optional --- title for page headers
% \titlerule % A nice centered \hrule
% \author{I. Newton, {\rm Department of Cyberethics}}
% \author{A. Einstein, {\rm W. C. Fields Laboratory}}
% \institution{Sacred Well Divination School,
% Chichen Itza, Yucatan}
% \titlerule
% \abstract{In this paper we make some general remarks
% concerning an algorithm for solving a problem related to an
% important application of a well-known theoretical concept.}
% \keywords{the, that, of, and, in, is.}
% \endtitles
\newdimen\pagewidth
\def\begintitles{\begingroup
\hsize=\pagewidth \leftglue=0pt \rightglue=0pt
\normalsize \baselinesep -1pt \linesep 1.2ex
\vskip4ex plus 0ex minus 1ex
}
\long\def\title#1{\vskip0pt plus1ex
{\vbox{
\titlefont\baselinesep 2.5ex\linesep.2ex\centered
\advance\leftglue by 0.1\hsize
\advance\rightglue by 0.1\hsize #1}}
\gdef\hdtitle{#1}
\vskip2ex}
\def\shorttitle#1{\gdef\hdtitle{#1}}
\def\titlerule{\centerline{
\vbox{\vskip0.5ex\hrule width 3.0truein\vskip0.5ex}} }
\long\def\author#1{\vbox{\normalsize\centered #1}}
\long\def\institution#1{\vbox{\normalsize\centered\it #1}}
\newdimen\abstrwidth % width of abstract and keywords
\long\def\abstract#1{\vskip 1ex plus 0.5ex minus 0.5ex
{\dimen0=\hsize
\advance\dimen0 by -\abstrwidth
\vbox{\advance\leftglue by 0.5\dimen0
\advance\rightglue by 0.5\dimen0
\normalsize\rm\parindent\z@ #1}}}
\def\keywords#1{\centerline{\vbox{
\hsize=\abstrwidth\normalsize\rm\parindent\z@
\hmode{\smallsize\rm KEYWORDS:} #1}}}
\def\endtitles{\vskip3ex\null\endgroup}
%
Support acknowledgement footnote
% Usage:
% \support{The author was partially supported by the kind
% collaboration of his starving slaves, by the
% plundering of several neighboring villages,
% and by lavish gifts from Ramses III.}
%
\long\def\support#1{\botinsert{\smallsize\rm #1}}
%
Section and subsection titles
% Usage:
% \section{1. Acid concepts}
% \subsection{1.1A. Annotation and Undefinitions}
% \subsection{Appendix A: The letters of the alphabet}
\def\section#1{
\bigvbreak
\hbox{{\secfont #1}}\message{ #1 ...}
\penalty 1000\smallvskip}
\def\subsection#1{
\medvbreak
\hbox{{\subsecfont #1}}\message{ #1 ...}
\penalty 1000\smallvskip}