diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-03-01 16:58:28 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-03-01 16:58:28 +0100 |
commit | f6ffe013073fe77b745e9b378e1b10e1635ecf43 (patch) | |
tree | 4f8911f7c71a1d4b4a314a667b373fdb7cfcd165 | |
parent | 10a79f542c1a547b704bb8b88d70190dffd9b3c7 (diff) | |
download | ekdosis-f6ffe013073fe77b745e9b378e1b10e1635ecf43.tar.gz |
done replacing 'options' with 'expkv-def'. fixed misplaced postrefnum hook.
-rw-r--r-- | ekdosis.dtx | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 7e44af5..c6622be 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -348,7 +348,6 @@ Running "make install" installs the files in the local TeX tree. | |||
348 | \ProcessOptionsX\relax | 348 | \ProcessOptionsX\relax |
349 | \RequirePackage{luacode} | 349 | \RequirePackage{luacode} |
350 | \RequirePackage{paracol} | 350 | \RequirePackage{paracol} |
351 | \RequirePackage{options} | ||
352 | \RequirePackage{expkv-def} | 351 | \RequirePackage{expkv-def} |
353 | \RequirePackage{xparse} | 352 | \RequirePackage{xparse} |
354 | \RequirePackage{etoolbox} | 353 | \RequirePackage{etoolbox} |
@@ -659,10 +658,10 @@ Running "make install" installs the files in the local TeX tree. | |||
659 | = | 658 | = |
660 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} | 659 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} |
661 | \else | 660 | \else |
662 | \getrefnumber{#1}\unexpanded\expandafter{\ekd@postrefnum}% | 661 | \getrefnumber{#1}% |
663 | \fi% | 662 | \fi% |
664 | }% | 663 | }% |
665 | {\getrefnumber{#1}\unexpanded\expandafter{\ekd@postrefnum}}% | 664 | {\getrefnumber{#1}}% |
666 | \else | 665 | \else |
667 | \ifsubsq@unit% | 666 | \ifsubsq@unit% |
668 | % | 667 | % |
@@ -671,24 +670,24 @@ Running "make install" installs the files in the local TeX tree. | |||
671 | = | 670 | = |
672 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} | 671 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} |
673 | \else | 672 | \else |
674 | \getrefnumber{#1}\unexpanded\expandafter{\ekd@postrefnum}% | 673 | \getrefnumber{#1}% |
675 | \fi | 674 | \fi |
676 | % | 675 | % |
677 | \else | 676 | \else |
678 | \getrefnumber{#1}\unexpanded\expandafter{\ekd@postrefnum}% | 677 | \getrefnumber{#1}% |
679 | \fi | 678 | \fi |
680 | \fi | 679 | \fi |
681 | % | 680 | % |
682 | \else | 681 | \else |
683 | \getrefnumber{#1}--% | 682 | \getrefnumber{#1}--% |
684 | \getrefnumber{#2}\unexpanded\expandafter{\ekd@postrefnum}% | 683 | \getrefnumber{#2}% |
685 | \fi% | 684 | \fi% |
686 | \else | 685 | \else |
687 | \getrefnumber{#1}--% | 686 | \getrefnumber{#1}--% |
688 | \getpagerefnumber{#2}.% | 687 | \getpagerefnumber{#2}.% |
689 | \getrefnumber{#2}\unexpanded\expandafter{\ekd@postrefnum}% | 688 | \getrefnumber{#2}% |
690 | \fi% | 689 | \fi% |
691 | }% | 690 | }\unexpanded\expandafter{\ekd@postrefnum}% |
692 | }% | 691 | }% |
693 | \def\current@ref{{\textdir TLT\unexpanded\expandafter{\ekd@refnumstyle}% | 692 | \def\current@ref{{\textdir TLT\unexpanded\expandafter{\ekd@refnumstyle}% |
694 | \ifnum% | 693 | \ifnum% |
@@ -708,10 +707,8 @@ Running "make install" installs the files in the local TeX tree. | |||
708 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} | 707 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} |
709 | \else | 708 | \else |
710 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% | 709 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% |
711 | \unexpanded\expandafter{\ekd@postrefnum}% | ||
712 | \fi% | 710 | \fi% |
713 | }{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% | 711 | }{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% |
714 | \unexpanded\expandafter{\ekd@postrefnum}}% | ||
715 | \else | 712 | \else |
716 | \ifsubsq@unit% | 713 | \ifsubsq@unit% |
717 | % | 714 | % |
@@ -721,27 +718,23 @@ Running "make install" installs the files in the local TeX tree. | |||
721 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} | 718 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} |
722 | \else | 719 | \else |
723 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% | 720 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% |
724 | \unexpanded\expandafter{\ekd@postrefnum}% | ||
725 | \fi | 721 | \fi |
726 | % | 722 | % |
727 | \else | 723 | \else |
728 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% | 724 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% |
729 | \unexpanded\expandafter{\ekd@postrefnum}% | ||
730 | \fi | 725 | \fi |
731 | \fi | 726 | \fi |
732 | % | 727 | % |
733 | \else | 728 | \else |
734 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--% | 729 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--% |
735 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% | 730 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% |
736 | \unexpanded\expandafter{\ekd@postrefnum}% | ||
737 | \fi% | 731 | \fi% |
738 | \else | 732 | \else |
739 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--% | 733 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--% |
740 | \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}.% | 734 | \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}.% |
741 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% | 735 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% |
742 | \unexpanded\expandafter{\ekd@postrefnum}% | ||
743 | \fi% | 736 | \fi% |
744 | }% | 737 | }\unexpanded\expandafter{\ekd@postrefnum}% |
745 | }% | 738 | }% |
746 | \define@cmdkeys[ekd]{lemrdg}[ekdlr@]{wit, alt, pre, post, prewit, | 739 | \define@cmdkeys[ekd]{lemrdg}[ekdlr@]{wit, alt, pre, post, prewit, |
747 | postwit} | 740 | postwit} |
@@ -992,21 +985,18 @@ Running "make install" installs the files in the local TeX tree. | |||
992 | \egroup% | 985 | \egroup% |
993 | \subsq@unittrue% | 986 | \subsq@unittrue% |
994 | } | 987 | } |
995 | \options{ | 988 | \ekvdefinekeys{note}{ |
996 | /note/.new family, | 989 | store pre = \pre@value, |
997 | /note/pre/.new value = {}, | 990 | store post = \post@value |
998 | /note/post/.new value = {} | ||
999 | } | 991 | } |
1000 | \NewDocumentCommand{\ekd@note}{O{} m}{% | 992 | \NewDocumentCommand{\ekd@note}{O{} m}{% |
1001 | \bgroup% | 993 | \bgroup% |
1002 | \options{/note,#1}% | 994 | \ekvset{note}{#1}% |
1003 | \letoption{/note/pre}\pre@value% | ||
1004 | \letoption{/note/post}\post@value% | ||
1005 | \edef\note@contents{% | 995 | \edef\note@contents{% |
1006 | \ifoptionvoid{/note/pre}{}{% | 996 | \ekvifdefinedNoVal{note}{pre}{}{% |
1007 | \unexpanded\expandafter{\pre@value}}% | 997 | \unexpanded\expandafter{\pre@value}}% |
1008 | \unexpanded{#2}% | 998 | \unexpanded{#2}% |
1009 | \ifoptionvoid{/note/post}{}{% | 999 | \ekvifdefinedNoVal{note}{post}{}{% |
1010 | \unexpanded\expandafter{\post@value}}% | 1000 | \unexpanded\expandafter{\post@value}}% |
1011 | }% | 1001 | }% |
1012 | \append@app{\note@contents}% | 1002 | \append@app{\note@contents}% |
@@ -1015,14 +1005,12 @@ Running "make install" installs the files in the local TeX tree. | |||
1015 | \NewDocumentCommand{\ekd@note@star}{O{} m}{% | 1005 | \NewDocumentCommand{\ekd@note@star}{O{} m}{% |
1016 | \if@pkg@parnotes | 1006 | \if@pkg@parnotes |
1017 | \bgroup% | 1007 | \bgroup% |
1018 | \options{/note,#1}% | 1008 | \ekvset{note}{#1}% |
1019 | \letoption{/note/pre}\pre@value% | ||
1020 | \letoption{/note/post}\post@value% | ||
1021 | \edef\note@contents{% | 1009 | \edef\note@contents{% |
1022 | \ifoptionvoid{/note/pre}{}{% | 1010 | \ekvifdefinedNoVal{note}{pre}{}{% |
1023 | \unexpanded\expandafter{\pre@value}}% | 1011 | \unexpanded\expandafter{\pre@value}}% |
1024 | \unskip\noexpand\parnote{#2}% | 1012 | \unskip\noexpand\parnote{#2}% |
1025 | \ifoptionvoid{/note/post}{}{% | 1013 | \ekvifdefinedNoVal{note}{post}{}{% |
1026 | \unexpanded\expandafter{\post@value}}% | 1014 | \unexpanded\expandafter{\post@value}}% |
1027 | }% | 1015 | }% |
1028 | \append@app{\note@contents}% | 1016 | \append@app{\note@contents}% |