From b5a2e1693a20452ed082823402d3c619eebc6599 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 5 Apr 2020 03:02:36 +0000
Subject: CTAN sync 202004050302

---
 macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex')

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:
-- 
cgit v1.2.3

