Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file is ++++++++++++++++++++++++++++++++++ \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} \def\test{\getvalue{test::\pagenumber}} \starttext \input knuth \page[yes] \input knuth \page[yes] This should be \quotation{:\pagenumber:}, but it's \quotation{\test} \stoptext ++++++++++++++++++++++++++++++++++++ Any suggestions about how to do that? I wanna define each page a macro. -- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------