I am using the folowing code: \def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] } The number of pages is displayed correctly, but the pagenumber is always 1. What am I doing wrong? -- Cecil Westerhof
Am 03.01.2011 um 10:32 schrieb Cecil Westerhof:
I am using the folowing code: \def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] }
The number of pages is displayed correctly, but the pagenumber is always 1. What am I doing wrong?
Make a complete example, you don’t where you call the \UsePageNumbers. Wolfgang
2011/1/3 Wolfgang Schuster
Am 03.01.2011 um 10:32 schrieb Cecil Westerhof:
I am using the folowing code: \def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] }
The number of pages is displayed correctly, but the pagenumber is always 1. What am I doing wrong?
Make a complete example, you don’t where you call the \UsePageNumbers.
Attached are the tex and pdf file. -- Cecil Westerhof
2011/1/3 Wolfgang Schuster
You stop pagenumbering and wonder why context doesn’t report the current pagenumber.
Line 15: \setuppagenumbering[state=stop]
I thought that \setuplayout[pagenumbers] took care of that. I changed UsePageNumbers to: \def\UsePageNumbers{ \setuppagenumbering[state=start] \setuplayout[pagenumbers] \setupfootertexts[Pagina \pagenumber \space van \lastpage] } And now it works. Thanks. -- Cecil Westerhof
Hello Cecil, Are you calling \UsePageNumbers macro at start? I don't see any problem ... For example this short code is working: \setupfootertexts[Page \pagenumber \space of \lastpage] \starttext \dorecurse{20}{\input tufte } \stoptext Jaroslav Dne 3.1.2011 10:32, Cecil Westerhof napsal(a):
\def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] }
Hello, \UsePageNumbers must be after \starttext \starttext \UsePageNumbers Is working... Jaroslav Dne 3.1.2011 11:54, Jaroslav Hajtmar napsal(a):
Hello Cecil, Are you calling \UsePageNumbers macro at start? I don't see any problem ...
For example this short code is working:
\setupfootertexts[Page \pagenumber \space of \lastpage]
\starttext \dorecurse{20}{\input tufte } \stoptext
Jaroslav
Dne 3.1.2011 10:32, Cecil Westerhof napsal(a):
\def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] }
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Cecil Westerhof
-
Jaroslav Hajtmar
-
Wolfgang Schuster