ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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).