%%     PROCMACS.TEX
%%
%% This is the TeX set of macros for the 1989 TUG presenters to
%%      use to format their papers. There will be a similar set
%%      of macros for LaTeX users.
%%
%%
\catcode`@=11
\font\titlefont=cmr17
\font\namefont=cmcsc10 scaled \magstep1
\font\twelvebf=cmbx12
\font\twelverm=cmr12
\font\twelveit=cmti12
\font\sixrm=cmr6
\font\meta=logo10
\font\sc=cmcsc10
\font\sl=cmsl10
\font\eightrm=cmr8
\font\sevenrm=cmr7
\vsize=54pc
\hsize=37pc
\parindent=16pt
\parskip0pt
\nopagenumbers
\normalbaselines
\footline={\hss\sixrm\folio\hss}
\def\makefootline{\baselineskip3pc\line{\the\footline}}
\def\makeheadline{\vbox to\z@{\vskip-22.5\p@
  \line{\vbox to8.5\p@{}\ifnum\count0=1\hfill
         \else\tenrm\ifodd\count0
                \hfill\the\doctitle\ignorespaces
             \else \the\authorname\hfill\fi\fi}\vss}\nointerlineskip}

\newtoks\doctitle  \newtoks\authorname

% Address block macros

\def\beginaddress{\tenrm\begingroup
        \parindent=0pt
        \parskip=0pt
          {\titlefont\the\doctitle
           \vskip3pc
           \namefont\the\authorname}
        \vskip1pc\obeylines}

\def\endaddress{\endgroup\vskip3pc}

%  Abstract macros

\def\beginabstract{\begingroup\centerline{\twelvebf ABSTRACT}\medskip%
                 \leftskip=1cm \rightskip=1cm}

\def\endabstract{\par\endgroup\medskip}

% Heading macros

\newcount\ftanum \newcount\ftbnum

\def\fta#1{\par\removelastskip\vskip12pt plus 1pt minus 1pt
           \advance\ftanum by 1
           \ftbnum=0
           \goodbreak{\noindent\twelvebf\the\ftanum.\ #1\par}
           \nobreak\noindent\ignorespaces}

\def\ftb#1{\par\removelastskip\vskip12pt plus 1pt minus 1pt
           \advance\ftbnum by 1
           \goodbreak{\noindent\bf\the\ftanum.\the\ftbnum\ #1\par}
           \nobreak\noindent\ignorespaces}

\def\ftc#1{\par\removelastskip\vskip12pt plus 1pt minus 1pt
           \goodbreak{\noindent\it #1\par}
           \nobreak\noindent\ignorespaces}


%% Verbatim Text:
\def\uncatcodespecials{\def\do##1{\catcode`##1=12 }\dospecials}
\def\setupverbatim{\parindent=0pt\parskip=0pt\tt\def\par{\leavevmode\endgraf}%
   \obeylines\uncatcodespecials\obeyspaces}
\def\beginverbatim{\par\noindent\begingroup\setupverbatim\doverbatim}
{\catcode`\|=0 \catcode`\\=12 % | is temporary escape character
|obeylines|gdef|doverbatim^^M#1\endverbatim{#1|endgroup}}
{\obeyspaces\global\let =\ }

%%  Bibliography
\def\beginbiblio{%
           \removelastskip\vskip6pt plus 1pt minus 1pt
           \goodbreak{\noindent\twelvebf Bibliography\par}
           \nobreak\ignorespaces
           \overfullrule=0pt
           \begingroup\frenchspacing\raggedright
           \parskip4pt plus3pt minus2pt
           \interlinepenalty=300\clubpenalty=300\widowpenalty=150}

\def\entry{\par\noindent\hangindent\the\parindent}

\def\endbiblio{\par\endgroup}

%    Appendix macro

\def\appendix#1{\ftanum=0 \ftbnum=0
           \vfill\eject
           \centerline{\twelvebf #1}
           \nobreak\ignorespaces}

%   Footnote macro

\newcount\fnum

\def\Footnote#1{\unskip\unskip\unskip\advance\fnum by 1
          \footnote{\raise.6ex\hbox{\sevenrm\the\fnum}}{\unskip
                        \unskip\unskip\eightrm\baselineskip10pt #1\par}}
%     Misc macros

\def\\{\relax\ifmmode \delimiter"26E30F % relax added to trigger math
          \else $\delimiter"26E30F$\fi}%  when not in math mode

\def\MF{{\meta METAFONT}}

\def\AmSTeX{{\tensy A}\kern-.1667em\lower.5ex\hbox
 {\tensy M}\kern-.125em{\tensy S}-\TeX}

\def\LaTeX{{L\kern-.36em\raise.3ex\hbox{\eightrm A}\kern-.15em
   T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

%          End of the Proceedings macros
