From 530c5830050790aac3f205e3d86e7ced8f89e8b0 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Mon, 17 Jun 2024 19:24:36 +0200
Subject: fix(satzung.tex): Use modern latex language constructs

These include setting a `\documentclass` and using LaTeX3 language
features (for Latex2e) like `\NewDocumentCommand`.
---
 headers/preamble_local.tex | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

(limited to 'headers/preamble_local.tex')

diff --git a/headers/preamble_local.tex b/headers/preamble_local.tex
index aed79f3..1a16b1a 100644
--- a/headers/preamble_local.tex
+++ b/headers/preamble_local.tex
@@ -1,11 +1,24 @@
 \usepackage{nag}
 
-\newcommand{\Verein}{Vereinsname}
-\newcommand\sils[1]{\todo[fancyline,color=green!15]{#1}}
-\newcommand\bpeetz[1]{\todo[fancyline,color=blue!15]{#1}}
+\NewDocumentCommand{\Verein}{}{Vereinsname}
+
+\NewDocumentCommand{\sils}{m}{
+	\todo[fancyline,color=green!15]{#1}
+}
+\NewDocumentCommand{\bpeetz}{m}{
+	\todo[fancyline,color=blue!15]{#1}
+}
 
 \newcounter{para}
-\newcommand{\paracount}{\stepcounter{para}\paragraph{(\arabic{para})}}
-\newcommand{\sectionc}[1]{\section{#1}\setcounter{para}{0}}
+
+\NewDocumentCommand{\paracount}{}{
+	\stepcounter{para}
+	\paragraph{(\arabic{para})}
+}
+
+\NewDocumentCommand{\sectionc}{O{}}{
+	\section{#1}
+	\setcounter{para}{0}
+}
 
 \usepackage{enumitem} % For the enumerations with letters
-- 
cgit 1.4.1

