Re: [NTG-context] \pagenumber geeft altijd 1
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 ___ 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 ___
Re: [NTG-context] \pagenumber geeft altijd 1
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 ___
Re: [NTG-context] \pagenumber geeft altijd 1
2011/1/3 Wolfgang Schuster schuster.wolfg...@googlemail.com: 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 test.tex Description: TeX document test.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] \pagenumber geeft altijd 1
Am 03.01.2011 um 11:53 schrieb Cecil Westerhof: Attached are the tex and pdf file. You stop pagenumbering and wonder why context doesn’t report the current pagenumber. Line 15: \setuppagenumbering[state=stop] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \pagenumber geeft altijd 1
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 ___ ___ 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 ___
Re: [NTG-context] \pagenumber geeft altijd 1
2011/1/3 Wolfgang Schuster schuster.wolfg...@googlemail.com: 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 ___ 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 ___