%From jda@ida.umd.edu Thu Oct 29 09:14:05 1992

%Siddhartha,
%    Sorry, my mistake. Here is the style file. jeff
%modified 6/19/92 by jda/rll
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Needs to use amstex 2.1  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%only change: call amsppt.sty in place of amsppt.sty
%NOTE: this file is in jda/proceedings. It is called
%from a tex document by the command 
%\documentstyle{***/conm-p} where *** refers to the 
%directory jda/proceedings. For example from 
%jda/proceedings/manuscripts_ams/matumoto use:
%\documenstyle{../../conm-p}
%NOTE: it does NOT seem to like 
%\documentstyle{~/jda/proceedings/conm-p}
%
%NOTE: to TeX a document either put in 
%\input amstex at beginning of the file,
%or use ``amstex filename''.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is designed to work with AMS-TeX version 2.1.
%
% The TeX code defined here will modify the AMS-TeX 2.1 preprint style to
% the CONM-P style.  It sets up the correct page size,
% puts a logo and a copyrightline on the first page, and formats the
% top matter, headings and references appropriately.
%
%
% Instructions:
%
%  1. Create a file named  conm-p.sty containing the data in the lines
%     from  %%% conm-p.sty %%%  through  \endinput .  Install the file
%     in the same directory as amsppt.sty .
%
%  2. In a data file, include the line,  \documentstyle{conm-p}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%  First input the preprint style
%\message{loaded: jda`proceedings/conm-p.sty}
%\def\next{AMSPPT}\ifx\styname\next
%\else\input amsppt.sty\fi

\input amsppt.sty

\catcode`\@=11

%  Set the page size and first-page sink appropriately

\pageheight{47pc}
\pagewidth{29pc}
\parindent=12\p@
\def\pretitle{\vskip7pc}

%  Page numbers and running heads are provided by default, as defined
%  in AMSPPT.STY.  Headline text is centered, and page numbers are
%  positioned at the outside corners.  To suppress page numbers and/or
%  running heads, include \NoPageNumbers and/or \NoRunningHeads in the
%  input file, as appropriate.

%  In CONM-P, we do want running heads.  We must provide suitable
%  fonts definitions.  CONM-P specs call for 7-point headlines,
%  but \sevenpoint is not defined in AMSPPT.STY; substitute \eightpoint,
%  which is defined.

\def\foliofont@{\eightrm}
\def\headlinefont@{\eightpoint}

%       define  a logo for the upper left-hand corner

\def\jourlogo{\vbox to0pt{%
        \sixrm \baselineskip6pt
        \parindent0pt \frenchspacing
        Contemporary Mathematics\hfil\break
        Volume {\sixbf\cvol@}, \cvolyear@\par\vss}}

%       macros to be put into the \topmatter for the logo

\def\cvol#1{\gdef\cvol@{\ignorespaces#1\unskip}}
\def\cvolyear#1{\gdef\cvolyear@{\ignorespaces#1\unskip}}
\def\cyear#1{\gdef\cyear@{\ignorespaces#1\unskip}\cyear@@#100000\end@}

\def\cyear@@#1#2#3#4#5\end@{\gdef\cyearmodc@{#3#4}%
        \gdef\cyearmodcHold@{#3#4}}

\cvol{00}
\cyear{0000}
\cvolyear{0000}

\font\sixsy=cmsy6

\def\copyrightline@{\baselineskip1.75pc
    \rightline{%
        \vbox{\sixrm \textfont2=\sixsy \baselineskip 7pt
            \halign{\hfil##\cr
                \copyright\cyear@\ American Mathematical Society\cr
                 0000-0000/\cyearmodc@\ \$1.00 + \$.25 per page\cr }}}}

\def\cyearmodc#1{\gdef\cyearmodc@{\ignorespaces#1\unskip}}

%  The copyright block takes the place of the AMS-TeX logo; otherwise the
%  AMSPPT.STY output routine does what we want.

\let\logo@=\copyrightline@

%  text font is 10-on-13; AMSPPT.STY is 10-on-12

\addto\tenpoint{\normalbaselineskip13\p@
 \abovedisplayskip6\p@ plus6\p@ minus0\p@
 \belowdisplayskip6\p@ plus6\p@ minus0\p@
 \abovedisplayshortskip0\p@ plus3\p@ minus0\p@
 \belowdisplayshortskip2\p@ plus3\p@ minus0\p@
 \ifsyntax@
 \else
  \setbox\strutbox\hbox{\vrule height9\p@ depth4\p@ width\z@}%
  \setbox\strutbox@\hbox{\vrule height8\p@ depth3\p@ width\z@}%
 \fi
 \normalbaselines\rm}

%  modify \title to use a larger font

\font@\titlebf=cmbx10 scaled \magstep2
\font@\titlei=cmmi10 scaled \magstep2
\font@\titlesy=cmsy10 scaled \magstep2
\def\titlefont{\normalbaselineskip18\p@
 \textonlyfont@\bf\titlebf
 \ifsyntax@\else
  \textfont\z@\titlebf  \scriptfont\z@\tenrm  \scriptscriptfont\z@\sevenrm
  \textfont\@ne\titlei  \scriptfont\@ne\teni  \scriptscriptfont\@ne\seveni
  \textfont\tw@\titlesy \scriptfont\tw@\tensy \scriptscriptfont\tw@\sevensy
  \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
 \fi
 \normalbaselines\titlebf}


\def\title{\let\savedef@\title
 \def\title##1\endtitle{\let\title\savedef@\let\\=\cr
   \global\setbox\titlebox@\vtop{\titlefont\bf
   \raggedcenter@\frills@{##1}\endgraf}%
 \ifmonograph@ \edef\next{\the\leftheadtoks}\ifx\next\empty
    \leftheadtext{##1}\fi
 \fi
 \edef\next{\the\rightheadtoks}\ifx\next\empty \rightheadtext{##1}\fi
 }%
 \nofrillscheck\title}

%  authors are set in all caps

\def\author#1\endauthor{\global\setbox\authorbox@
 \vbox{\tenpoint\raggedcenter@
  \expandafter\uppercase{\ignorespaces#1\endgraf}}\relaxnext@
 \edef\next{\the\leftheadtoks}%
 \ifx\next\empty\expandafter\uppercase{\leftheadtext{#1}}\fi}

\def\address#1\endaddress{\global\advance\addresscount@\@ne
  \expandafter\gdef\csname address\number\addresscount@\endcsname
  {\vskip12\p@ minus6\p@\indent\eightpoint{\smc\ignorespaces#1}\par}}

%  Current addresses as well as permanent ones must be accommodated.
%  Check on the skip before the address; it may be a fixed 6pt.
%  \smallskip has been assumed before the current address, as that
%  is what has been used for \email.

\def\email{\let\savedef@\email
  \def\email##1\endemail{\let\email\savedef@
  \toks@{\def\usualspace{{\it\enspace}}\endgraf\smallskip\indent\eightpoint}%
  \toks@@{##1\par}%
  \expandafter\xdef\csname email\number\addresscount@\endcsname
  {\the\toks@\frills@{{\noexpand\it E-mail address\noexpand\/}:%
     \noexpand\enspace}\the\toks@@}}%
  \nofrillscheck\email}


\def\curraddr{\let\savedef@\curraddr
  \def\curraddr##1\endcurraddr{\let\curraddr\savedef@
  \toks@\expandafter\expandafter\expandafter{%
       \csname address\number\addresscount@\endcsname}%
  \toks@@{##1}%
  \expandafter\xdef\csname address\number\addresscount@\endcsname
  {\the\toks@\endgraf\noexpand\nobreak
    \smallskip\indent\noexpand\eightpoint{\noexpand\rm
    \frills@{{\noexpand\it Current address\noexpand\/}:\space}%
    \def\noexpand\usualspace{\space}\the\toks@@\unskip}}}%
  \nofrillscheck\curraddr}


%  \abstract differs from the one in AMSPPT.STY by the use of a slightly 
%  larger indentation.

\def\abstract{\let\savedef@\abstract
 \def\abstract{\let\abstract\savedef@
  \setbox\abstractbox@\vbox\bgroup\indenti=3pc\noindent$$\vbox\bgroup
  \def\envir@end{\endabstract}\advance\hsize-2\indenti
  \def\usualspace{\enspace}\eightpoint \noindent
  \frills@{{\smc Abstract.\enspace}}}%
 \nofrillscheck\abstract}


%  \keywords, \subjclass and \thanks appear as first-page footnotes.
%  Reformat the top matter for CONM-P style.

\outer\def\endtopmatter{\add@missing\endabstract
 \edef\next{\the\leftheadtoks}\ifx\next\empty
  \expandafter\leftheadtext\expandafter{\the\rightheadtoks}\fi
 \ifmonograph@\else
   \ifx\thesubjclass@\empty\else \makefootnote@{}{\thesubjclass@}\fi
   \ifx\thekeywords@\empty\else \makefootnote@{}{\thekeywords@}\fi
   \ifx\thethanks@\empty\else \makefootnote@{}{\thethanks@}\fi
 \fi
  \jourlogo
  \pretitle
  \vskip24\p@ plus12\p@ minus12\p@
  \unvbox\titlebox@
  \topskip10pt% reset to normal value
  \preauthor
  \ifvoid\authorbox@\else \vskip14\p@ plus6\p@ minus0\p@\unvbox\authorbox@\fi
  \predate
  \ifx\thedate@\empty\else \vskip6\p@ plus2\p@ minus0\p@
    \line{\hfil\thedate@\hfil}\fi
  \preabstract
  \ifvoid\abstractbox@\else \vskip24\p@ plus12\p@ minus0\p@
    \unvbox\abstractbox@ \fi
  \ifvoid\tocbox@\else\vskip1.5pc plus.5pc \unvbox\tocbox@\fi
  \prepaper
  \vskip24\p@ plus12\p@ minus0\p@}

%  Heading styles are different from AMSPPT.STY:
%  \heading is bold, otherwise the same.
%  \subheading and \subsubheading are indented, otherwise the same.

\def\headfont@{\bf}
\def\refheadfont@{\smc}
\let\varindent@\indent

%  Indentation for \proclaim, \demo, etc., are the same as for \subhead,
%  and are taken care of by \varindent.
%  \proclaim head font is small caps, and the text font is italic (not \sl).
%  \demo is preceded by a \smallskip and followed by none (not \medskip).

\def\proclaimheadfont@{\smc}

\let\proclaim\relax
\outer\def\proclaim{%
  \let\savedef@\proclaim \let\proclaim\relax
  \add@missing\endroster \add@missing\enddefinition
  \add@missing\endproclaim \envir@stack\endproclaim
 \def\proclaim##1{\restoredef@\proclaim
   \penaltyandskip@{-100}\medskipamount\varindent@
   \def\usualspace{{\proclaimheadfont@\enspace}}\proclaimheadfont@
   \ignorespaces##1\unskip\frills@{.\enspace}%
  \it\ignorespaces}%
 \nofrillscheck\proclaim}
\def\endproclaim{\revert@envir\endproclaim \par\rm
  \penaltyandskip@{55}\medskipamount}

\def\demoheadfont@{\smc}
\def\remarkheadfont@{\smc}

\def\enddemo{\par\revert@envir\enddemo \endremark\vskip\z@ plus 1\p@\relax}

\def\remark{\let\savedef@\remark \let\remark\relax
  \add@missing\endroster \add@missing\endproclaim
  \envir@stack\endremark
  \def\remark##1{\restoredef@\remark
    \penaltyandskip@\z@\smallskipamount
  {\def\usualspace{{\remarkheadfont@\enspace}}%
  \varindent@\remarkheadfont@\ignorespaces##1\unskip%
  \frills@{.\enspace}}\rm
  \ignorespaces}\nofrillscheck\remark}
\def\demo{\DN@{\ifx\next\nofrills
    \DN@####1####2{\remark####1{####2}\envir@stack\enddemo
      \ignorespaces}%
  \else
    \DN@####1{\remark{####1}\envir@stack\enddemo\ignorespaces}%
  \fi
  \next@}%
\FN@\next@}


%  Roman type is needed within the statement of theorems for numerals,
%  fences, labels, etc.  This definition should ultimately be in amsppt.sty.

\def\rom#1{{\rm #1}}

%  \Refs differs only in the skip below, which is 8pt (default=6pt)
%  Before reiterating definition only for that, check to see if it matters.

\def\citefont@{\bf}


\let\Refs\relax
\outer\def\Refs{\add@missing\endroster \add@missing\endproclaim
 \let\savedef@\Refs \let\Refs\relax % because of \outer-ness
 \def\Refs##1{\restoredef@\Refs
   \if\notempty{##1}\penaltyandskip@{-200}\aboveheadskip
     \begingroup \raggedcenter@\refheadfont@
       \ignorespaces##1\endgraf\endgroup
     \penaltyandskip@\@M\belowheadskip
   \fi
   \begingroup\def\envir@end{\endRefs}\refsfont@\sfcode`\.\@m
   }%
 \nofrillscheck{\csname Refs\expandafter\endcsname
  \frills@{{References}}}}


%  Some patches are needed, to make \yr appear in translation information,
%  and to avoid the spurious unboxing of some empty boxes.


%  Add current address to \enddocument

\outer\def\enddocument{\par% \par will do a runaway check for \endref
  \add@missing\endRefs
  \add@missing\endroster \add@missing\endproclaim
  \add@missing\enddefinition
  \add@missing\enddemo \add@missing\endremark \add@missing\endexample
 \ifmonograph@ % do nothing
 \else
 \nobreak
 \thetranslator@
 \count@\z@ \loop\ifnum\count@<\addresscount@\advance\count@\@ne
 \csname address\number\count@\endcsname
 \csname email\number\count@\endcsname
 \repeat
\fi
 \vfill\supereject\end}



\catcode`\@=13

\def\amsversion{2.1}
\endinput                                 

