% see mychapter.sty       subchapter used for solutions to exercises and all that
% (see also exercise.sty)
\def\subchapter#1{\chapter*{#1\@mkboth
  {#1}{#1}}%\addcontentsline{toc}{chapter}{\protect \numberline{}#1}
}
% Used when we want the subchapter in the table of contents
\def\subchaptercontents#1{\chapter*{#1\@mkboth
  {#1}{#1}}\addcontentsline{toc}{chapter}{\protect \numberline{}#1}
}
%
% WAS
%
%\def\prechapter#1{\addtocounter{chapter}{1}\chapter*{#1 \thechapter\@mkboth
%  {#1  \thechapter}{#1 \thechapter}}%
%\addtocounter{chapter}{-1}}
%
% IS NOW
%
\newcounter{equationcopy}% will be used to retain the value of the equation counter
\newcounter{floatseqcopy}% requires myalgorithm
\newcounter{exercisecopy}% requires exercise.sty
\newcounter{figurecopy}
\newcounter{algorithmcopy}
\newcounter{tablecopy}
\newcounter{wasaprechapter}
\setcounter{wasaprechapter}{0}
\def\prechapter#1{\stepcounter{chapter}\chapter*{#1 \thechapter\@mkboth
  {#1  \thechapter}{#1 \thechapter}}%
\setcounter{wasaprechapter}{1}
}
%
%  I think that the following is not used anywhere.
%\addcontentsline{toc}{chapter}{\protect \numberline{}#1 \thechapter}}
%
% the sectioning commands should not be used in a prechapter.
\def\ENDprechapter{\addtocounter{chapter}{-1}
% and keep track of all the other counters
\setcounter{floatseqcopy}{\value{floatseq}}
\setcounter{equationcopy}{\value{equation}}
\setcounter{exercisecopy}{\value{exercisenumber}}
\setcounter{figurecopy}{\value{figure}}
\setcounter{algorithmcopy}{\value{algorithm}}
\setcounter{tablecopy}{\value{table}}
}
%
% fakesection included to help out reftex mode
\def\fakesection#1{}%
% this is not integrated:
\def\fakesubsection#1{}%
%
