Re: [NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Zhichu Chen
On Mon, Dec 8, 2008 at 5:47 PM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen <[EMAIL PROTECTED]> wrote: >> 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 >> +++

Re: [NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Wolfgang Schuster
On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen <[EMAIL PROTECTED]> wrote: > 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::\recurse

[NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread 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 knu