I found a solution, but it's tricky (and there's no check on reference
existence in structures.references.collected).
\directlua{
function userdata.printrange(singular, plural, label)
local coll_ref = structures.references.collected[""]
local pagestart = coll_ref[label .. ":start"].refe
Hello list,
I'm trying to reference a page range (think of a long quote spanning on
2 pages).
I need to discriminate ranges collapsing to one page from "real" ranges
(2 or more pages): "1-1" should become "1", while "1-2" should stay
like that.
Here's a not working snippet:
\starttext
Tufte quo