diff options
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r-- | ekdosis.dtx | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index bd395da..c9703da 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -2808,17 +2808,36 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2808 | \fi% | 2808 | \fi% |
2809 | }\unexpanded\expandafter{\ekd@postrefnum}% | 2809 | }\unexpanded\expandafter{\ekd@postrefnum}% |
2810 | }% | 2810 | }% |
2811 | \define@cmdkeys[ekd]{lemrdg}[ekdlr@]{wit, alt, pre, post, prewit, | 2811 | \ekvdefinekeys{lem}{ |
2812 | postwit, type} | 2812 | code wit = \def\ekdlr@wit{#1}, |
2813 | \define@cmdkey[ekd]{lem}[ekdl@]{sep}{} | 2813 | code alt = \def\ekdlr@alt{#1}, |
2814 | \presetkeys[ekd]{lem}{sep=\ekdsep}{} | 2814 | code pre = \ekdlr@pre{#1}, |
2815 | \define@boolkeys[ekd]{lem}[ekdl@]{nolem, nosep}[true] | 2815 | code post = \ekdlr@post{#1}, |
2816 | \define@boolkeys[ekd]{rdg}[ekdr@]{nordg}[true] | 2816 | code prewit = \ekdlr@prewit{#1}, |
2817 | code postwit = \ekdlr@postwit{#1}, | ||
2818 | store type = \ekdlr@type, | ||
2819 | store sep = \ekdl@sep, | ||
2820 | bool nolem = \ifekdl@nolem, | ||
2821 | bool nosep = \ifekdl@nosep, | ||
2822 | initial type = default, | ||
2823 | initial sep = \ekdsep | ||
2824 | } | ||
2825 | \ekvdefinekeys{rdg}{ | ||
2826 | code wit = \def\ekdlr@wit{#1}, | ||
2827 | code alt = \def\ekdlr@alt{#1}, | ||
2828 | code pre = \ekdlr@pre{#1}, | ||
2829 | code post = \ekdlr@post{#1}, | ||
2830 | code prewit = \ekdlr@prewit{#1}, | ||
2831 | code postwit = \ekdlr@postwit{#1}, | ||
2832 | store type = \ekdlr@type, | ||
2833 | bool nordg = \ifekdr@nordg, | ||
2834 | initial type = default | ||
2835 | } | ||
2817 | \NewDocumentCommand{\lem}{O{} m}{% | 2836 | \NewDocumentCommand{\lem}{O{} m}{% |
2818 | \ekd@isinlemtrue% | 2837 | \ekd@isinlemtrue% |
2819 | \luadirect{ekdosis.dolnlab(\luastringN{#2})}% | 2838 | \luadirect{ekdosis.dolnlab(\luastringN{#2})}% |
2820 | \bgroup% | 2839 | \bgroup% |
2821 | \setkeys[ekd]{lemrdg,lem}{#1}% | 2840 | \ekvset{lem}{#1}% |
2822 | \ifekd@mapps% | 2841 | \ifekd@mapps% |
2823 | \ifnum% | 2842 | \ifnum% |
2824 | \luadirect{tex.sprint(ekdosis.get_bagunits(\luastringO{\ekdan@type}))} | 2843 | \luadirect{tex.sprint(ekdosis.get_bagunits(\luastringO{\ekdan@type}))} |
@@ -2918,7 +2937,7 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2918 | } | 2937 | } |
2919 | \NewDocumentCommand{\rdg}{O{} m}{% | 2938 | \NewDocumentCommand{\rdg}{O{} m}{% |
2920 | \bgroup% | 2939 | \bgroup% |
2921 | \setkeys[ekd]{lemrdg,rdg}{#1}% | 2940 | \ekvset{rdg}{#1}% |
2922 | % \ifekdr@nordg\append@app{}\else% do we need \append@app{} here? If | 2941 | % \ifekdr@nordg\append@app{}\else% do we need \append@app{} here? If |
2923 | % % so, keep in mind \ifekd@mapps, | 2942 | % % so, keep in mind \ifekd@mapps, |
2924 | % like so: | 2943 | % like so: |