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::\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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to