* \pagenumber geeft altijd 1
@ 2011-01-03 9:32 Cecil Westerhof
2011-01-03 10:46 ` Wolfgang Schuster
2011-01-03 10:54 ` Jaroslav Hajtmar
0 siblings, 2 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-01-03 9:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 9:32 \pagenumber geeft altijd 1 Cecil Westerhof
@ 2011-01-03 10:46 ` Wolfgang Schuster
2011-01-03 10:53 ` Cecil Westerhof
2011-01-03 10:54 ` Jaroslav Hajtmar
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-01-03 10:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 10:46 ` Wolfgang Schuster
@ 2011-01-03 10:53 ` Cecil Westerhof
2011-01-03 10:57 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Cecil Westerhof @ 2011-01-03 10:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
2011/1/3 Wolfgang Schuster <schuster.wolfgang@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
[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 854 bytes --]
[-- Attachment #3: test.pdf --]
[-- Type: application/pdf, Size: 24441 bytes --]
[-- Attachment #4: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 9:32 \pagenumber geeft altijd 1 Cecil Westerhof
2011-01-03 10:46 ` Wolfgang Schuster
@ 2011-01-03 10:54 ` Jaroslav Hajtmar
2011-01-03 10:57 ` Jaroslav Hajtmar
1 sibling, 1 reply; 7+ messages in thread
From: Jaroslav Hajtmar @ 2011-01-03 10:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 10:53 ` Cecil Westerhof
@ 2011-01-03 10:57 ` Wolfgang Schuster
2011-01-03 11:10 ` Cecil Westerhof
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-01-03 10:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 10:54 ` Jaroslav Hajtmar
@ 2011-01-03 10:57 ` Jaroslav Hajtmar
0 siblings, 0 replies; 7+ messages in thread
From: Jaroslav Hajtmar @ 2011-01-03 10:57 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \pagenumber geeft altijd 1
2011-01-03 10:57 ` Wolfgang Schuster
@ 2011-01-03 11:10 ` Cecil Westerhof
0 siblings, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-01-03 11:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
2011/1/3 Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-01-03 11:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-03 9:32 \pagenumber geeft altijd 1 Cecil Westerhof
2011-01-03 10:46 ` Wolfgang Schuster
2011-01-03 10:53 ` Cecil Westerhof
2011-01-03 10:57 ` Wolfgang Schuster
2011-01-03 11:10 ` Cecil Westerhof
2011-01-03 10:54 ` Jaroslav Hajtmar
2011-01-03 10:57 ` Jaroslav Hajtmar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).