From 1fc3c0dc8a312b55ef77372d47542af30f3f4ae8 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 13 Nov 2018 10:44:05 +0100
Subject: enabled 'parnote' feature inside \lem and \rdg.

---
 ekdosis.dtx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index bed668b..8dca80f 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -329,6 +329,7 @@ Running "make install" installs the files in the local TeX tree.
 \RequirePackage{vplref}
 \RequirePackage{keyfloat}
 \RequirePackage{refcount}
+\RequirePackage{xspace}
 \RequirePackage[user,abspage]{zref}  
 \if@pkg@parnotes
   \RequirePackage{parnotes}
@@ -409,7 +410,11 @@ Running "make install" installs the files in the local TeX tree.
   \IfBooleanTF{#1}{%
     \if@pkg@parnotes\append{\parnote{#2}}%
     \else\append{\footnote{#2}}\fi}{\append{#2}}%
-  \else\ #2 \fi\fi%
+  \else%
+  \IfBooleanTF{#1}{%
+    \if@pkg@parnotes\parnote{#2}%
+    \else\footnote{#2}\fi}{ #2\xspace}%
+  \fi\fi%
 }
 \NewDocumentCommand{\apparatus}{}{\luadirect{tex.sprint(appout())}}
 \NewDocumentCommand{\testapparatus}{}{%
-- 
cgit v1.2.3

