Hi Otared, This works with Texlive context but this does not work with Standalone context that I use with Emacs.
I believe that Emacs calls ConTeXt with `context --once`. You need multiple runs to resolve \lastpage.
Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________