diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-03-28 18:14:14 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-03-28 18:14:14 +0100 |
commit | 9c3a14611b25cbec35402819235607439d02be28 (patch) | |
tree | 65a59f0afc92cffa1f2bd1970c57717210655af7 | |
parent | db70ffae9b765557aa5c14e59e6515efde371794 (diff) | |
download | ekdosis-9c3a14611b25cbec35402819235607439d02be28.tar.gz |
testing expansion within \lem and \rdg
-rw-r--r-- | ekdosis.dtx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index c4a706f..79c74a4 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -360,7 +360,7 @@ Running "make install" installs the files in the local TeX tree. | |||
360 | \luastringN{#3})} | 360 | \luastringN{#3})} |
361 | } | 361 | } |
362 | \NewDocumentCommand{\getsiglum}{m}{% | 362 | \NewDocumentCommand{\getsiglum}{m}{% |
363 | \luadirect{tex.sprint(ekdosis.getsiglum(\luastringN{#1}))} | 363 | \luadirect{tex.sprint(ekdosis.getsiglum(\luastringN{#1}))}% |
364 | } | 364 | } |
365 | % \end{macrocode} | 365 | % \end{macrocode} |
366 | % Add a \hologo{(La)TeX} command to be processed as a |TEI xml| tag: | 366 | % Add a \hologo{(La)TeX} command to be processed as a |TEI xml| tag: |
@@ -460,7 +460,15 @@ choice nolem={false,,true}][1]{% | |||
460 | \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% | 460 | \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% |
461 | \ifcommandkey{postwit}{ \commandkey{postwit}}{}:% | 461 | \ifcommandkey{postwit}{ \commandkey{postwit}}{}:% |
462 | }}% | 462 | }}% |
463 | |\fi|} | 463 | |\fi|} |
464 | \define@key[ekd]{lemma}{wit}{\getsiglum{#1}} | ||
465 | \define@key[ekd]{lemma}{tchic}{#1} | ||
466 | \presetkeys[ekd]{lemma}{wit={},tchic={}}{} | ||
467 | \def\mgetsiglum#1{\setkeys[ekd]{lemma}[tchic]{#1}} | ||
468 | \def\mtchic#1{\setkeys[ekd]{lemma}[wit]{#1}} | ||
469 | \NewDocumentCommand{\mrdg}{O{} +m}{% | ||
470 | \append@app{#2 \mtchic{#1}\mgetsiglum{#1}\mtchic{#1}}% | ||
471 | } | ||
464 | \newkeycommand+[\|]{\rdg}[wit, alt, pre, post, prewit, postwit][1]{% | 472 | \newkeycommand+[\|]{\rdg}[wit, alt, pre, post, prewit, postwit][1]{% |
465 | |\ifbool{al@rlmode}|% | 473 | |\ifbool{al@rlmode}|% |
466 | {|\append@app|{% | 474 | {|\append@app|{% |