diff options
Diffstat (limited to 'info/examples/ltt/tocbel.sty')
-rw-r--r-- | info/examples/ltt/tocbel.sty | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/info/examples/ltt/tocbel.sty b/info/examples/ltt/tocbel.sty new file mode 100644 index 0000000000..5e15e4cf33 --- /dev/null +++ b/info/examples/ltt/tocbel.sty @@ -0,0 +1,25 @@ +% tocbel.sty
+% Die Abschnitte werden hintereinander aufgelistet,
+% wie in aelteren schoengeistigen Werken.
+\RequirePackage{ifthen}
+
+\newboolean{firstsec}
+
+\renewcommand{\numberline}[1]
+ {\makebox[1.5em][l]{#1}}
+
+\renewcommand{\l@part}[2]{\par\vspace{2ex}
+ \noindent\textbf{#1}
+ \setboolean{firstsec}{true}
+ \par\nopagebreak}
+\renewcommand{\l@chapter}[2]{\par\vspace*{1ex}%
+ \noindent\textbf{#1\dotfill#2}
+ \par\nopagebreak
+ \setboolean{firstsec}{true}
+ }
+\renewcommand{\l@section}[2]{%
+ \ifthenelse{\boolean{firstsec}}%
+ {\noindent\setboolean{firstsec}{false}}%
+ {-- }%
+ \textsc{\renewcommand{\numberline}[1]{}\small#1}}
+\renewcommand{\l@subsection}[2]{}
|