* PageNumber in MetaFun
@ 2022-03-02 12:05 Marco Patzer via ntg-context
2022-03-02 12:15 ` Thomas A. Schmitz via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer via ntg-context @ 2022-03-02 12:05 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Marco Patzer
Hi!
Has something changed regarding PageNumber? Take the following
example:
\starttext
foo\page
\startMPcode
if PageNumber==1:
fill unitsquare scaled 1cm;
elseif PageNumber==2:
fill fullcircle scaled 2cm;
fi
\stopMPcode
\stoptext
LMTX 2022.01.21 20:13 produces a rectangle on page 2, an older MkIV
produces a circle on page 2. Is this expected behaviour?
Marco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PageNumber in MetaFun
2022-03-02 12:05 PageNumber in MetaFun Marco Patzer via ntg-context
@ 2022-03-02 12:15 ` Thomas A. Schmitz via ntg-context
2022-03-02 14:00 ` Marco Patzer via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Thomas A. Schmitz via ntg-context @ 2022-03-02 12:15 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
On 3/2/22 13:05, Marco Patzer via ntg-context wrote:
> LMTX 2022.01.21 20:13 produces a rectangle on page 2, an older MkIV
> produces a circle on page 2. Is this expected behaviour?
>
> Marco
This has changed some time ago; try "RealPageNumber" instead of
"PageNumber."
Thomas
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PageNumber in MetaFun
2022-03-02 12:15 ` Thomas A. Schmitz via ntg-context
@ 2022-03-02 14:00 ` Marco Patzer via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Marco Patzer via ntg-context @ 2022-03-02 14:00 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Marco Patzer
On Wed, 2 Mar 2022 13:15:18 +0100
"Thomas A. Schmitz via ntg-context" <ntg-context@ntg.nl> wrote:
> try "RealPageNumber" instead of "PageNumber."
That works. Thanks for the quick reply.
Marco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-02 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 12:05 PageNumber in MetaFun Marco Patzer via ntg-context
2022-03-02 12:15 ` Thomas A. Schmitz via ntg-context
2022-03-02 14:00 ` Marco Patzer via ntg-context
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).