Hi,
@Aditya "You need multiple runs to resolve \lastpage"
What you propose does not solve the problem

@Pablo Very nice job !
Thanks
Merci

2017-08-10 18:54 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:
On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
> [...]
> How to make the last page number interactive ?

Hi Fabrice,

I guess this might be what you want:

    \showframe
    \setupinteraction
        [state=start,
         style=,
         color=,
         contrastcolor=,
         focus=standard]
    \enabledirectives[references.border=darkred]
    \setuppagenumbering[alternative=]
    \setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}]
    \starttext
    \dorecurse{50}{a\page}
    \reference[final page]{final}
    \stoptext

Just in case it helps,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________