diff options
-rw-r--r-- | ekdosis.dtx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 523ae9c..593c1a9 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -343,10 +343,10 @@ Running "make install" installs the files in the local TeX tree. | |||
343 | \AtEndDocument{\luadirect{closestream()}} | 343 | \AtEndDocument{\luadirect{closestream()}} |
344 | % \end{macrocode} | 344 | % \end{macrocode} |
345 | % \begin{macrocode} | 345 | % \begin{macrocode} |
346 | \newbool{ekdstarted} | ||
346 | \newbool{isapp} | 347 | \newbool{isapp} |
347 | \newbool{doapp} | 348 | \newbool{doapp} |
348 | \newbool{ekdstate} | 349 | \newbool{ekdstate} |
349 | % \newbool{ekdstarted} | ||
350 | \providebool{al@rlmode} | 350 | \providebool{al@rlmode} |
351 | \newcounter{ekd@lab} | 351 | \newcounter{ekd@lab} |
352 | \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} | 352 | \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} |
@@ -364,9 +364,12 @@ Running "make install" installs the files in the local TeX tree. | |||
364 | }% | 364 | }% |
365 | } | 365 | } |
366 | \def\add@apparatus{% | 366 | \def\add@apparatus{% |
367 | \ifbool{isapp}{\testapparatus}{\add@@apparatus% | 367 | % \ifbool{isapp}{\testapparatus}{\add@@apparatus% |
368 | \global\setbool{isapp}{true}}% | 368 | % \setbool{isapp}{true}}% |
369 | \ifbool{doapp}{\add@@apparatus}{}% | 369 | \notbool{ekdstarted}{\add@@apparatus% |
370 | \global\setbool{ekdstarted}{true}} | ||
371 | {\testapparatus% | ||
372 | \ifbool{doapp}{\add@@apparatus}{}}% | ||
370 | } | 373 | } |
371 | \NewDocumentCommand{\append}{+m}{% | 374 | \NewDocumentCommand{\append}{+m}{% |
372 | \ifbool{ekdstate}{% | 375 | \ifbool{ekdstate}{% |
@@ -384,7 +387,7 @@ Running "make install" installs the files in the local TeX tree. | |||
384 | \luadirect{% | 387 | \luadirect{% |
385 | ekdosis.storeabspg(\luastring{\zref@extract{ekd:\theekd@lab}{abspage}}, | 388 | ekdosis.storeabspg(\luastring{\zref@extract{ekd:\theekd@lab}{abspage}}, |
386 | "pg_ii")}% | 389 | "pg_ii")}% |
387 | \add@apparatus% | 390 | \ifbool{ekdstate}{\add@apparatus}{}% |
388 | #1} | 391 | #1} |
389 | \NewDocumentCommand{\lem}{o +m}{% | 392 | \NewDocumentCommand{\lem}{o +m}{% |
390 | \ifbool{al@rlmode}% | 393 | \ifbool{al@rlmode}% |
@@ -424,10 +427,9 @@ Running "make install" installs the files in the local TeX tree. | |||
424 | \NewDocumentCommand{\EkdosisOn}{}{\setbool{ekdstate}{true}} | 427 | \NewDocumentCommand{\EkdosisOn}{}{\setbool{ekdstate}{true}} |
425 | \NewDocumentCommand{\EkdosisOff}{}{% | 428 | \NewDocumentCommand{\EkdosisOff}{}{% |
426 | \setbool{ekdstate}{false}% | 429 | \setbool{ekdstate}{false}% |
427 | \global\setbool{isapp}{false}% | 430 | % \setbool{isapp}{false}% |
428 | } | 431 | } |
429 | \newenvironment{ekdosis}{% | 432 | \newenvironment{ekdosis}{% |
430 | % \ifbool{ekdstarted}{}{\EkdosisStart\global\setbool{ekdstarted}{true}} | ||
431 | \EkdosisStart% | 433 | \EkdosisStart% |
432 | \EkdosisOn}{\EkdosisOff} | 434 | \EkdosisOn}{\EkdosisOff} |
433 | % \end{macrocode} | 435 | % \end{macrocode} |