I want to obtain the current page number, for use in Lua conditionals, e.g.:
\startlua if 10 <= \pagenumber < 20 then context("The pages are between 10 and 20") end \stoplua
- According to this article on counters at the ConTeXt wiki, I think
\getnumber[page]should display the page number in a document, but it does not display anything.
- I thought How to compare two counters using TeX conditionals in ConTeXt? would provide the answers, but
\rawstructurecountervalueseems to be undefined in my version of ConTeXt.
How can I display and work with the current page number in ConTeXt?