aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-17 19:24:36 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-17 19:26:00 +0200
commit530c5830050790aac3f205e3d86e7ced8f89e8b0 (patch)
tree4379b89040ace121c058b7326fa461ec31669a55
parentfix(satzung.tex): Remove the German "Umlaute" from the file names (diff)
downloadsatzung-530c5830050790aac3f205e3d86e7ced8f89e8b0.zip
fix(satzung.tex): Use modern latex language constructs
These include setting a `\documentclass` and using LaTeX3 language features (for Latex2e) like `\NewDocumentCommand`.
-rw-r--r--headers/preamble_local.tex23
-rw-r--r--satzung.tex10
2 files changed, 23 insertions, 10 deletions
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
diff --git a/satzung.tex b/satzung.tex
index b177042..8f343f5 100644
--- a/satzung.tex
+++ b/satzung.tex
@@ -1,16 +1,17 @@
% LTeX: language=de-DE
+\documentclass{scrartcl}
\input{headers/preamble.tex}
\input{headers/preamble_local.tex}
\title{Satzung}
-\author{%VEREINSNAHME% \\
-\href{mailto:%VEREINSEMAIL%}{%VEREINSEMAIL%}\\[1cm]}
+\author{\Verein}
+
\date{\DTMToday}
% For the copyright section
\years{2024}
-\authors{%VEREINSNAHME%}
+\authors{\Verein}
\makeatletter
\hypersetup{
@@ -26,8 +27,6 @@
\makeatother
-% \includeonly{content/04_name_und_sitz_des_vereins_geschäftsjahr/chapter.tex}
-
\begin{document}
\input{content/static/title}
@@ -35,6 +34,7 @@
\setcounter{section}{0}
\renewcommand{\thesection}{§ \arabic{section}}
+
\include{content/02_name_und_sitz_des_vereins_geschaeftsjahr/chapter.tex}
\include{content/03_ziele_und_taetigkeiten_des_vereins/chapter.tex}
\include{content/04_erwerb_der_mitgliedschaft/chapter.tex}