%%
%% This is file `pimrc.sty',
%% generated by TJW, June 2002 (c)
%%
%% Use as a package with IEEEtran.cls v1.5 by Michael Shell et al.
%% to provide article format meeting PIMRC guidelines
%%
%% Source file looks like this:
%%
%% \documentclass[10pt,twocolumn]{IEEEtran}
%% \usepackage{pimrc}
%% \title{The 13th international IEEE symposium on personal, indoor %
%% and mobile radio communications: Instructions for preparation of %
%% manuscripts}
%% \author{Author One$^1$, Author Two$^2$ \\%
%% \vspace{0.3em} \\%
%% $^1$ Affiliation, Street address, Postal code,
%% City, Country, author.one@xx.yy.zz \\%
%% $^2$ Instituto Superior Técnico, Av. Rovisco Pais 1049-001  %
%% Lisboa, Portugal, author.two@ist.utl.pt}%
%% 
%%
%% \begin{document}
%%
%% \maketitle 
%%
%% \begin{abstract}
%%   < abstract>
%% \end{abstract}
%%
%% \begin{keywords}
%%    < keywords>
%% \end{keywords}
%%
%% < paper contents >
%%     Note: \section{} headings will be SMALL CAPS unless
%%     otherwise specified
%%
%% \end{document}
%%
%%
\def\fileversion{0.1}
\def\filedate{2002/06/12}
\def\docdate {2002/06/12}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pimrc}[\filedate\space\fileversion\space(TJW)]

%%
%% PAGE LAYOUT (A4 paper)
%%
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\setlength{\oddsidemargin}{15mm}  
\setlength{\evensidemargin}{\oddsidemargin}  
\setlength{\topmargin}{25mm}  
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\textwidth}{180mm}
\setlength{\textheight}{232mm}
\setlength{\columnsep}{8mm}
\setlength{\linewidth}{86mm}
\setlength{\paperheight}{297mm}%
\setlength{\paperwidth}{210mm}
\ifpdf
\setlength{\pdfpagewidth}{210mm}
\setlength{\pdfpageheight}{297mm}
\fi
\pagestyle{empty}

%%
%%   TITLE
%%
\renewcommand\maketitle{\par
  \begingroup
  \def\thefootnote{} % the \thanks{} mark type is empty
  \if@twocolumn
    \twocolumn[\@maketitle]
  \else\newpage\global\@topnum\z@ \@maketitle \fi
  \thispagestyle{empty}\@thanks
  \endgroup
  \setcounter{footnote}{0}\let\maketitle\relax\let\@maketitle\relax
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
  \let\thanks\relax
  }

\renewcommand\@maketitle{\newpage
    \begin{center}
      {\large\bfseries\MakeUppercase\@title\par}\vskip1.0em%
      {\lineskip.5em\normalsize\begin{tabular}[t]{c}\@author\end{tabular}\par}
    \end{center}
    \par\normalfont\normalsize\vskip 2.5\baselineskip plus 2ex minus 1ex
    }

%%
%% ABSTRACT & KEYWORDS
%%
\newcommand\abstractname{Abstract}
\newcommand\keywordname{Keywords}
%%
%% Abstract 
%%
\renewenvironment{abstract}{%
   {\noindent \normalfont\normalsize\bfseries\abstractname \hspace{0.2ex} -} %
   } %
   {%
    \setlength{\parskip}{0pt}
    \vspace{0.2em}
   }

%%
%% Keywords
%%
\renewenvironment{keywords}{%
   {\noindent \normalfont\normalsize\bfseries\keywordname \hspace{0.2ex} -} %
   } %
   {%
    \setlength{\parskip}{0pt}
    \vspace{0.2em}
   }

%%
%% TABLES AND FIGURES
%% 
%% Adjust Table & Figure caption formats
%%
\long\def\@makecaption#1#2#3{
\ifx\figurestring#3
% \ifx tests if is a for a figure
    \vskip 5pt
    % 6/2002 TJW use normal font size
    \setbox\@tempboxa\hbox{\normalsize #1.~~ #2}
    \ifdim \wd\@tempboxa >\hsize
       % 6/2002 TJW use normal font size
       \setbox\@tempboxa\hbox{\normalsize #1.~~ }
       \setlength\captionindent{\wd\@tempboxa} \divide\captionindent by 2
       \captionindent 0em % IEEE does not indent captions MDS 1/2001
       % 6/2002 TJW use normal font size
       \parbox[t]{\hsize}{\normalsize \hangindent \captionindent \hangafter=1%
       \unhbox\@tempboxa#2}
      %\else \hbox to\hsize{\small\hfil\box\@tempboxa\hfil}
      % 6/2002 TJW use normal font size
      % allow user to control short figure caption justification (left or center)
      \else
        \ifcenterfigcaptions \hbox to\hsize{\normalsize\hfil\box\@tempboxa\hfil}
        \else \hbox to\hsize{\normalsize\box\@tempboxa\hfil}
        \fi
    \fi
\else
% or a table
% 6/2002 TJW use normal font size, not small caps
    \begin{center}{\normalsize #1}\\{\normalsize #2}\end{center}
    \vskip 8pt
\fi}

%% centre figure captions if less than one line
\centerfigcaptionstrue

%% make Table caption lower case, arabic numbering
\def\thetable{\@arabic\c@table}
\def\fnum@table{Table~\thetable}

%%
%% BIBLIOGRAPHY
%%
% 6/2002 TJW change to normal font size (technote in IEEEtran.cls omitted)
\def\thebibliography#1{\section*{References}%
    \addcontentsline{toc}{section}{References}
    \normalsize\list
    {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
    \advance\leftmargin\labelsep \itemsep 0pt plus .5pt
    \usecounter{enumi}}
    \def\newblock{\hskip .11em plus .33em minus .07em}
    \sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty500%
    \sfcode`\.=1000\relax}


                                     
%%
%% End of file `pimrc.sty'.
