%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \filename{procsla.sty} \version{19-sep-1994} \by{bob jantzen}
%
%    quick and dirty modifications                               %%%%%%%%%%%%%
%    use these at your own risk (jantzen@ucis.vill.edu)          %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The World Scientific attempt at  making latex macros disables all of the
% power of latex! They also forget to deal with the math fonts by not using
% font families, which is evident in the MG6 Proceedings: 
%         the math is too small (10pt compared to 12pt text)!
% The following macros attempt to retain the power of latex and get the
% math right while modifying standard latex to give the desired format.

\typeout{>>>>>>>>>>> Loading MG7 LaTeX proceedings macros <<<<<<<<<<<}

% Miscellaneous Preliminary Macros:

\def\nopagenumbers{\pagestyle{empty}}              % kills header and footer
    \nopagenumbers   % worldsci does the pagination; comment out in drafts

\def\Newpage{\Message{Forced pagebreak on page: }\newpage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page setup:

\def\pagesetup{
\textwidth 6.0in
\textheight 8.5in
\pagestyle{empty}
\topmargin -0.25truein
\oddsidemargin 0.30truein
\evensidemargin 0.30truein
\raggedbottom\parindent=20pt
\baselineskip=14pt}

\pagesetup

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts:
% One must use the family size commands of latex to also get math fonts 
% automatically at the right size, as well as to use all the usual typeface
% changing commands. The following leads to redefinition of the family \xiipt:

% twelve point = 10 pt scaled by 20 percent for reduction back to 10pt:
%     (modifications of fonts loaded by LFONTS.TEX)
 \font\twlrm  = cmr10 scaled \magstep1     % roman  
 \font\twlmi  = cmmi10 scaled \magstep1    % math italic
 \font\twlit  = cmti10 scaled \magstep1    % text italic
 \font\twlsl  = cmsl10 scaled \magstep1    % slanted
 \font\twlbf  = cmbx10 scaled \magstep1    % extended bold 
 \font\twltt  = cmtt10 scaled \magstep1    % typewriter

%  now the baselineskip (from ART12.DOC):
%\def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
\def\@normalsize{\@setsize\normalsize{14pt}\xiipt\@xiipt
\abovedisplayskip 12pt plus3pt minus7pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  \z@ plus3pt%   
\belowdisplayshortskip  6.5pt plus3.5pt minus3pt%
\let\@listi\@listI}   % Setting of \@listi added 9 Jun 87

% now the 10pt for the abstract (taken from ART12.DOC footnotesize):
%\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
\def\small{\@setsize\small{12pt}\xpt\@xpt
\abovedisplayskip 10pt plus2pt minus5pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  \z@ plus3pt%   
\belowdisplayshortskip  6pt plus3pt minus3pt
\def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
\topsep 6pt plus 2pt minus 2pt\parsep 3pt plus 2pt minus 1pt
\itemsep \parsep}}


%  and the footnotes at 9pt instead of 10pt:
   %\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
\def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
   % the rest is taken from ART10.DOC for the 9pt size:
   %\def\small{\@setsize\small{11pt}\ixpt\@ixpt
\abovedisplayskip 8.5pt plus 3pt minus 4pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2pt%
\belowdisplayshortskip 4pt plus2pt minus 2pt
\def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Footnotes:
% 
% Since the numbered citations are superscripts, the footnotes cannot
% use numbers for the counter since there would be  no way to distinguish
% them, so symbol footnotes are used for the title/author information and
% then lettered footnotes are used for the rest:

\newcommand{\symbolfootnotes}{\renewcommand{\thefootnote}
	{\fnsymbol{footnote}}}

\newcommand{\alphafootnotes}
	{\setcounter{footnote}{0}
	 \renewcommand{\thefootnote}{\alph{footnote}}}

% lettered footnotes as default:
  \alphafootnotes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Titlepage macros:
  \typeout{ >> MG7tex note: If you are looking to squeeze out white space,
               you might consider reducing the .8cm length used in the title
               material to .5cm, and removing the extra space in the abstract.}
  \typeout{ >> MG7tex note: This vertical space reduction has been done.}

\newenvironment{Titlepage}{\parsep=0pt \topsep=0pt \symbolfootnotes}%
             {\relax} 
       % to avoid extra vertical space before and after center environment
       % and make symbol footnotes here

\def\Title#1\endTitle{\begin{center}%
   \baselineskip=16pt %\twelvebf (twelvept already in force)
%\bf #1\\[.8cm]}                    %<<<<<<<<<   big vertical space
 \bf #1\\[.5cm]}                    %<<<<<<<<<   
  \typeout{ >> MG7tex note: Note that long titles must be broken by hand
               and should be all uppercase.}

\def\Author#1#2\endAuthor{\small\it
   {\rm #1}\\[1pt] #2\\[.3cm]}
  \typeout{ >> MG7tex note: Note that author names should be all uppercase.}

   % place between the last two separate address authors:
%\def\And{{\tenrm and }\\[.3cm]}  
\def\And{{\rm and }\\[.3cm]}  

  \typeout{ >> MG7tex note: Note that no blanklines may appear 
               in the titlepage before the endAuthors command 
               (center environment in use).}
\def\endAuthors{\end{center}
%                \vglue .8cm    %<<<<<<<<<   big vertical space
                \vglue .5cm    %<<<<<<<<<   
                      \alphafootnotes}

\newenvironment{Abstract}%
       {\centering\bgroup
          \begin{minipage}{30pc}\small
            \noindent
	    \centerline{\tenrm ABSTRACT}
%            \vspace{0.3cm}     %<<<<<<<<<<<<<<  removable vertical space
	    \parindent=0pt}%
         {\end{minipage}\egroup\par
%         \vspace{0.3cm}        %<<<<<<<<<<<<< removable vertical space
         \normalsize}

% and if no sectioning commands follow the abstract use:
  \def\afterabstractspace{\vskip .5truecm plus -0.5ex minus -0.1ex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% section macros:

\typeout{ >> MG7tex note: Warning! These sectioning commands are not 
intelligent enough to avoid bad breaks between the section title and text.}

% some info on the latex \section command from art12.doc:

% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
%            optional * [ALTHEADING]{HEADING}
%    Generic command to start a section.  
%    NAME       : e.g., 'subsection'
%    LEVEL      : a number, denoting depth of section -- e.g., section=1,
%                 subsection = 2, etc.  A section number will be printed if
%                 and only if LEVEL < or = the value of the secnumdepth
%                 counter.
%    INDENT     : Indentation of heading from left margin
%    BEFORESKIP : Absolute value = skip to leave above the heading.  
%                 If negative, then paragraph indent of text following 
%                 heading is suppressed.
%    AFTERSKIP  : if positive, then skip to leave below heading,
%                       else - skip to leave to right of run-in heading.
%    STYLE      : commands to set style
%  If '*' missing, then increments the counter.  If it is present, then
%  there should be no [ALTHEADING] argument.  A sectioning command
%  is normally defined to \@startsection + its first six arguments.

%\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
%    -.2ex}{2.3ex plus .2ex}{\Large\bf}}
%\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
%   -.2ex}{1.5ex plus .2ex}{\large\bf}}
%\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
% -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
%\def\paragraph{\@startsection
%     {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
%\def\subparagraph{\@startsection
%     {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
%     .2ex}{-1em}{\normalsize\bf}}


% Remarks:
% The World Scientific beforeskip of .6cm plus only a 12pt baselineskip 
%    for the section title is replaced with .5cm and uniform 14pt baselineskip 
%    throughout; the extra 2pt = .703mm nearly makes up for the missing .1cm.
% For the afterskip I reduced the space a little bit, for appearance and
% since most of us are short on space with only a 2 (3?) page limit.
 
\def\section{\@startsection{section}{1}
{\z@}{.5truecm plus -0.5ex minus -0.1ex}{\medskipamount}{\bf}}
%2.3ex plus .2ex}{\twelvebf}}
\def\subsection{\@startsection{subsection}{2} 
{\z@}{\bigskipamount}{\smallskipamount}{\it}}
%1.5ex plus .2ex}{\twelveit}}
\def\subsubsection{\@startsection{subsubsection}{3}
{\z@}{\bigskipamount}{\smallskipamount}{\rm}}
%1.5ex plus .2ex}{\twelverm}}

% now change \thesection etc to put a period after the counter number;
% from ARTICLE.DOC:
%\def\thepart{\Roman{part}} % Roman numeral part numbers.
%\def\thesection       {\arabic{section}}
%\def\thesubsection    {\thesection.\arabic{subsection}}
%\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}

\def\thesection       {\arabic{section}.}
\def\thesubsection    {\thesection\arabic{subsection}.}
\def\thesubsubsection {\thesubsection \arabic{subsubsection}.}

% and the same for any appendices:
% from art12.doc:
\def\appendix{\par
  \setcounter{section}{0}
  \setcounter{subsection}{0}
%  \def\thesection{\Alph{section}}}
  \def\thesection{\Alph{section}.}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography:
% They seem to want extra left margin compared to the standard
% thebibliography environment, but a representative said we may change
% some of these choices, so I will use the standard latex choices.

% remove square brackets from reference list numbers
% and extra vertical spacing before after and between list items:

% from latex.tex:
%\def\@biblabel#1{[#1]\hfill}
\def\@biblabel#1{#1.\hfill}

%       from article.doc:
\def\thebibliography#1{\section*{References\@mkboth
  {\uppercase{References}}{\uppercase{References}}}\list
  {\@biblabel{\arabic{enumi}}}{\settowidth\labelwidth{\@biblabel{#1}}%
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
% this is the vertical space removal:
    \parsep\z@ plus\p@ \itemsep\z@ plus\p@ minus\p@ \topsep\z@
    \usecounter{enumi}%
    \let\p@enumi\@empty
    \def\theenumi{\arabic{enumi}}}%
    \def\newblock{\hskip .11em plus.33em minus.07em}%
    \sloppy\clubpenalty800\widowpenalty800
    \sfcode`\.=1000\relax
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Figures and Tables:
% 10pt in the figure and table captions

% from latex.tex:
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\csname 
  the#1\endcsname}{\ignorespaces #2}}\begingroup
    \@parboxrestore
%    \normalsize
    \small
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}

% from article.doc:
% \def\fnum@figure{Figure \thefigure}
% \def\fnum@table{Table \thetable}
%  ws wanted Fig. and Table, which seems inconsistent to me. I will leave it.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% equations:
\def\beq{\begin{equation}} \def\eeq{\end{equation}}  % for lazy typers
\def\beqa{\begin{eqnarray}} \def\eeqa{\end{eqnarray}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% this one I cannot figure out:
\def\pounds{\hbox{\it\char'44}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% macros for my instructions involving latex commands:

\chardef\bslash=`\\    % stolen from manmac.tex for backslash to use in
                       % typewriter font control sequence symbol:
\def\csb#1{{\tt\bslash #1}}   % (without the \bslash in #1)(#1= only letters)
       % similar def:
\def\cs#1{{\tt\string #1}}  % to print control sequences in TEX documents
                            % (with the \bslash in #1)(#1= control sequence)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\typeout{>>>>>>>>>>> End MG7 LaTeX proceedings macros <<<<<<<<<<<}

