%%%%% snow2e.cls for LaTeX2e
%%
%%  Version 1.2 7/30/96
%%       1. Added \renewcommand for . after counter in references
%%       2. Added info source comment in \typeout
%%  Version 1.1a 7/26/96
%%       1. Added \renewcommand for . after counter in headings
%%       2. Added info source comment in \typeout
%%  Version 1.1 7/25/96
%%       Error (aka 'bizarre feature') corrections: 
%%        1. Removed . from def of \thesection, etc.
%%        2. Added \uppercase to definition of \section
%%        3. Corrected the definition of \thesubsubsection
%%
%% Usage is:
%%            \documentclass[smus OR sma4]{snow2e}
%%            \usepackage{graphics}  %% or other graphics-importing package
%%
%%     You do not need the particular package called "graphics",
%%     any graphics importing package will work. You *do* need
%%     the times.sty file and its fonts.
%%
%% --------------------
%% This was epac96us.cls as of 7 July 1996.
%% Modified by J.R. Walker for Snowmass 96, 7/15/96
%% To make the style somewhat similar to Phys Rev style, 
%% without having to have RevTeX installed.
%% snow2e.cls Version 1.0 7/15/96
%%      Changed some parameters, and added commenting.
%%      Reorganized sections a bit, to keep like definitions together.
%%      Changed typeout text to reflect snowmass options.
%%
%% --------------------
% This was epac.sty in text format, as of 23 October 1991.
%% Modified by J. Poole for EPAC'96
%%
% Modified 24/10/95 - moved Michel Goossens dense list code after
%                     the LoadClass
% Modified 18/04/96 - typeout text about graphics package added
%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% This is the official style file of the Snowmass 96 Conference. %%%%%
%% It is a style option of the standard LaTeX 'article' style. 
%% The usage for a Snowmass 96 document is:
%% \documentclass{snow2e}
%% with the options smus or smA4 for US or A4 size paper
%%
%%%%% The following parameters can be adjusted for Snowmass 96 in this file:
%% Margins for US or A4 paper 
%% Height of title block
%% Dense lists
%% Also there are some useful macros at the end of the file.
%
%%%%% Instructions for authors are provided in a separate file, at: 
% http://www.slac.stanford.edu/grp/techpubs/snowmass/AuthGuide/
% or
% ftp://preprint.slac.stanford.edu/grp/techpubs/snowmass/guide.pdf
% or
% ftp://preprint.slac.stanford.edu/grp/techpubs/snowmass/guide.ps
% or
% ftp://preprint.slac.stanford.edu/grp/techpubs/snowmass/guide.w6
%%
%%%%%

\def\fileversion{1.2}
\def\filedate{1996/07/30}
\def\docdate {1996/07/30}

\newlength{\dsep}
\newlength{\dwid}
\newlength{\dht}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{snow2e}[\filedate\space Version \fileversion]
%% USE US size paper:
\DeclareOption{smus}
   {\setlength{\dwid}{6mm}%
    \setlength{\dht}{-18mm}
    \setlength{\paperheight}{11in}
    \setlength{\paperwidth}{8.5in}}
%% USE A4 size paper:
\DeclareOption{sma4}
   {\setlength{\dwid}{0mm}%
    \setlength{\dht}{0mm}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

\ExecuteOptions{sma4}
\ProcessOptions

\LoadClass[10pt]{article}
\RequirePackage{times}
 
\typeout{ }
\typeout{<<-----------------------------------------------------------------
>>}
\typeout{<<-----------------------------------------------------------------
>>}
\typeout{}
\typeout{ snow2e.cls, v. 1.2  -- July 30, 1996 }
\typeout{ for Snowmass 96 electronic publication. }
\typeout{ Options for Snowmass authors in snow2e.cls are: }
\typeout{ smus for US size paper, or sma4 for A4 size paper.}
\typeout{ }
\typeout{ Macros available: dense lists, titleblockheight, and useful
macros.}
\typeout{ If you do not have the graphics package available, then you can }
\typeout{ use epsfig or similar: the particular package `graphics' is }
\typeout{ not essential for the electronic publication process.}
\typeout{ }
\typeout{ Further documentation and web resource URLs are contained }
\typeout{ commented in the snow2e.cls file.}
\typeout{}
\typeout{<<-----------------------------------------------------------------
>>}
\typeout{<<-----------------------------------------------------------------
>>}
\typeout{ }
 
%%%%% DIMENSION OF TEXT:
%% 
%% Changed textwidth from 170 mm to 182mm - jrw 7/11/96
%% Changed columnsep from 5mm to 4mm - jrw 7/11/96
%% Changed topmargin from 10mm to 7mm - jrw 7/17/96
\setlength{\textheight}{241mm}   
\setlength{\textwidth}{182mm}
\setlength{\columnsep}{4mm}
\setlength{\topmargin}{7mm} 
\setlength{\oddsidemargin}{20mm}
\setlength{\evensidemargin}{20mm}

%% Driver margins - these values are usually 0, to set the margin
%%      1 in from the sides and top of the paper.
%%      For Snowmass we want narrower margins than 1 in - jrw 7/11/96
%%
\hoffset -28mm
\voffset -32mm
%% Original epac96us.cls settings:
%\hoffset -24.4mm
%\voffset -25.4mm
 
%% Width of rule between columns. (i.e., 0pt = no rule)
\columnseprule 0pt      
 
%% Fractions of the pages that can be occupied by floats
\renewcommand{\topfraction}{.95}
\renewcommand{\bottomfraction}{.95}
\renewcommand{\textfraction}{0.1}
 
%% 
\def\@oddhead{}\def\@evenhead{}
\def\@oddfoot{}
\def\@evenfoot{\@oddfoot}
%%
%%%%% END DIMENSION OF TEXT

 
%%%%% SECTION FORMAT
%%
%% Define Section Counter Display Formats:
%% 7/15/96 jrw -- Changed to Roman numeral/Capital Letter/Arabic 
%%  numeral counting, without hierarchical format 
%% 7/30/96 jrw -- Added . appropriately in section references, 
%%      (It will not work if you try to do a table of contents.)
%%  Many thanks to David Wagner, Univ. of Colorado. 
%%
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname .\hspace{0.5em}}
%\renewcommand{\thesection}      {\@Roman.\c@section}
\def\thesection             {\Roman{section}}
\def\p@section              {}
%\renewcommand{\thesubsection}   {\thesection.\@Alph\c@subsection}
\def\thesubsection          {\Alph{subsection}}
\def\p@subsection           {\thesection.}
%\renewcommand{\thesubsubsection} {\thesubsection .\@arabic\c@subsubsection}
\def\thesubsubsection       {\arabic{subsubsection}}
\def\p@subsubsection        {\thesection.\thesubsection.}
%%
%%
%% 7/26/96 jrw -- Make a period after the counter, 
%%    without it appearing in the reference
%% Many thanks to Uri Sarid, Univ. of Notre Dame
\renewcommand{\@seccntformat}[1]{
{\csname the#1\endcsname}.\quad}
%%
%%
%% Changed `Abstract' to `ABSTRACT' -- jrw 7/15/96
\def\abstract{\subsection*{ABSTRACT}}
\def\endabstract{\par}
%%
%%
%% Define Section Headers:
%------------------------------------- 
% We acknowledge the borrowing of the clever part of
% Steven Gildea's definition of \section
% from geophysi.sty.
%
% \section is tricky because we want to both support \section* and have
% the section title uppercased.
 
%% removed \bf , added \centering -- jrw 7/16/96 
\def\section{\secdef\@sectionb\@sections}
\def\@sectionb[#1]#2{\@sections{#2}}
\def\@sections#1{\@startsection {section}{1}{\z@}
                {-2.8ex plus -0.8ex minus  -.1ex}{1.5ex plus .2ex}
                {\large\centering}{\uppercase{#1}}}
% Should there be any problem with this, we can revert to the following
% but then the onus is on the user to type the argument of \section in
% uppercase in the input file.
%\def\section{\@startsection {section}{1}{\z@}{-2.8ex plus -0.8ex minus
%    -.1ex}{1.5ex plus .2ex}{\large\centering}}
%
\def\subsection{\@startsection{subsection}{2}{\z@}{-2.6ex plus -.8ex minus
   -.17ex}{1.2ex plus .17ex}{\large\centering}}
%
%% removed \bf , run-on text, added \centering, text separation -- jrw
%%7/16/96
%\def\subsubsection{\@startsection{subsubsection}{3}{\parindent}
% {-2.5ex plus -.7ex minus -.17ex}{-1em}{\normalsize\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.6ex plus -.8ex
minus
   -.17ex}{1.0ex plus .12ex}{\it\centering}}
%
\def\paragraph{\@startsection
     {paragraph}{4}{\z@}{2.5ex plus .7ex minus .17ex}{-1em}{\normalsize\sl}}
\def\subparagraph{\@startsection
     {subparagraph}{4}{\parindent}{2.25ex plus .7ex minus
     .17ex}{-1em}{\normalsize\bf}}
%%
%%
%% Changed section depth from 2 to 3 -- jrw 7/16/96 
\setcounter{secnumdepth}{3}
%%
%%%%% END SECTION FORMAT
 
%% DEFINE PARAGRAPH FORMAT:
%%
%% Lifted this from latex.ltx, and changed false to true
%% to make all paragraphs have indented first line.  -- jrw 7/12/96
%%
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@
     \@tempskipa -\@tempskipa \@afterindenttrue   %% new
%    \@tempskipa -\@tempskipa \@afterindentfalse %% old
   \fi
   \if@nobreak \everypar{}\else
     \addpenalty\@secpenalty\addvspace\@tempskipa
   \fi
   \@ifstar
     {\@ssect{#3}{#4}{#5}{#6}}%
     {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
%%
%% END PARAGRAPH FORMAT

%%%%% TABLE FORMAT
%%
%% Changed Table counter to Roman numeral -- jrw 7/16/96
%
\def\thetable{\@Roman\c@table}
%%
%% Made some space between the Table caption and the table body -- jrw
%%7/16/96
%
\setlength\belowcaptionskip{6\p@}
%%
%%%%% END TABLE FORMAT

%%%%% MAKING THE TITLE
%%
% This definition of \maketitle taken from article.sty, and has been
% somewhat modified.
 
\def\maketitle{\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox
       to 5pt{$^{\@thefnmark}$\hss}}
   \twocolumn[\@maketitle]
   \@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
 
%% Changed titleblockheight to 3cm, for one-line \title, 2-line \author
%% - jrw 7/16/96
\newlength{\titleblockheight}       % so user can change it if need be
\setlength{\titleblockheight}{3cm}
%
%% Changed vskip from 2em to 12pt - jrw 7/16/96
\def\@maketitle{\vbox to \titleblockheight {\hsize\textwidth
  \linewidth\hsize \vfil \centering
  {\Large\bf \@title \par}
  \vskip 12pt                % Vertical space after title.
  {\large\begin{tabular}[t]{c}\@author \end{tabular}\par}
  \vfil}}
%%
%%%%% END MAKING THE TITLE
 
 
%%%%% OTHER STUFF 
%%
% The \copyrightspace command is used to produce a blank space in the first
% column where a copyright notice may go.  It works by producing a
% blank footnote of the appropriate size.  Note that it should appear
% after any \footnote commands that produce footnotes for the first
% column.   Adjusted to leave just 1cm.
% 
\def\copyrightspace{\footnotetext[0]{\mbox{}\vrule height 1cm width 0pt}}
 
%% Redefine thebibliographyto use smaller fonts
\def\thebibliography#1{\setlength{\itemsep}{0pt}\setlength{\parsep}{0pt}
  \section*{REFERENCES\@mkboth
  {REFERENCES}{REFERENCES}}\small\list
  {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumi}}
    \def\newblock{\hskip .11em plus .33em minus .07em}
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
 
\twocolumn
\sloppy
%% Set paragraph indent -- jrw 7/16/96
\setlength{\parindent}{.3cm}
%
%% List margin settings:
\leftmargini 2em
\leftmargin\leftmargini
\leftmarginv .5em
\leftmarginvi .5em
\flushbottom
%%
%%%%% END OTHER STUFF

%%%%% USEFUL MACROS:
%%
%%%% Use Michel Goossens' dense lists
%\ProvidesPackage{denslist}ð1995/01/06 v1.1 Define dense lists (MG)®
% Prevent infinite loops

\let\Otemize =\itemize
\let\Onumerate =\enumerate
\let\Oescription =\description
% Zero the vertical spacing parameters
\def\Nospacing{\itemsep=0pt\topsep=0pt\partopsep=0pt\parskip=0pt\parsep=0pt}
% Redefine the environments in terms of the original values
\newenvironment{Itemize}{\Otemize\Nospacing}{\endlist}
\newenvironment{Enumerate}{\Onumerate\Nospacing}{\endlist}
\newenvironment{Description}{\Oescription\Nospacing}{\endlist}
%%
%%%%% END DENSE LIST

%-----------------------------------------------------------------------
%-----------------------------------------------------------------------
% Here are some useful commands which facilitate correct formatting:
%
% To give a numerical value with units, e.g. \QTY{ 4.2 }{ MV\,n^{-1} }
% (this takes care that the units in an equation are in a roman font
%  and not in math-italic which is used for symbols, IMPORTANT!!)
%
\newcommand{\QTY}[2]{\mbox{\(#1\rm\,#2\)}}
%-----------------------------------------------------------------------
%
% To express a number in scientific notation, e.g. \Enum{1.7}{32}
\newcommand{\Enum}[2]{\mbox{\(#1\times10^{#2}\)}}
%
%-----------------------------------------------------------------------
% numerical formula e.g. \NQTY{E}{GeV} gives [E/GeV]
\newcommand{\NQTY}[2]{\mbox{$[#1/{\rm #2}]$}} % symbol with units in
%
%-----------------------------------------------------------------------
%  Expectation value or average, e.g. \EV{ x^2 } gives  <x^2>
\newcommand{\EV}[1]{\left\langle #1 \right\rangle}% expectation value
%
%-----------------------------------------------------------------------
% These are convenient for quoting luminosity:
\newcommand{\LUMI}[1]{\QTY{#1}{cm^{-2}s^{-1}}}
\newcommand{\LUM}[2]{\LUMI{#1\times10^{#2}}}
%
% thus a B-factory design might quote         \LUM{3.0}{33}
%-----------------------------------------------------------------------
\def\gappeq{\mathrel{ \rlap{\raise.5ex\hbox{$>$}}
                      {\lower.5ex\hbox{$\sim$}}  } }
%
%  \gappeq is a compound symbol made out of a > sign on top of a tilde
%  usually used to mean "greater than or approximately equal to"
%  or "vaguely greater than"  by physicists.
%  It behaves as a mathematical relation in TeX's math modes, e.g.
%  $ a \gappeq b $    in the text and
%  $$ a \gappeq b $$  as a display.
%
\def\lappeq{\mathrel{ \rlap{\raise.5ex\hbox{$<$}}
                      {\lower.5ex\hbox{$\sim$}}  } }
%%
%%%%% END USEFUL MACROS

%%%%% End of snow2e.cls
%%%%% EOF
