<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%  tocelg.sty
%  Abtrennung der Kapitel durch Linie, Abschnitte 
%  fett, \subsection normal. Seitenzahlen folgen 
%  mit konstanten Abstand hinter Ueberschrift.
\newlength{\emlength}
\setlength{\emlength}{1em}
\newlength{\numwidth}
\setlength{\numwidth}{2\emlength}

\renewcommand{\numberline}[1]
  {\makebox[\numwidth][l]{#1}\hspace{0.5\emlength}}

\renewcommand{\l@part}[2]{\pagebreak[3]%
  \addvspace{3ex}\noindent{\Large\bfseries\sffamily 
  #1}\par\nopagebreak\addvspace{1ex}}

\renewcommand{\l@chapter}[2]{
  \addvspace{2ex}\pagebreak[3]\noindent%
   \makebox[0pt][l]{\rule[-2pt]{\textwidth}{0.5pt}}%
   {\large\bfseries#1\quad#2}
  \par\nopagebreak\addvspace{1ex}}

\renewcommand{\l@section}[2]
 {\addvspace{0.5ex}
  \noindent\hspace{2.5\emlength}%
  {\bfseries #1\quad#2}\par\nopagebreak[2]}

\renewcommand{\l@subsection}[2]
 {{\setlength{\numwidth}{2.5\emlength}
  \noindent\hspace{5\emlength}#1\quad#2\par}}
</pre></body></html>