[NTG-context] first and last note in page

Pablo Rodriguez oinos at gmx.es
Sat Nov 26 11:53:02 CET 2016

```Hans,

I have the following sample:

\setuppagenumbering[A6]

\definesectionblock
[whatcomeslast]
[lastmatter]
[number=no]

\setupsectionblock
[lastmatter]
[page=no,
after=\page]

\setupnote
[footnote]
[location=text]

\starttext
\chapter{Knuth}
\dorecurse{50}{\input knuth\footnote{\input zapf}}
\chapter{Notes}\placefootnotes
\stoptext

Is there any way to have the first and last footnote number in header
text, so that it will be "Notes 5 to 10"?

I think something like \firstreferenceinpage[footnote] and
\lastreferenceinpage[footnote] would make sense here.

(This could be also applied to \firstreferenceinpage[linenumber] and
\lastreferenceinpage[linenumber].)