
% -- SRS section numbering / enumerate types --
\let\@section=\section \let\@subsection=\subsection
\let\@subsubsection=\subsubsection

\def\section{
  \setlength{\leftmargini}{2.5em} 
  \renewcommand{\theenumi}{\thesection.\arabic{enumi}}
  \renewcommand{\labelenumi}{\theenumi}

  \setlength{\leftmarginii}{1.7em} 
  \renewcommand{\theenumii}{.\arabic{enumii}}
  \renewcommand{\labelenumii}{\thesection.\arabic{enumi}\theenumii}
  \renewcommand{\thetbdsec}{\thesection}

%  uncomment these to label figures by section number
%  \renewcommand{\thefigure}{\thesection -\arabic{figure}} 
%  \setcounter{figure}{0} 
  \@section
}

\def\subsection{
  \setlength{\leftmargini}{3.5em} 
  \renewcommand{\theenumi}{\thesubsection.\arabic{enumi}}
  \renewcommand{\labelenumi}{\theenumi}

  \setlength{\leftmarginii}{1.7em} 
  \renewcommand{\theenumii}{.\arabic{enumii}}
  \renewcommand{\labelenumii}{\thesubsection.\arabic{enumi}\theenumii}
  \renewcommand{\thetbdsec}{\thesubsection}

%  uncomment these to label figures by section number
%  \renewcommand{\thefigure}{\thesubsection -\arabic{figure}} 
%  \setcounter{figure}{0} 
  \@subsection
}

\def\subsubsection{
  \setlength{\leftmargini}{4.5em} 
  \renewcommand{\theenumi}{\thesubsubsection.\arabic{enumi}}
  \renewcommand{\labelenumi}{\theenumi}

  \setlength{\leftmarginii}{1.7em} 
  \renewcommand{\theenumii}{.\arabic{enumii}}
  \renewcommand{\labelenumii}{\thesubsubsection.\arabic{enumi}\theenumii}
  \renewcommand{\thetbdsec}{\thesubsubsection}

%  uncomment these to label figures by section number
%  \renewcommand{\thefigure}{\thesubsubsection -\arabic{figure}} 
%  \setcounter{figure}{0} 
  \@subsubsection
}

\def\paragraph{
  \setlength{\leftmargini}{5.5em} 
  \renewcommand{\theenumi}{\theparagraph.\arabic{enumi}}
  \renewcommand{\labelenumi}{\theenumi}

  \setlength{\leftmarginii}{1.7em} 
  \renewcommand{\theenumii}{.\arabic{enumii}}
  \renewcommand{\labelenumii}{\theparagraph.\arabic{enumi}\theenumii}
  \renewcommand{\thetbdsec}{\theparagraph}

  \@startsection{paragraph}{4}{\z@}%
    {-3.5ex\@plus -1ex \@minus -.2ex}%
    {1.5ex \@plus .2ex}%
    {\normalsize\bf}
}

\def\subparagraph{
  \setlength{\leftmargini}{6.5em} 
  \renewcommand{\theenumi}{\thesubparagraph.\arabic{enumi}}
  \renewcommand{\labelenumi}{\theenumi}

  \setlength{\leftmarginii}{1.7em} 
  \renewcommand{\theenumii}{\thesubparagraph.\arabic{enumii}}
  \renewcommand{\labelenumii}{\theenumii}
  \renewcommand{\thetbdsec}{\thesubparagraph}

  \@startsection{subparagraph}{5}{\z@}%
    {-3.5ex\@plus -1ex \@minus -.2ex}%
    {1.5ex \@plus .2ex}%
    {\normalsize\bf}
}

\def\subsubparagraph{
%  \setlength{\leftmargini}{2.5em} 
%  \renewcommand{\theenumi}{\thesubsubparagraph.\arabic{enumi}}
%  \renewcommand{\labelenumi}{\theenumi}

%  \setlength{\leftmarginii}{2.5em} 
%  \renewcommand{\theenumii}{\thesubsubparagraph.\arabic{enumi}.\arabic{enumii}}
%  \renewcommand{\labelenumii}{\theenumii}

  \@startsection{subsubparagraph}{6}{\z@}%
    {-3.5ex\@plus -1ex \@minus -.2ex}%
    {1.5ex \@plus .2ex}%
    {\normalsize\it}
} 

\let\subsubsubsection=\paragraph
\let\subsubsubsubsection=\subparagraph

