diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-01-25 12:58:51 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-01-25 12:58:51 +0100 |
commit | bb57f2a6f33788bd7b4c735467ec65714cbc3ee5 (patch) | |
tree | aeaeb82d58e38264ef48bb145a6928f1a8f7edf1 | |
parent | b59dc3b44c00cd6f9b3943e1697045106dbef092 (diff) | |
download | ekdosis-bb57f2a6f33788bd7b4c735467ec65714cbc3ee5.tar.gz |
confine \lem \rdg and \note to \app; use metalogox instead of hologo
-rw-r--r-- | ekdosis.dtx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index d08ea28..a8426eb 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -133,7 +133,7 @@ Running "make install" installs the files in the local TeX tree. | |||
133 | %<*driver> | 133 | %<*driver> |
134 | \documentclass{ltxdoc} | 134 | \documentclass{ltxdoc} |
135 | \usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} | 135 | \usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} |
136 | \usepackage{hologo} | 136 | \usepackage{metalogox} |
137 | \usepackage{hyperxmp} | 137 | \usepackage{hyperxmp} |
138 | \usepackage{uri} | 138 | \usepackage{uri} |
139 | \usepackage[numbered]{hypdoc} | 139 | \usepackage[numbered]{hypdoc} |
@@ -294,7 +294,7 @@ Running "make install" installs the files in the local TeX tree. | |||
294 | % \begin{macrocode} | 294 | % \begin{macrocode} |
295 | \RequirePackage{ifluatex} | 295 | \RequirePackage{ifluatex} |
296 | % \end{macrocode} | 296 | % \end{macrocode} |
297 | % \package{ekdosis} requires \hologo{LuaLaTeX} of course. Issue a warning | 297 | % \package{ekdosis} requires {\LuaLaTeX} of course. Issue a warning |
298 | % if the document is processed with another engine. | 298 | % if the document is processed with another engine. |
299 | % \begin{macrocode} | 299 | % \begin{macrocode} |
300 | \ifluatex\else | 300 | \ifluatex\else |
@@ -349,6 +349,7 @@ Running "make install" installs the files in the local TeX tree. | |||
349 | \newbool{ekd@started} | 349 | \newbool{ekd@started} |
350 | \newbool{do@app} | 350 | \newbool{do@app} |
351 | \newbool{ekd@state} | 351 | \newbool{ekd@state} |
352 | \newif\ifekd@isinapp | ||
352 | \providebool{al@rlmode} | 353 | \providebool{al@rlmode} |
353 | \newcounter{ekd@lab} | 354 | \newcounter{ekd@lab} |
354 | \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} | 355 | \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} |
@@ -372,6 +373,7 @@ Running "make install" installs the files in the local TeX tree. | |||
372 | \ifbool{do@app}{\add@@apparatus}{}}% | 373 | \ifbool{do@app}{\add@@apparatus}{}}% |
373 | } | 374 | } |
374 | \NewDocumentCommand{\append@app}{+m}{% | 375 | \NewDocumentCommand{\append@app}{+m}{% |
376 | \ifekd@isinapp% | ||
375 | \ifbool{ekd@state}{% | 377 | \ifbool{ekd@state}{% |
376 | \luadirect{ekdosis.appin( | 378 | \luadirect{ekdosis.appin( |
377 | \luastring{<\zref@extract{ekd:\theekd@lab}{abspage}>}, | 379 | \luastring{<\zref@extract{ekd:\theekd@lab}{abspage}>}, |
@@ -380,17 +382,19 @@ Running "make install" installs the files in the local TeX tree. | |||
380 | \luadirect{ekdosis.appin( | 382 | \luadirect{ekdosis.appin( |
381 | \luastring{</\zref@extract{ekd:\theekd@lab}{abspage}>}, | 383 | \luastring{</\zref@extract{ekd:\theekd@lab}{abspage}>}, |
382 | "yes")}% | 384 | "yes")}% |
383 | }{}} | 385 | }{}\else\fi} |
384 | \NewDocumentCommand{\append@ln@app}{+m}% | 386 | \NewDocumentCommand{\append@ln@app}{+m}% |
385 | {\luadirect{tex.sprint(ekdosis.mdvappend(\luastringN{#1}))}} | 387 | {\luadirect{tex.sprint(ekdosis.mdvappend(\luastringN{#1}))}} |
386 | \NewDocumentCommand{\app}{+m}{% | 388 | \NewDocumentCommand{\app}{+m}{% |
389 | \ekd@isinapptrue% | ||
387 | \stepcounter{ekd@lab}% | 390 | \stepcounter{ekd@lab}% |
388 | \zlabel{ekd:\theekd@lab}% | 391 | \zlabel{ekd:\theekd@lab}% |
389 | \luadirect{% | 392 | \luadirect{% |
390 | ekdosis.storeabspg(\luastring{\zref@extract{ekd:\theekd@lab}{abspage}}, | 393 | ekdosis.storeabspg(\luastring{\zref@extract{ekd:\theekd@lab}{abspage}}, |
391 | "pg_ii")}% | 394 | "pg_ii")}% |
392 | \ifbool{ekd@state}{\add@apparatus}{}% | 395 | \ifbool{ekd@state}{\add@apparatus}{}% |
393 | #1} | 396 | #1% |
397 | \ekd@isinappfalse} | ||
394 | \newkeycommand+[\|]{\lem}[wit, alt, pre, post, prewit, postwit, | 398 | \newkeycommand+[\|]{\lem}[wit, alt, pre, post, prewit, postwit, |
395 | choice nolem={false,,true}][1]{% | 399 | choice nolem={false,,true}][1]{% |
396 | #1% | 400 | #1% |