aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx22
1 files changed, 22 insertions, 0 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 3baefd9..461eaac 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -305,6 +305,7 @@ Running "make install" installs the files in the local TeX tree.
305\newbool{isapp} 305\newbool{isapp}
306\newbool{ekdstate} 306\newbool{ekdstate}
307\newbool{ekdstarted} 307\newbool{ekdstarted}
308\providebool{al@rlmode}
308\newcounter{ekd@lab} 309\newcounter{ekd@lab}
309\NewDocumentCommand{\append}{+m}{% 310\NewDocumentCommand{\append}{+m}{%
310 \ifbool{ekdstate}{% 311 \ifbool{ekdstate}{%
@@ -315,6 +316,27 @@ Running "make install" installs the files in the local TeX tree.
315 \stepcounter{ekd@lab}}{}} 316 \stepcounter{ekd@lab}}{}}
316\NewDocumentCommand{\obappend}{+m}% 317\NewDocumentCommand{\obappend}{+m}%
317 {\luadirect{tex.sprint(mdvappend(\luastringN{#1}))}} 318 {\luadirect{tex.sprint(mdvappend(\luastringN{#1}))}}
319\NewDocumentCommand{\app}{+m}{#1}
320% \NewDocumentCommand{\lem}{o +m}{%
321% \IfNoValueTF{#1}{#2\obappend{#2:}}{#2\obappend{#2 #1:}}%
322% }
323\NewDocumentCommand{\lem}{o +m}{%
324 \ifbool{al@rlmode}%
325 {\IfNoValueTF{#1}%
326 {#2\obappend{\bgroup\setRL#2\egroup:}}%
327 {#2\obappend{\bgroup\setRL#2\egroup{} #1:}}}%
328 {\IfNoValueTF{#1}{#2\obappend{#2:}}{#2\obappend{#2 #1:}}}%
329}
330\NewDocumentCommand{\rdg}{o +m}{%
331 \ifbool{al@rlmode}%
332 {\IfNoValueTF{#1}
333 {\append{\bgroup\setRL#2\egroup}}
334 {\append{\bgroup\setRL#2\egroup{} #1}}}
335 {\IfNoValueTF{#1}{\append{#2}}{\append{#2 #1}}}%
336}
337\NewDocumentCommand{\note}{s +m}{%
338 \IfBooleanTF{#1}{\append{\footnote{#2}}}{\append{#2}}%
339}
318\NewDocumentCommand{\apparatus}{}{\luadirect{tex.sprint(appout())}} 340\NewDocumentCommand{\apparatus}{}{\luadirect{tex.sprint(appout())}}
319\NewDocumentCommand{\testapparatus}{}{\luadirect{tex.sprint(testapparatus())}} 341\NewDocumentCommand{\testapparatus}{}{\luadirect{tex.sprint(testapparatus())}}
320\def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} 342\def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext}