%
%    Documenta-TeX.sty (AmSTeX)
%
%    Version 0.5
%
%    Copyright (C) 2000, 2001 Ulf Rehmann
%    rehmann@mathematik.uni-bielefeld.de
%
% ------------------------------ PROLOGUE -----------------------------
%
% This prologue is to be prepended to your TeX file in order to
% give it the layout required by Documenta Mathematica.
% Please edit the \input lines below
% according to your needs and
% go to the line starting with \Title below, fill in title,
% authors' names and so on and follow the further instructions there.
%
%  If you are using amstex, uncomment and modify the following
%  lines according to the need of your paper
%
%%\input
%\input amstex
%\input amssym
%\input german.sty
%\input amssym.def
%\input amssym.tex
\input amstex.tex
\documentstyle{amsppt}
%
% The final values of the following 4 uncommented llines will be filled in
% by Doc. Math. after the manuscript has been accepted for publication.
%
\def\YEAR{\year}\newcount\VOL\VOL=\YEAR\advance\VOL by-1995
\def\firstpage{1}\def\lastpage{5}
\def\received{}\def\revised{}
\def\communicated{}
%
\nopagenumbers

%%% Choose 10pt/12pt:
%\hoffset=1.66cm\voffset=2.5cm %10pt
\hoffset=1.91cm\voffset=2.7cm %10pt
%\magnification1200\hoffset=0.33cm\voffset=0.5cm %12pt

%\hsize=12.5cm\vsize=19.5cm
\hsize=12.0cm\vsize=19.0cm


\font\eightrm=cmr8
\font\caps=cmcsc10                    % Theorem, Lemma etc
\font\ccaps=cmcsc10                   % Sections
\font\Caps=cmcsc10 scaled \magstep1   % Title
\font\scaps=cmcsc8

%
%-----------------headlines-----------------------------------
\pageno=\firstpage\def\folio{\rm\number\pageno}\def\headfoot{25pt}
\def\DocMath{}
\def\makeheadline{
    \vbox to 0pt{\vskip-\headfoot\line{\vbox to8.5pt{}\the\headline}\vss}
    \nointerlineskip}
\headline={\ifnum\pageno=\firstpage{\DocMath\hfill\llap{\folio}}%
           \else{\ifodd\pageno\rightheadline\else\leftheadline\fi}\fi}
\def\rightheadline{\hfill {\caps\rightheadtext}    \hfill \llap{\folio}}
\def\leftheadline {\rlap{\folio} \hfill {\caps\leftheadtext} \hfill }
\def\leftheadtext{\ifnum\pageno>\lastpage\else\SAuthor\fi}
\def\rightheadtext{\STitle}
%%%
\def\TSkip{\bigskip}
\newbox\TheTitle{\obeylines\gdef\GetTitle #1
\ShortTitle  #2
\SubTitle    #3
\Author      #4
\ShortAuthor #5
\EndTitle
{\setbox\TheTitle=\vbox{\baselineskip=20pt\let\par=\cr\obeylines%
\halign{\centerline{\Caps##}\cr\noalign{\medskip}\cr#1\cr}}%
	\copy\TheTitle\TSkip\TSkip%
\def\next{#2}\ifx\next\empty\gdef\STitle{#1}\else\gdef\STitle{#2}\fi%
\def\next{#3}\ifx\next\empty%
    \else\setbox\TheTitle=\vbox{\baselineskip=20pt\let\par=\cr\obeylines%
    \halign{\centerline{\caps##} #3\cr}}\copy\TheTitle\TSkip\TSkip\fi%
%\setbox\TheTitle=\vbox{\let\par=\cr\obeylines%
%\halign{\centerline{\caps##} #4\cr}}\copy\TheTitle\TSkip\TSkip%
\centerline{\caps #4}\TSkip\TSkip%
\def\next{#5}\ifx\next\empty\gdef\SAuthor{#4}\else\gdef\SAuthor{#5}\fi%
\ifx\received\empty\relax
    \else\centerline{\eightrm Received: \received}\fi%
\ifx\revised\empty\TSkip%
    \else\centerline{\eightrm Revised: \revised}\TSkip\fi%
\ifx\communicated\empty\relax
    \else\centerline{\eightrm Communicated by \communicated}\fi\TSkip\TSkip%
\catcode'015=5}}\def\Title{\obeylines\GetTitle}
\def\Abstract{\begingroup\narrower
    \parskip=\medskipamount\parindent=0pt{\caps Abstract. }}
\def\EndAbstract{\par\endgroup\TSkip}

\long\def\MSC#1\EndMSC{\def\arg{#1}\ifx\arg\empty\relax\else
     {\par\narrower\noindent%
     2000 Mathematics Subject Classification: #1\par}\fi}

\long\def\KEY#1\EndKEY{\def\arg{#1}\ifx\arg\empty\relax\else
	{\par\narrower\noindent Keywords and Phrases: #1\par}\fi\TSkip}

\newbox\TheAdd\def\Addresses{\vfill\copy\TheAdd\vfill
    \ifodd\number\lastpage\vfill\eject\phantom{.}\vfill\eject\fi}
{\obeylines\gdef\GetAddress #1
\Address #2
\Address #3
\Address #4
\EndAddress
{\def\xs{4.3truecm}\parindent=0pt
\setbox0=\vtop{{\obeylines\hsize=\xs#1\par}}\def\next{#2}
\ifx\next\empty % 1 address
     \setbox\TheAdd=\hbox to\hsize{\hfill\copy0\hfill}
\else\setbox1=\vtop{{\obeylines\hsize=\xs#2\par}}\def\next{#3}
\ifx\next\empty % 2 addresses
     \setbox\TheAdd=\hbox to\hsize{\hfill\copy0\hfill\copy1\hfill}
\else\setbox2=\vtop{{\obeylines\hsize=\xs#3\par}}\def\next{#4}
\ifx\next\empty\ % 3 addresses
     \setbox\TheAdd=\vtop{\hbox to\hsize{\hfill\copy0\hfill\copy1\hfill}
                \vskip20pt\hbox to\hsize{\hfill\copy2\hfill}}
\else\setbox3=\vtop{{\obeylines\hsize=\xs#4\par}}
     \setbox\TheAdd=\vtop{\hbox to\hsize{\hfill\copy0\hfill\copy1\hfill}
	        \vskip20pt\hbox to\hsize{\hfill\copy2\hfill\copy3\hfill}}
\fi\fi\fi\catcode'015=5}}\gdef\Address{\obeylines\GetAddress}

\hfuzz=0.1pt\tolerance=2000\emergencystretch=20pt\overfullrule=5pt
%%%%% ------------- fill in your data below this line  -------------------
%%%%%    The following lines \Title ... \EndAddress must ALL be present
%%%%%    and in the given order.
\Title
			The Joy of Conics
		or How to Investigate and Classify
		Ellipses, Parabolas, and Hyperbolas
%%%%%    Put here the title. Line breaks will be recognized.
\ShortTitle
			The Joy of Conics
%%%%%    Running title for odd numbered pages, ONE line, please.
%%%%%    If none is given, \Title will be used instead.
\SubTitle
			In Memory of Euclid
%%%%%    A possible subtitle goes here.
\Author
		Apollonius from Pergae%
	\footnote{\eightrm  Supported by the Science Exchange %
	Programme of the Universities of Alexandria and	Pergamon}\
		and Archimedes from Syracuse
%%%%%    Put here name(s) of authors. Line breaks will be recognized.
\ShortAuthor
		   Apollonius and Archimedes
%%%%%%   Running title for even numbered pages, ONE line, please.
%%%%%%   If none is given, \Author will be used instead.
\EndTitle

\Abstract
The various types of conic sections are introduced including a justification
for their respective names ellipsis, parabola, hyperbola. Several
examples are given.
%%%%%    Put here the abstract of your manuscript.
%%%%%    Avoid macros and complicated TeX expressions, as this is
%%%%%    automatically translated and posted as an html file.
\EndAbstract

\MSC
Primary 11E16; Secondary 11D09, 11E04, 15A63.
%%%%%    2000 Mathematics Subject Classification:
\EndMSC

\KEY
Conic section, ellipsis, parabola, hyperbola.
%%%%%    Keywords and Phrases:
\EndKEY

%%%%%    All 4 \Address lines below must be present. To center the last
%%%%%    entry, no empty lines must be between the following \Address
%%%%%    and \EndAddress lines.
\Address
	Apollonius from Pergae
	Department of Mathematics
	University of Pergamon
	Pergamon
	Western Asia Minor, Persia
	diana\@math.uni-pergae.pe

%%%%%    Address of first Author here
\Address
	Archimedes from Syracuse
	King Hieron's Palace
	Heureka Avenue
	Syracuse
	Sicily, Greece
	urania\@math.king-syr.sic

%%%%%    Address of second Author here etc.
\Address
\Address
\EndAddress
%%
%%       Make sure the last tex command in your manuscript
%%       before the first \end or \bye is the command  \Addresses
%%
%%---------------------Here the prologue ends---------------------------------
%%--------------------Here the manuscript starts------------------------------
\def\version{\AmSTeX}
\vfill
\parskip=20pt
\phantom{..}\vfill
\vbox{\hrule\hbox{\vrule\vbox{%
\bigskip\bigskip\bigskip\bigskip
\centerline{ This is just a test for page 1.}
\bigskip
\centerline{ \version}
\bigskip\bigskip\bigskip\bigskip
}\vrule}\hrule}

\vbox{\hrule\vskip-.4pt\hbox{\vrule\vbox to\vsize{%
\vss
\centerline{ This is just a test for page 2.}
\bigskip
\centerline{ \version}
\vss
}\vrule}\vskip-.4pt\hrule}

\vbox{\hrule\vskip-.4pt\hbox{\vrule\vbox to\vsize{%
\vss
\centerline{ This is just a test for page 3.}
\bigskip
\centerline{ \version}
\vss
}\vrule}\vskip-.4pt\hrule}

\vbox{\hrule\vskip-.4pt\hbox{\vrule\vbox to\vsize{%
\vss
\centerline{ This is just a test for page 4.}
\bigskip
\centerline{ \version}
\vss
}\vrule}\vskip-.4pt\hrule}


\vbox{\hrule\hbox{\vrule\vbox{%
\bigskip\bigskip\bigskip\bigskip\bigskip
\centerline{ This is just a test for page 5.}
\bigskip
\centerline{ \version}
\bigskip\bigskip\bigskip\bigskip\bigskip
}\vrule}\hrule}



%%--------------------Here the manuscript ends--------------------------------
\Addresses
\end
