From b2a75c7929563103727edc145bb24a2e00eb3fb6 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 2 Feb 2026 18:15:50 +0100 Subject: add new aufg version shortcut and always start with version 1 --- latex/common.tex | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'latex') diff --git a/latex/common.tex b/latex/common.tex index 105902e5..95917792 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -62,8 +62,14 @@ \input{#2}% } +% Shortcut for \ifnumequal{\theAufgVersion} +\newcommand{\ifAufgVersion}[3]{% + \ifnumequal{\theAufgVersion}{#1}{#2}{#3}% +} + \newcounter{Aufg} \newcounter{AufgVersion} +\setcounter{AufgVersion}{1}% Set the default value \newenvironment{Aufg}[1][] { \refstepcounter{Aufg}% -- cgit v1.2.3