% Document structure macros.
% Gary Houston.

% Add missing sectioning macros.
% The letter style does not declare any section macros. None of the
% LaTeX styles declare subsubsubsection or subsubsubsubsection (using
% instead the illogical paragraph and subparagraph).

\@ifundefined{reset@font}{% Used by more recent versions of latex.
  \def\reset@font{}
}

\@ifundefined{section}{
  \newcounter {section}
  \newcounter {subsection}[section]
  \newcounter {subsubsection}[subsection]
  \def\thesection       {\arabic{section}}
  \def\thesubsection    {\thesection.\arabic{subsection}}
  \def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
  \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
      -.2ex}{2.3ex plus .2ex}{\reset@font\Large\bf}}
  \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
     -.2ex}{1.5ex plus .2ex}{\reset@font\large\bf}}
  \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
  -1ex minus -.2ex}{1.5ex plus .2ex}{\reset@font\normalsize\bf}}
}{}
\def\subsubsubsection{\@startsection{subsubsubsection}{4}{
  \z@}{-1.25ex plus -1ex minus -.2ex}{0.5ex plus
   .2ex}{\reset@font\normalsize\bf}}
\def\subsubsubsubsection{\@startsection{subsubsubsubsection}{5}{
  \z@}{-1.25ex plus -1ex minus -.2ex}{0.5ex plus
   .2ex}{\reset@font\normalsize\bf}}

\newcounter{subsubsubsection}[subsubsection]
\newcounter{subsubsubsubsection}[subsubsubsection]

\def\thesubsubsubsection{\arabic{section}.\arabic{subsection}.%
  \arabic{subsubsection}.\arabic{subsubsubsection}}
\def\thesubsubsubsubsection{\arabic{section}.\arabic{subsection}.%
  \arabic{subsubsection}.\arabic{subsubsubsection}.\arabic{subsubsubsubsection}}

\def\subsubsubsectionmark#1{}
\def\subsubsubsubsectionmark#1{}
