aboutsummaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
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}%