% sect.sty (Fragment)
\def\section{\secdef\@section\@ssection}
\def\@section[#1]#2{
     \ifnum \c@secnumdepth >\m@ne
       \refstepcounter{section}%
       \addcontentsline{toc}{section}{%
         \protect\numberline{\thesection}#1}
     \else
       \addcontentsline{toc}{section}{#1}
     \fi
     \sectionmark{#1}%
     \@makesectionhead{#2}\@afterheading
     }
\def\@ssection#1{\@makessectionhead{#1} \@afterheading}