summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-07-14 16:09:58 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-07-14 16:09:58 +0200
commit5c83eae33a8f497b0521e8b008542e6cd60451e0 (patch)
treec7278862b69d6173a207376a80889a7057db9e3e
parentfix(content): Ensure consistent display of the paragraph sign before section ... (diff)
downloadsatzung-5c83eae33a8f497b0521e8b008542e6cd60451e0.tar.gz
satzung-5c83eae33a8f497b0521e8b008542e6cd60451e0.zip
fix(content/vorwort): Remove from the TOC
-rw-r--r--content/01_vorwort/chapter.tex2
-rw-r--r--headers/preamble_local.tex14
2 files changed, 12 insertions, 4 deletions
diff --git a/content/01_vorwort/chapter.tex b/content/01_vorwort/chapter.tex
index 5eb00bf..827233b 100644
--- a/content/01_vorwort/chapter.tex
+++ b/content/01_vorwort/chapter.tex
@@ -1,6 +1,6 @@
 %! TEX root = ../../satzung.tex
 % LTeX: language=de-DE
 
-\sectionc{Präambel}
+\sectionc*{Präambel}
 Gründe, warum wir diesen Verein gründen.
 \sils{Ist das vollständig?}
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
+