From 371e1365b4e5f441bec2a2e3068a54b2349a7c01 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Fri, 6 Sep 2019 12:24:02 +0200
Subject: use \getpagerefnumber instead of \getrefbykeydefault to get page
 numbers

---
 ekdosis.dtx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 76fc915..5bbef54 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -522,11 +522,9 @@ idno={}, msName={}, origDate={}][3]{%
   \ekd@isinappfalse}
 \def\current@ref{{\textdir TLT\noexpand\bfseries%
     \ifnum%
-    \getrefbykeydefault{%
-      \luadirect{tex.sprint(ekdosis.getlnlab())}-b}{page}{}
+    \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}
     =
-    \getrefbykeydefault{%
-      \luadirect{tex.sprint(ekdosis.getlnlab())}-e}{page}{}
+    \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}
       \ifnum%
       \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}
       =
@@ -538,8 +536,7 @@ idno={}, msName={}, origDate={}][3]{%
       \fi%
       \else
       \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--%
-      \getrefbykeydefault{%
-        \luadirect{tex.sprint(ekdosis.getlnlab())}-e}{page}{}.%
+      \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}.%
       \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}%
       \fi%
     }
-- 
cgit v1.2.3

