diff options
-rw-r--r-- | ekdosis.dtx | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 7d757b7..ab3afbb 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -654,8 +654,8 @@ idno={}, msName={}, origDate={}][3]{% | |||
654 | \ifdefined\ekdlr@pre% | 654 | \ifdefined\ekdlr@pre% |
655 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | 655 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi |
656 | \ltx@ifpackageloaded{babel}% | 656 | \ltx@ifpackageloaded{babel}% |
657 | {{\noexpand\selectlanguage{\languagename}% | 657 | {\noexpand\selectlanguage{\languagename}% |
658 | \unexpanded\expandafter{\ekdlr@alt}}}% | 658 | \unexpanded\expandafter{\ekdlr@alt}}% |
659 | {\unexpanded\expandafter{\ekdlr@alt}} | 659 | {\unexpanded\expandafter{\ekdlr@alt}} |
660 | \ifdefined\ekdlr@post% | 660 | \ifdefined\ekdlr@post% |
661 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | 661 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi |
@@ -663,7 +663,7 @@ idno={}, msName={}, origDate={}][3]{% | |||
663 | \ifdefined\ekdlr@pre% | 663 | \ifdefined\ekdlr@pre% |
664 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | 664 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi |
665 | \ltx@ifpackageloaded{babel}% | 665 | \ltx@ifpackageloaded{babel}% |
666 | {{\noexpand\selectlanguage{\languagename}\unexpanded{#2}}}{% | 666 | {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% |
667 | \unexpanded{#2}}% | 667 | \unexpanded{#2}}% |
668 | \ifdefined\ekdlr@post% | 668 | \ifdefined\ekdlr@post% |
669 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | 669 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi |
@@ -727,8 +727,8 @@ idno={}, msName={}, origDate={}][3]{% | |||
727 | \ifdefined\ekdlr@pre% | 727 | \ifdefined\ekdlr@pre% |
728 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | 728 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi |
729 | \ltx@ifpackageloaded{babel}% | 729 | \ltx@ifpackageloaded{babel}% |
730 | {{\noexpand\selectlanguage{\languagename}% | 730 | {\noexpand\selectlanguage{\languagename}% |
731 | \unexpanded\expandafter{\ekdlr@alt}}}% | 731 | \unexpanded\expandafter{\ekdlr@alt}}% |
732 | {\unexpanded\expandafter{\ekdlr@alt}} | 732 | {\unexpanded\expandafter{\ekdlr@alt}} |
733 | \ifdefined\ekdlr@post% | 733 | \ifdefined\ekdlr@post% |
734 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | 734 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi |
@@ -736,7 +736,7 @@ idno={}, msName={}, origDate={}][3]{% | |||
736 | \ifdefined\ekdlr@pre% | 736 | \ifdefined\ekdlr@pre% |
737 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi | 737 | \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi |
738 | \ltx@ifpackageloaded{babel}% | 738 | \ltx@ifpackageloaded{babel}% |
739 | {{\noexpand\selectlanguage{\languagename}\unexpanded{#2}}}{% | 739 | {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% |
740 | \unexpanded{#2}}% | 740 | \unexpanded{#2}}% |
741 | \ifdefined\ekdlr@post% | 741 | \ifdefined\ekdlr@post% |
742 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi | 742 | \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi |
@@ -782,20 +782,30 @@ idno={}, msName={}, origDate={}][3]{% | |||
782 | \ifdefined\ekdn@labelb% | 782 | \ifdefined\ekdn@labelb% |
783 | \luadirect{tex.sprint(ekdosis.setnotelab(\luastringO{\ekdn@labelb}))}% | 783 | \luadirect{tex.sprint(ekdosis.setnotelab(\luastringO{\ekdn@labelb}))}% |
784 | \ifdefined\ekdn@labele\else\def\ekdn@labele{\ekdn@labelb}\fi% | 784 | \ifdefined\ekdn@labele\else\def\ekdn@labele{\ekdn@labelb}\fi% |
785 | \else\PackageError{ekdosis}{missing labelb}{`labelb' must be set.}\fi% | 785 | \else\PackageError{ekdosis}{missing labelb}{`labelb' must be |
786 | \edef\note@contents{% | 786 | set.}\fi% |
787 | \ifbool{al@rlmode}% | ||
788 | {\edef\note@contents{% | ||
789 | \hskip .75em\ifsubsq@unit% | ||
790 | \unexpanded\expandafter{\ekd@unit@delim}\else\fi% | ||
791 | \current@ref@arg{\ekdn@labelb}{\ekdn@labele}\hskip .25em% | ||
792 | \ifdefined\ekdn@lem% | ||
793 | {\textdir TRT\unexpanded\expandafter{\ekdn@lem}}% | ||
794 | \unexpanded\expandafter{\ekdn@sep}\else\fi% | ||
795 | {\textdir TRT\unexpanded{#2}}}}% | ||
796 | {\edef\note@contents{% | ||
787 | \hskip .75em\ifsubsq@unit% | 797 | \hskip .75em\ifsubsq@unit% |
788 | \unexpanded\expandafter{\ekd@unit@delim}\else\fi% | 798 | \unexpanded\expandafter{\ekd@unit@delim}\else\fi% |
789 | \current@ref@arg{\ekdn@labelb}{\ekdn@labele}\hskip .25em% | 799 | \current@ref@arg{\ekdn@labelb}{\ekdn@labele}\hskip .25em% |
790 | \ifdefined\ekdn@lem | 800 | \ifdefined\ekdn@lem |
791 | \ltx@ifpackageloaded{babel}% | 801 | \ltx@ifpackageloaded{babel}% |
792 | {{\noexpand\selectlanguage{\languagename}% | 802 | {\noexpand\selectlanguage{\languagename}% |
793 | \unexpanded\expandafter{\ekdn@lem}}}% | 803 | \unexpanded\expandafter{\ekdn@lem}}% |
794 | {\unexpanded\expandafter{\ekdn@lem}}% | 804 | {\unexpanded\expandafter{\ekdn@lem}}% |
795 | \unexpanded\expandafter{\ekdn@sep}\else\fi% | 805 | \unexpanded\expandafter{\ekdn@sep}\else\fi% |
796 | \ltx@ifpackageloaded{babel}% | 806 | \ltx@ifpackageloaded{babel}% |
797 | {{\noexpand\selectlanguage{\languagename}\unexpanded{#2}}}{% | 807 | {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% |
798 | \unexpanded{#2}}}% | 808 | \unexpanded{#2}}}}% |
799 | \ifekd@mapps% | 809 | \ifekd@mapps% |
800 | \unconditional@appin[\ekdan@type]{\note@contents}% | 810 | \unconditional@appin[\ekdan@type]{\note@contents}% |
801 | \else% | 811 | \else% |