% Document structure macros.
% Copyright (C) 1993, 1994 Gary Houston
% This program may be copied and modified under the terms of the 
% GNU General Public License version 2.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gfstructure}[1994/08/13 gf structure defaults]

% 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{section}{
  \newcounter {section}
  \newcounter {subsection}[section]
  \newcounter {subsubsection}[subsection]
  \renewcommand{\thesection}{\arabic{section}}
  \renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
  \renewcommand{\thesubsubsection}{\thesubsection .\arabic{subsubsection}}
  \newcommand{\section}
	{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
	 -.2ex}{2.3ex plus .2ex}{\reset@font\Large\bf}}
  \newcommand{\subsection}
	{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
	 -.2ex}{1.5ex plus .2ex}{\reset@font\large\bf}}
  \newcommand{\subsubsection}
	{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
	 -1ex minus -.2ex}{1.5ex plus .2ex}{\reset@font\normalsize\bf}}
  }{}
\newcommand{\subsubsubsection}
	{\@startsection{subsubsubsection}{4}{
	 \z@}{-1.25ex plus -1ex minus -.2ex}{0.5ex plus
	 .2ex}{\reset@font\normalsize\bf}}
\newcommand{\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]

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

\newcommand{\subsubsubsectionmark}[1]{}
\newcommand{\subsubsubsubsectionmark}[1]{}
