From b2471fdc0b242d98bcdecc25007dd04bcad1e87b Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Wed, 28 Nov 2018 12:17:39 +0100
Subject: added 'nolem' option to \lem to take out the lemma from the apparatus

---
 ekdosis.dtx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 284616e..5c1c875 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -387,8 +387,13 @@ Running "make install" installs the files in the local TeX tree.
     "pg_ii")}%
   \ifbool{ekd@state}{\add@apparatus}{}%
   #1}
-\newkeycommand+[\|]{\lem}[wit, alt, pre, post, prewit, postwit][1]{%
+\newkeycommand+[\|]{\lem}[wit, alt, pre, post, prewit, postwit,
+choice nolem={false,,true}][1]{%
   #1%
+  |\ifnum|%
+  \commandkey{nolem}>0%
+  |\append@ln@app{}|%
+  |\else|%
   |\ifbool{al@rlmode}|%
   {|\append@ln@app|{%
       \bgroup%
@@ -421,7 +426,7 @@ Running "make install" installs the files in the local TeX tree.
       \ifcommandkey{wit}{ \commandkey{wit}}{}%
       \ifcommandkey{postwit}{ \commandkey{postwit}}{}:%
     }}%
-}
+|\fi|}
 \newkeycommand+[\|]{\rdg}[wit, alt, pre, post, prewit, postwit][1]{%
   |\ifbool{al@rlmode}|%
   {|\append@app|{%
-- 
cgit v1.2.3

