summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex')
-rw-r--r--macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex
index e967f7f826..bf205bb7fb 100644
--- a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex
+++ b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex
@@ -7,7 +7,11 @@
% new environment:
\NewDocumentEnvironment{shortsolution}{+b}
- {\SetExerciseProperty{shortsolution}{#1}}
+ {%
+ \edef\ExerciseType{\csname g_xsim_exercise_type_tl\endcsname}%
+ \edef\ExerciseID{\csname g_xsim_exercise_id_tl\endcsname}%
+ \SetExerciseProperty{shortsolution}{#1}%
+ }
{}
% we'll use a description list for the list of short solutions: