% This document style has been designed for papers to be submitted to
% BIW96 being published by AIP.
% Location: This file biw96.sty should be placed in the same 
% directory as your input.tex file
% To use this give biw96 as an optional argument to \documentstyle.  
% The main style should be ARTICLE.  E.g.,
%     \documentstyle[12pt,biw96]{article}
%    
%     Typical usage is
%     \documentstyle[12pt,biw96]{article}
%     \pagestyle{empty}
%     \begin{document}
%     \title{Preparation of Papers in the Specified Format for Camera-Ready
%        Manuscripts Being Submitted for the AIP Conference Proceedings of 
%        the Beam Instrumentation Workshop May 6-9, Argonne, Illinois}
%     \author{AUTHOR'S NAME\thanks{Footnotes should be typeset in 9 point
%     roman at the bottom of page where cited}\\ 
%     {\em University Department, University Name, Address, City, \\
%     State Zip/Zone, Country}\\
%     \vspace{0.3cm}
%     and \\
%     \vspace{0.3cm} 
%     SECOND AUTHOR'S NAME\thanks{Representing the WHATEVER Collaboration.}\\
%     {\em Group, Company, Address, City, State ZIP/Zone, Country}}
%     \maketitle
%     \setlength{\baselineskip}{2.6ex}
%     etc.
\typeout{}
\typeout{}
\typeout{Document Substyle `BIW96'}
\typeout{}
\typeout{Format for Beam Instrumentation Workshop, Argonne, IL, May 6-9, 1996}
\typeout{}
\typeout{Please contact Cathy Eyberger, if you require assistance.}
\typeout{}
\typeout{}
\typeout{}
\typeout{}


   	    %%%%%%%%%%%%%%%%%%%
  	    % Set the margins %
    	    %%%%%%%%%%%%%%%%%%%

\oddsidemargin 0.8cm 
\topmargin -1.5cm \headheight 12pt \headsep 25pt   
\footheight 12pt \footskip 75pt
\textheight 21.2cm \textwidth 14cm
\parindent 0.5cm  \baselineskip 2.6ex

\newcommand{\un}[1]{\underline{\vphantom{y}#1}}  % these are now
\newcommand{\de}{$^{\circ}$}                     % defined here rather
\newcommand{\emet}{{\em et al.}}                 % than in the preamble 
                                                 % of the paper

\frenchspacing   %suppresses the space at periods that are not full stops.

            %%%%%%%%%%%%%%%%%%%%%%%%%
            % MAKETITLE LINE:       %
            % Define the title page %  
            %%%%%%%%%%%%%%%%%%%%%%%%%

\def\maketitle{\par
 \begingroup
 \def\thefootnote{\fnsymbol{footnote}}
 \def\@makefnmark{\mbox{$^\@thefnmark$}}
 \@maketitle 
 \@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
\def\@maketitle{
{\hsize\textwidth             
 \linewidth\hsize \centering
 {\large \bf \@title \par} \vskip 0.3cm  {\normalsize  \@author \par}}}
\def\copyrightspace{\footnotetext[0]{\mbox{}\vrule height 97pt width 0pt}}

\def\thefootnote{\mbox{\noindent$\fnsymbol{footnote}$}}
    \long\def\@makefntext#1{\noindent$^{\@thefnmark}$#1}
            

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%            %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%            % Sections and Subsections Centred%
%            %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sections: centred with NO number.%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 \def\section{\@startsection{section}{1}{\z@}
 {-2.6ex plus -.8ex minus -.17ex}{1.2ex plus .17ex} %{\parindent}
 {\normalsize\bf\centering}}

 \def\subsection{\@startsection{subsection}{2}{\z@}
 {-2.6ex plus -.8ex minus -.17ex}{1.2ex plus .17ex}
 {\normalsize\bf\centering}}

 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}
 {-2.6ex plus -.8ex minus -.17ex}{1.2ex plus .17ex} 
 {\normalsize\bf\centering}}

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

            %%%%%%%%%%%%%%%%
            % Bibliography %
            %%%%%%%%%%%%%%%%
 %Centred Title. Parenthesis around the citations (1).

\def\thebibliography#1{\section*{{\hfill {\normalsize \bf REFERENCES }\hfill
\rule{0pt}{0pt}}\@mkboth
 {REFERENCES}{REFERENCES}}\list
 {{\arabic{enumi}.}}{\settowidth\labelwidth{{(#1)}}%
 \leftmargin\labelwidth  \frenchspacing
 \advance\leftmargin\labelsep
 \itemsep=-0.2cm
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}
\def\@cite#1#2{\unskip\nobreak\relax{(#1)}}
\let\endthebibliography=\endlist
\def\notbj#1{\mathpalette\c@ncel#1}
\def\diracs#1{\mathpalette\c@ncel#1}
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
{\@ssect{#3}{#4}{#5}{#6}}%
{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}

\newcount\@tempcntc
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@ifundefined                         
       {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
    {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}%
     \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne
       \@citea\def\@citea{,}\hbox{\csname b@\@citeb\endcsname}%
     \else
      \advance\@tempcntb\@ne
      \ifnum\@tempcntb=\@tempcntc
      \else\advance\@tempcntb\m@ne\@citeo
      \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}}
\def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\@citea\def\@citea{,}%
  \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else
   {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else \def\@citea{--}\fi
    \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi}
\def\citenum#1{{\def\@cite##1##2{[##1]}\cite{#1}}}



	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%(Definition for ABSTRACT)                     %%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%
%%the abstract is centred
\def\abstract{\if@twocolumn
\section*{Abstract}         %\bf has been removed
\else \small
\begin{center}
{\bf Abstract\vspace{-.5em}\vspace{0pt}}
\end{center}
\quotation
\fi}
\def\endabstract{\if@twocolumn\else\endquotation\fi}
%%%%%%%%%%%%%%%

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%%  Figure  captioning layout                     %%%
	%%  Can change height and font.                   %%%
	%%  e.g. change \footnotesize  to  \normalsize\em %%%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
\def\fnum@figure{{\bf Figure. \thefigure}}

\long\def\@makecaption#1#2{
   \vskip 10pt 
   \setbox\@tempboxa\hbox{\small #1. #2}
   \ifdim \wd\@tempboxa >\hsize    %   IF longer than one line:
      \small #1. #2\par            %   THEN set as ordinary paragraph.
   \else                           %   ELSE  center.
      \hbox to\hsize{\hfil\box\@tempboxa\hfil}  
   \fi}



