diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-08-24 20:18:48 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-08-24 20:18:48 +0200 |
commit | 9fa44076aced0c5fcbcdc06f70424c0dd46620c4 (patch) | |
tree | 62df0eae55e64d55f673c1cf19fd3d3c3ade4a17 | |
parent | 23bc528c89e84c5caa540d030b6591dca963184f (diff) | |
download | ekdosis-9fa44076aced0c5fcbcdc06f70424c0dd46620c4.tar.gz |
\lem: added control on expansion of the optional arguments
-rw-r--r-- | ekdosis.dtx | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index afacb0c..8af64f2 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -525,35 +525,47 @@ idno={}, msName={}, origDate={}][3]{% | |||
525 | \ifbool{al@rlmode}{% | 525 | \ifbool{al@rlmode}{% |
526 | \edef\lem@app{% | 526 | \edef\lem@app{% |
527 | \ifdefined\ekdlr@alt | 527 | \ifdefined\ekdlr@alt |
528 | \ifdefined\ekdlr@post\space\ekdlr@post\space\else\fi | 528 | \ifdefined\ekdlr@post% |
529 | {\textdir TRT\ekdlr@alt} | 529 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi |
530 | \ifdefined\ekdlr@pre\space\ekdlr@pre\space\else\fi | 530 | {\textdir TRT\unexpanded\expandafter{\ekdlr@alt}} |
531 | \ifdefined\ekdlr@pre% | ||
532 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | ||
531 | \else | 533 | \else |
532 | \ifdefined\ekdlr@post\space\ekdlr@post\space\else\fi | 534 | \ifdefined\ekdlr@post% |
535 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | ||
533 | {\textdir TRT#2}% | 536 | {\textdir TRT#2}% |
534 | \ifdefined\ekdlr@pre\space\ekdlr@pre\space\else\fi | 537 | \ifdefined\ekdlr@pre% |
538 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | ||
535 | \fi | 539 | \fi |
536 | \ifdefined\ekdlr@postwit\space\ekdlr@postwit\else\fi | 540 | \ifdefined\ekdlr@postwit% |
541 | \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi | ||
537 | \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi | 542 | \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi |
538 | \ifdefined\ekdlr@prewit\space\ekdlr@prewit\space\else\fi | 543 | \ifdefined\ekdlr@prewit% |
539 | \ifekdl@nosep\else\ekdl@sep\fi | 544 | \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi |
545 | \ifekdl@nosep\else\unexpanded\expandafter{\ekdl@sep}\fi | ||
540 | }% | 546 | }% |
541 | }% | 547 | }% |
542 | {% | 548 | {% |
543 | \edef\lem@app{% | 549 | \edef\lem@app{% |
544 | \ifdefined\ekdlr@alt | 550 | \ifdefined\ekdlr@alt |
545 | \ifdefined\ekdlr@pre\space\ekdlr@pre\space\else\fi | 551 | \ifdefined\ekdlr@pre% |
546 | \ekdlr@alt | 552 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi |
547 | \ifdefined\ekdlr@post\space\ekdlr@post\space\else\fi | 553 | \unexpanded\expandafter{\ekdlr@alt} |
554 | \ifdefined\ekdlr@post% | ||
555 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | ||
548 | \else | 556 | \else |
549 | \ifdefined\ekdlr@pre\space\ekdlr@pre\space\else\fi | 557 | \ifdefined\ekdlr@pre% |
558 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | ||
550 | #2% | 559 | #2% |
551 | \ifdefined\ekdlr@post\space\ekdlr@post\space\else\fi | 560 | \ifdefined\ekdlr@post% |
561 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | ||
552 | \fi | 562 | \fi |
553 | \ifdefined\ekdlr@prewit\space\ekdlr@prewit\space\else\fi | 563 | \ifdefined\ekdlr@prewit% |
564 | \space\unexpanded\expandafter{\ekdlr@prewit}\space\else\fi | ||
554 | \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi | 565 | \ifdefined\ekdlr@wit\space\getsiglum{\ekdlr@wit}\else\fi |
555 | \ifdefined\ekdlr@postwit\space\ekdlr@postwit\else\fi | 566 | \ifdefined\ekdlr@postwit% |
556 | \ifekdl@nosep\else\ekdl@sep\fi | 567 | \space\unexpanded\expandafter{\ekdlr@postwit}\else\fi |
568 | \ifekdl@nosep\else\unexpanded\expandafter{\ekdl@sep}\fi | ||
557 | }% | 569 | }% |
558 | }% | 570 | }% |
559 | \append@ln@app{\lem@app}% | 571 | \append@ln@app{\lem@app}% |