From f06be6be87bec0c5356c5d7004b108aa224e9342 Mon Sep 17 00:00:00 2001 From: mirabilos <thorsten.glaser@teckids.org> Date: Sun, 12 Aug 2018 20:50:27 +0200 Subject: [PATCH] also add table of contents --- teckids2style.sty | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/teckids2style.sty b/teckids2style.sty index d2a0da6..bd39755 100644 --- a/teckids2style.sty +++ b/teckids2style.sty @@ -192,6 +192,23 @@ \newcommand{\angekreuzteskaestchen}{\CheckedBox\hspace{0.1cm}}% \newcommand{\ankreuzkaestchen}{\Square\hspace{0.1cm}}% +% Inhaltsverzeichnis +\addtocontents{toc}{\protect\thispagestyle{fancy}}% +\addtolength{\cftsubsecnumwidth}{0.5em}% +\addtolength{\cftsubsubsecindent}{0.5em}% +% default: 10pt plus 1pt +\setlength{\cftbeforesecskip}{10pt plus 4pt minus 2pt}% +\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}% +% when calling, ensure blank line before and after! +\newcommand{\inhaltsverzeichnis}{% + \hypersetup{linkcolor = black}% + % deliberately no % at end of line! + \tableofcontents + \hypersetup{linkcolor = teckidsbluestroke}% + % deliberately no % at end of line! + \newpage +}% + % Listings \makeatletter% -- GitLab