diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-17 19:24:36 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-17 19:26:00 +0200 |
commit | 530c5830050790aac3f205e3d86e7ced8f89e8b0 (patch) | |
tree | 4379b89040ace121c058b7326fa461ec31669a55 /headers/preamble_local.tex | |
parent | fix(satzung.tex): Remove the German "Umlaute" from the file names (diff) | |
download | satzung-530c5830050790aac3f205e3d86e7ced8f89e8b0.tar.gz satzung-530c5830050790aac3f205e3d86e7ced8f89e8b0.zip |
fix(satzung.tex): Use modern latex language constructs
These include setting a `\documentclass` and using LaTeX3 language features (for Latex2e) like `\NewDocumentCommand`.
Diffstat (limited to 'headers/preamble_local.tex')
-rw-r--r-- | headers/preamble_local.tex | 23 |
1 files changed, 18 insertions, 5 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 |