diff options
Diffstat (limited to 'Master/texmf-doc/doc/german/latex-tipps-und-tricks/sect.sty')
-rw-r--r-- | Master/texmf-doc/doc/german/latex-tipps-und-tricks/sect.sty | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/german/latex-tipps-und-tricks/sect.sty b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/sect.sty new file mode 100644 index 00000000000..ad56a5cbd71 --- /dev/null +++ b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/sect.sty @@ -0,0 +1,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} |