% Style file for 2002 IEEE Ultrasonics Symposium Proceedings
% by Ronald Kumon (26 July 2002)
%
%**********************************************************************
% Legal Notice:
% This code and advice is offered as-is without any warranty either
% expressed or implied; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE!
% User assumes all risk.
% In no event shall IEEE or any contributor to this code
% be liable for any damages or losses, including, but not limited to,
% incidental, consequential, or any other damages, resulting from the
% use or misuse of any information contained here.
% 
% All statements made here are the opinions of their respective
% authors and are not necessarily endorsed by the IEEE.
%
% This code/text is in the public domain,   
% and may be freely used, distributed and modified.
% Please retain the contribution notices and credits.
%**********************************************************************

% Package requirement information
\NeedsTeXFormat{LaTeX2e}

% Package identification
\typeout{Document Package `IEEEUltraSymp' V1.0 <26-July-2002>}
\typeout{Requires Document Class `IEEEtran' V1.5 <26-July-2001>}
\typeout{Read the source comments for details.}
\ProvidesPackage{ieeeultrasymp}[2002/07/26]

% Remove page number from first page
\def\maketitle{\par
  \begingroup
  \def\thefootnote{} % the \thanks{} mark type is empty
  \if@twocolumn
     \if@technote
        \newpage\global\@topnum\z@ \@maketitle
     \else\twocolumn[\@maketitle]\fi
  \else\newpage\global\@topnum\z@ \@maketitle \fi
  \thispagestyle{empty}
  \if@draftclsmode \thispagestyle{titlepagestyle}\fi
  \@thanks
  \endgroup
  \setcounter{footnote}{0}\let\maketitle\relax\let\@maketitle\relax
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
  \let\thanks\relax
  \if@draftclsmode \vfil\mbox{}\newpage\fi}

% Reduced spacing between author names and abstract
\def\@maketitle{\newpage\if@draftclsmode\mbox{}\vfil\fi\begin{center}
    \if@technote
      % V1.4a
      %{\textbf{\large\@title}\par}\vskip 1.3em{\lineskip .5em\@author\@specialpapernotice\par}
      {\textbf{\large\@title}\par}\vskip 1.3em{\lineskip .5em\begin{tabular}[t]{c}\@author\end{tabular}\@specialpapernotice\par}
    \else
      \vskip0.2em{\Huge\@title\par}\vskip1.0em%
      \if@draftclsmode\vfil\fi% 
      %{\lineskip.5em\large\@author\par}
      % V1.4a
      % {\lineskip.5em\large\@author\@specialpapernotice\par}
      {\lineskip.5em\begin{tabular}[t]{c}\@author\end{tabular}\@specialpapernotice\par}
    \fi
%    \end{center}\par\vskip 1.4em}
    \end{center}
    \if@technote
    \par\normalfont\normalsize\vskip 1\baselineskip plus 2ex minus 1ex
    \else
    \par\normalfont\normalsize\vskip 0.75\baselineskip plus 2ex minus 1ex
    \fi}

% Made abstract so that it is not bold and has normal size font
\def\abstract{%
    \if@twocolumn
     % IEEE puts heading in bold
     % \small\textit{Abstract}\bfseries---$\!$%
      \textit{Abstract}---$\!$%
    \else
      \begin{center}\vspace{-0.8em}\textbf{Abstract}\end{center}\quotation
    \fi}
\def\endabstract{\vspace{0.6em}\par\if@twocolumn\else\endquotation\fi
    \normalfont\normalsize}

% Reduced spacing between sections
\def\section{\@startsection{section}{1}{\z@}{1.5ex plus 0.0ex minus 0.0ex}{1.5ex plus 0ex minus 0ex}{\normalfont\normalsize\centering\scshape}}
\def\subsection{\@startsection{subsection}{2}{\z@}{1.5ex plus 0.0ex minus 0.0ex}{1.5ex plus 0ex minus 0ex}{\normalfont\normalsize\itshape}}

% Made the References section numbered and normal size
\def\thebibliography#1{\section{References}%
    \addcontentsline{toc}{section}{References}
    \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}
% originally:
%   \sloppy\clubpenalty4000\widowpenalty4000%
% by adding the \interlinepenalty here, we make it much more
% difficult, but not impossible, for LaTeX to break within a reference.
% IEEE almost never breaks a reference (but they do it more often with
% technotes). You may get an underfull vbox warning around the bibliography, 
% but the final result will be much more like what IEEE will publish. 
% You can remove the \interlinepenalty if you want references to be split.
% MDS 11/2000
\if@technote\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty100%
\else\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty500\fi%
    \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

% Change figure label to not abbreviate ``Figure''
\def\fnum@figure{Figure~\thefigure}

% Change figure label to have colon instead of period after figure number
% and use normal size font
\long\def\@makecaption#1#2#3{
\ifx\figurestring#3
% \ifx tests if is a for a figure
    \vskip 5pt
    % use normal size font; use two nonbreaking spaces, not one
    \setbox\@tempboxa\hbox{#1:~ #2}
    \ifdim \wd\@tempboxa >\hsize
       % use normal size font
       \setbox\@tempboxa\hbox{#1:~ }
       \setlength\captionindent{\wd\@tempboxa} \divide\captionindent by 2
       \captionindent 0em % IEEE does not indent captions MDS 1/2001
       % use normal size
       \parbox[t]{\hsize}{\hangindent \captionindent \hangafter=1%
       \unhbox\@tempboxa#2}
      %\else \hbox to\hsize{\small\hfil\box\@tempboxa\hfil}
      % 3/2001 use footnotesize, not small
      % allow user to control short figure caption justification (left or center)
      \else
        \ifcenterfigcaptions \hbox to\hsize{\hfil\box\@tempboxa\hfil}
        \else \hbox to\hsize{\box\@tempboxa\hfil}
        \fi
    \fi
\else
% or a table
% use normal size font for table caption
    \begin{center}{\small #1}\\{\scshape #2}\end{center}
    \vskip 8pt
\fi}

% Assuming US letter (8.5inX11in) paper:
% Set the left margin to be about 13/16'' (2.06cm)
% Note that LaTeX assumes 1 in margins by default so you 
% you have to set a negative margin to make it less than 
% an inch by 0.1875 in.
\setlength{\evensidemargin}{-0.1875in}
\setlength{\oddsidemargin}{-0.1875in}

% choose a text height 
\setlength{\textheight}{8.875in}
\setlength{\textwidth}{6.875in}

% LaTeX assumes a 1 inch margin offset so if we zero every header 
% at the top, we'll be left with a 1 inch top margin for all pages.
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}
\setlength{\footskip}{0.0in}
\setlength{\marginparsep}{0.0in}
\setlength{\marginparwidth}{0.0in}

% Set column separation
\setlength{\columnsep}{0.25in}

% Turn on center justification of the short figure captions.
% This command requires IEEEtran.cls V1.4 or later!
\centerfigcaptionstrue

% we have to get rid of the headings on all pages if not in draft mode
\pagestyle{empty}

% If in draft mode, redefine lengths so that the text does not 
% overlap the headers and footers, and all margins are one inch.
\if@draftclsmode 
\pagestyle{headings}
\setlength{\evensidemargin}{0.0in}
\setlength{\oddsidemargin}{0.0in}
\setlength{\textheight}{8.5in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.125in}
\setlength{\headsep}{0.125in}
\setlength{\footskip}{0.25in}
\setlength{\marginparsep}{0.0in}
\setlength{\marginparwidth}{0.0in}
\fi
