From 5897dbfe6a703d6fb184ae83d9ac747c529e0fe2 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 14 May 2021 07:29:51 +0200 Subject: apply [b87c5d7] to verse lineation --- ekdosis.dtx | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/ekdosis.dtx b/ekdosis.dtx index d005c0f..fb70916 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -8216,14 +8216,12 @@ Sample text with a \textcolor{red}{word} in red. \fi \fi% \else - \ifekd@pagelineation - \LRnum{\getrefnumber{#1}}--% + \ifboolexpr{bool {ekd@pagelineation} or bool {ekd@pagevlineation}} + {\LRnum{\getrefnumber{#1}}--% \LRnum{\getpagerefnumber{#2}}.% - \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos - \else - \LRnum{\getrefnumber{#1}}--% - \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue the nos - \fi + \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}}% issue pg and ln nos + {\LRnum{\getrefnumber{#1}}--% + \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}}% issue the nos \fi% \ifekdn@forcenum \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% force the no @@ -8339,16 +8337,14 @@ Sample text with a \textcolor{red}{word} in red. \fi \fi% \else - \ifekd@pagelineation - \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% + \ifboolexpr{bool {ekd@pagelineation} or bool {ekd@pagevlineation}} + {\LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% \LRnum{\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}.% \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}% - \unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos - \else - \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% + \unexpanded\expandafter{\ekd@postrefnum}}% issue pg and ln nos + {\LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}% - \unexpanded\expandafter{\ekd@postrefnum}% issue the nos - \fi + \unexpanded\expandafter{\ekd@postrefnum}}% issue the nos \fi% \ifekdl@forcenum \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% -- cgit v1.2.3