From f277656a211a152f049746415261df011612c521 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Fri, 1 Nov 2019 17:17:10 +0100
Subject: same as [218be66] with conditions

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

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 5e9dedd..4aa9577 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -996,14 +996,16 @@ idno={}, msName={}, origDate={}][3]{%
   }%
 }
 \NewDocumentCommand{\note}{s O{} +m}{%
-  \ifekd@isinapp%
-  \ifekd@isinlem%
-  \note@noapp[#2]{#3}%
-  \else%
-  \IfBooleanTF{#1}{\note@app*[#2]{#3}}{\note@app[#2]{#3}}%
-  \fi%
-  \else%
-  \note@noapp[#2]{#3}%
+  \ifekd@state%
+    \ifekd@isinapp%
+      \ifekd@isinlem%
+        \note@noapp[#2]{#3}%
+      \else%
+        \IfBooleanTF{#1}{\note@app*[#2]{#3}}{\note@app[#2]{#3}}%
+      \fi%
+    \else%
+      \note@noapp[#2]{#3}%
+      \fi%
   \fi%
 }
 \NewDocumentCommand{\apparatus}{}{%
-- 
cgit v1.2.3

