From 112b1bb272b60c66d0ef2d7b6e2f40566f70b37f Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Mon, 31 May 2021 11:28:32 +0200
Subject: ekdmark should not take absolute page numbers

---
 ekdosis.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 9f50ec5..3f0d062 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -9098,9 +9098,9 @@ Sample text with a \textcolor{red}{word} in red.
 %    \begin{macrocode}
 \NewDocumentCommand{\ekd@storemark}{m}{%
   \stepcounter{ekd@lab}%
-  \zlabel{ekd:\theekd@lab}%
+  \label{ekd:\theekd@lab}%
   \luadirect{ekdosis.storehfmark(
-    \luastring{\zref@extract{ekd:\theekd@lab}{abspage}},
+    \luastring{\getpagerefnumber{ekd:\theekd@lab}},
     \luastringN{#1})}%
 }
 \NewDocumentCommand{\ekdmark}{}{%
-- 
cgit v1.2.3

