8 Dec
2008
8 Dec
'08
10:47 a.m.
On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen
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.
Define your macros *after* \starttext. Wolfgang