summaryrefslogtreecommitdiff
path: root/info/examples/ltt/tocelg.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/ltt/tocelg.sty
Initial commit
Diffstat (limited to 'info/examples/ltt/tocelg.sty')
-rw-r--r--info/examples/ltt/tocelg.sty30
1 files changed, 30 insertions, 0 deletions
diff --git a/info/examples/ltt/tocelg.sty b/info/examples/ltt/tocelg.sty
new file mode 100644
index 0000000000..0ec660343b
--- /dev/null
+++ b/info/examples/ltt/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}}