%
%
% pimrc98.sty  6/12/98
% 
% by Pen Li, GTE Labs Inc.  pli@gte.com
%
% --------------------------------------------------------------- 
%
% no guarantee is given that the format corresponds perfectly to 
% PIMRC'98, but most features should be ok.
%
% --------------------------------------------------------------- 
% LaTeX2e:
% ========
%
%   \documentclass[times,10pt,twocolumn]{article} 
%   \usepackage{pimrc98}
%   \usepackage{times}
%
% --------------------------------------------------------------- 
% LaTeX 2.09:
% ===========
%
%   \documentstyle[times,art10,twocolumn,pimrc98]{article}
%
% --------------------------------------------------------------- 
% with both versions:
% ===================
%
% specify \pagestyle{empty} to omit page numbers in the final 
% version
%
% use Section{} and SubSection{} instead of standard section{} 
% and subsection{} to obtain headings in the form 
%
% ---------------------------------------------------------------

% ten point helvetica bold required for captions
% in some sites the name of the helvetica bold font may differ, 
% change the name here:
\font\tenhv  = phvb at 10pt
%\font\tenhv  = phvb7t at 10pt

% eleven point times bold required for second-order headings 
% \font\elvbf  = cmbx10 scaled 1100
\font\elvbf  = ptmb scaled 1100

% set dimensions of columns, gap between columns, and paragraph indent 
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7.51in}
\setlength{\columnsep}{0.3in}
\setlength{\topmargin}{0in}
\setlength{\headheight}{-0.25in}
\setlength{\headsep}{0in}
\setlength{\parindent}{1pc}
\setlength{\oddsidemargin}{-.5in}
\setlength{\evensidemargin}{-.5in}
\setlength{\topmargin}{-0.5in}

\renewcommand{\baselinestretch}{1.2}

\def\@maketitle
   {
   \newpage
   \null
   \begin{center}
      {\Large \bf \@title \par} 
      \vspace*{18pt} 
      {
      \large 
      \lineskip .5em
      \begin{tabular}[t]{c}
         \@author 
      \end{tabular}
      \par
      } 
      \vspace*{12pt} 
      {
       \large 
      \begin{tabular}[t]{c}
         \@affiliation 
      \end{tabular}
      \par 
      \ifx \@empty \@email
      \else
         \begin{tabular}{r@{~}l}
            E-mail: & {\tt \@email}
         \end{tabular}
         \par
      \fi
      }
      \vspace*{12pt} 
   \end{center}
   } 

\def\abstract
   {
   \centerline{\bf ABSTRACT}%
   \vspace*{12pt}
   }

\def\endabstract
   {
   \vspace*{2pt} 
   }

\def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}

\def\email#1{\gdef\@email{#1}}
\gdef\@email{}

\newlength{\@ctmp}
\newlength{\@figindent}
\setlength{\@figindent}{1pc}

\long\def\@makecaption#1#2{
   \vskip 10pt
   \setbox\@tempboxa\hbox{\tenhv\noindent #1.~#2} 
   \setlength{\@ctmp}{\hsize}
   \addtolength{\@ctmp}{-\@figindent}\addtolength{\@ctmp}{-\@figindent} 
   \ifdim \wd\@tempboxa >\@ctmp
      \begin{list}{}{\leftmargin\@figindent \rightmargin\leftmargin} 
         \item[]\tenhv #1.~#2\par
      \end{list}
   \else
      \hbox to\hsize{\hfil\box\@tempboxa\hfil} 
   \fi}

\def\section{\@startsection {section}{1}{\z@}
   {14pt plus 2pt minus 2pt}{14pt plus 2pt minus 2pt} {\large\bf}} 
\def\subsection{\@startsection {subsection}{2}{\z@}
   {13pt plus 2pt minus 2pt}{13pt plus 2pt minus 2pt} {\elvbf}}

\newcommand{\Section}[1]{\addtocounter{section}{1}{\bf\center \Roman{section} ~#1 \\} \vspace*{10pt}} 
\newcommand{\SubSection}[1]{\subsection{\hskip -1em.~#1}}

