From 5c83eae33a8f497b0521e8b008542e6cd60451e0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 14 Jul 2024 16:09:58 +0200 Subject: fix(content/vorwort): Remove from the TOC --- headers/preamble_local.tex | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'headers/preamble_local.tex') diff --git a/headers/preamble_local.tex b/headers/preamble_local.tex index 220d15d..9091e3b 100644 --- a/headers/preamble_local.tex +++ b/headers/preamble_local.tex @@ -33,9 +33,17 @@ \paragraph{(\arabic{para})} } -\NewDocumentCommand{\sectionc}{m}{ - \section{#1} - \setcounter{para}{0} +\NewDocumentCommand{\sectionc}{sm}{ + \IfBooleanTF#1 + { + \section*{#2} + \setcounter{para}{0} + } + { + \section{#2} + \setcounter{para}{0} + } } \usepackage{enumitem} % For the enumerations with letters + -- cgit 1.4.1