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