Re: [NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
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 ..

[NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
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