From 78555099a5cb51ead714f5e8cdfb6ca329353593 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Mon, 18 Jul 2022 09:50:36 +0200
Subject: undefine lemma's wit, source, resp, alt, pre(wit), post(wit) in
 nested \app

---
 ekdosis.dtx | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 7a16446..18bc279 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -9587,6 +9587,16 @@ Sample text with a \textcolor{red}{word} in red.
 % the optional key-value arguments just defined above.
 %    \begin{macrocode}
 \NewDocumentCommand{\lem}{O{} m}{%
+  \ifekd@appinapp
+    \let\ekdlr@wit\@undefined
+    \let\ekdlr@source\@undefined
+    \let\ekdlr@resp\@undefined
+    \let\ekdlr@alt\@undefined
+    \let\ekdlr@pre\@undefined
+    \let\ekdlr@post\@undefined
+    \let\ekdlr@prewit\@undefined
+    \let\ekdlr@postwit\@undefined
+  \fi
   \ekd@isinlemtrue
   \bgroup
   \ekdl@forcenumfalse
-- 
cgit v1.2.3

