% Bylaws definitions -- bylaws.sty, John Kohl, 2 Mar 1988

% First, some counters for articles and sections.
\newcounter{articleno}
\newcounter{sectionno}

% Redefine how sections are numbered. (use a section symbol)
\renewcommand{\thesectionno}{\S\ \arabic{sectionno}}
% Redefine how articles are numbered.  Use Roman numerals
\renewcommand{\thearticleno}{\Roman{articleno}}

%An environment for an Article or other major section.
% \begin{Article}{TITLE}
% ...
% \end{Article}
%
% \begin{UnNumberedArticle}{TITLE}
% ...
% \end{Article}
% TITLE is the title of the article.  {Article <n>. TITLE} is set in bold and
% centered above the following text.
%
\newenvironment{UnNumberedArticle}[1]{%
%
% reset the section to zero
%
\setcounter{sectionno}{0}
%
% set {Article <n>. TITLE} centered, bold, large (essentially the same as
% \begin{center} ... \end{center})
%
\begin{trivlist} \Large \bf \centering \item[] #1
\end{trivlist}
%
% and begin a list for the sections to go in.
%
\begin{list}{}{\setlength{\leftmargin}{0pt}\setlength{\rightmargin}{0pt}
\setlength{\labelwidth}{0pt}\setlength{\itemindent}{0pt}%
\setlength{\labelsep}{0pt}}}%
%
%
% when done with the article, pop the trivlist
%
{\end{list}}

\newenvironment{Article}[1]{%
%
% increment the article
%
\addtocounter{articleno}{1}%
\begin{UnNumberedArticle}{Article \thearticleno. #1}}%
{\end{UnNumberedArticle}}

\newcommand{\startamendments}{\setcounter{articleno}{0}}

\newenvironment{Amendment}{%
%
% increment the article
%
\addtocounter{articleno}{1}%
\begin{UnNumberedArticle}{Amendment \thearticleno.}}%
{\end{UnNumberedArticle}}

% within an article, set up a section as an item of the trivlist.
% within an article, set up a section as an item of the trivlist.

\newcommand{\newsection}[1]{\addtocounter{sectionno}{1}%
\item[{\bf \thesectionno. #1.}~]}
\newcommand{\unnamedsection}{\addtocounter{sectionno}{1}%
\item[{\bf \thesectionno.}~]}
