[NTG-context] PageNumber in MetaFun

Marco Patzer lists at homerow.info
Wed Mar 2 13:05:46 CET 2022


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


More information about the ntg-context mailing list