summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty30
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty
new file mode 100644
index 00000000000..9c5fc4ffccc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocelg.sty
@@ -0,0 +1,30 @@
+% 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}}