aboutsummaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-02-02 18:15:50 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-02-02 18:17:53 +0100
commitb2a75c7929563103727edc145bb24a2e00eb3fb6 (patch)
treecaedd015755ec661d1ef785e11ab1e6c4a7e715b /latex
parentde9c2a8fb1d52111c0b30a9ed9c1f4866c58eaef (diff)
downloadunterricht-b2a75c7929563103727edc145bb24a2e00eb3fb6.tar.gz
unterricht-b2a75c7929563103727edc145bb24a2e00eb3fb6.zip
add new aufg version shortcut and always start with version 1
Diffstat (limited to 'latex')
-rw-r--r--latex/common.tex6
1 files changed, 6 insertions, 0 deletions
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}%