summaryrefslogtreecommitdiff
path: root/info/examples/ltt/sect.sty
blob: 77d8a622c9e457af8b8583873d859557c23afc42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% 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}