%sw20jpss {Article: Progress in Surface Science Journal}{12pt}{article}
%Copyright (C) 1994-95 TCI Software Research
\typeout{TCI Document Style `sw20jpss' <1 July 1994>.}
\typeout{NOTICE:  This macro file is NOT proprietary and may be 
freely copied and distributed.}
%
\input thmsupp.tex %TCI theorem option support
%
\setcounter{secnumdepth}{5}
\def\baselinestretch{1.5}
% Make the page area as large as possible
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}

%\setlength{\topmargin}{-.45in}
%\setlength{\evensidemargin}{-.23in}
%\setlength{\oddsidemargin}{-.23in}
%\setlength{\textheight}{9.8in}
%\setlength{\textwidth}{6.85in}

\addtolength{\oddsidemargin}{-55pt}
\evensidemargin=\oddsidemargin
\addtolength{\topmargin}{-49pt}
\addtolength{\textheight}{159.5pt}
\addtolength{\textwidth}{105pt}
\newdimen\dummy
\dummy=\oddsidemargin
\addtolength{\dummy}{72pt}
\marginparwidth=.675\dummy
\marginparsep=.1\dummy


%
\def\thesubsection    {\Alph{subsection}}
\def\thesubsubsection {(\roman{subsubsection})}
\def\abstract{\def\baselinestretch{1}\if@twocolumn
\section*{\abstractname}%
\else \small
\begin{center}%
{\ULine{\abstractname}\vspace{-.5em}\vspace{\z@}}%
\end{center}%
\quotation
\fi}
%
\def\endabstract{\if@twocolumn\else\endquotation\fi}
%
%
% Define \tighttoc to alter table of contents entry so that
% sections are treated like subsections, subsubsections, etc.
%
\def\tighttoc{\def\l@section{\@dottedtocline{1}{0em}{1.4em}}}
\tighttoc
%
\input ulem.sty	   
%
% Here we define a new version of \@startsection which is just like the 
% original but uses a new version of \@sect (defined next).  A section 
% defined with this macro will have its heading underlined.
%     
\def\@ULstartsection#1#2#3#4#5#6{%
   \if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
     {\@ULssect{#3}{#4}{#5}{#6}}{\@dblarg{\@ULsect{#1}{#2}{#3}{#4}{#5}{#6}}}}
%
\def\@ULsect#1#2#3#4#5#6[#7]#8{%
       \ifnum #2>\c@secnumdepth
           \let\@svsec\@empty
       \else
           \refstepcounter{#1}
           \edef\@svsec{\csname the#1\endcsname\hskip 1em}
       \fi
       \@tempskipa #5\relax
       \ifdim \@tempskipa>\z@
         \begingroup
             #6\relax 
             \@hangfrom{\hskip #3\relax\ULine{\@svsec}}%
             {\interlinepenalty \@M\ULine{#8}\par}%
         \endgroup
         \csname #1mark\endcsname{#7}
         \addcontentsline
             {toc}{#1}
             {\ifnum #2>\c@secnumdepth 
              \else
                \protect\numberline{\csname the#1\endcsname}%
              \fi #7}
      \else
         \def\@svsechd{\hskip #3\relax  %% \relax added 2 May 90
                  \ULine{\@svsec}\ULine{#8}\csname #1mark\endcsname
                      {#7}\addcontentsline
                             {toc}{#1}
                             {\ifnum #2>\c@secnumdepth \else
                                  \protect\numberline{\csname the#1\endcsname}%
                              \fi#7}}
      \fi
      \@xsect{#5}}
%   
\def\@ULssect#1#2#3#4#5{\@tempskipa #3\relax
   \ifdim \@tempskipa>\z@
     \begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M \ULine{#5}\par}\endgroup
   \else \def\@svsechd{#4\hskip #1\relax \ULine{#5}}\fi
    \@xsect{#3}}
%
\def\section{\@ULstartsection {section}{1}{\z@}{5.0ex plus 1ex minus
    .2ex}{2.3ex plus.2ex}{\centering\reset@font\normalsize}}
\def\subsection{\@ULstartsection{subsection}{2}{\z@}{3.25ex plus 1ex
    minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize}}
\def\subsubsection{\@ULstartsection{subsubsection}{3}{\z@}{-3.25ex plus
 -1ex minus-.2ex}{-1.5ex plus-.2ex}{\reset@font\normalsize}}
\def\paragraph{\@startsection
     {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
     \normalsize}}
\def\subparagraph{\@startsection
     {subparagraph}{5}{\parindent}{3.25ex plus1ex minus
     .2ex}{-1em}{\reset@font\normalsize}} 
%
\def\abbrev{\@ULstartsection{abbrev}{1}{\z@}{-5.0ex plus-1ex minus
    -.2ex}{2.3ex plus.2ex}{\centering\reset@font\normalsize}}
%
\def\thesection{\arabic{section}}
\def\thesubsection{\Alph{subsection}.}
\def\thesubsubsection{(\roman{subsubsection})}
\def\theabbrev{}
\newcounter{abbrev}
%
\def\@cite#1#2{[{#1\if@tempswa , #2\fi}]}
\def\@biblabel#1{#1.\hfill}
%
\setcounter{tocdepth}{2}
\def\theequation{\thesection .\arabic{equation}}
\@addtoreset{equation}{section}

% 
% Wants bibliography single spaced

\def\singlespace{\def\baselinestretch{1}\large\normalsize}

\def\thebibliography#1{%
       \singlespace
       \section*{%
           \refname
           \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
       \list{\@biblabel{\arabic{enumiv}}}
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
			 \itemsep 4pt
             \advance\leftmargin\labelsep
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
             \def\theenumiv{\arabic{enumiv}}}%
       \def\newblock{\hskip .11em plus.33em minus.07em}%
       \sloppy\clubpenalty4000\widowpenalty4000
       \sfcode`\.=1000\relax}
