Hans Hagen schrieb am 06.03.2024 um 21:38:
On 3/6/2024 7:50 PM, Wolfgang Schuster wrote:
The semicolon is a undocumented extension (I noticed it in the definition of \page[quadruple]) of \numexpr in Luametatex for the modulus operator.
One of these days I have to write the pending section in th elow level manual and also explain this:
\starttext \ifnum 10 = 11 wrong \else okay \fi \ifnum 10 != 11 okay \else wrong \fi \ifnum 10 !> 11 okay \else wrong \fi \ifnum 10 !< 11 wrong \else okay \fi \ifnum 10 ≤ 11 okay \else wrong \fi \ifnum 10 ≥ 11 wrong \else okay \fi \ifnum 10 ≰ 11 okay \else wrong \fi \ifnum 10 ≱ 11 wrong \else okay \fi \ifnum "F0 ∈ "F0 okay \else wrong \fi \ifnum "F0 ∉ "F0 wrong \else okay \fi \stoptext
These new features are mentioned in the Luametatex manual but not the additions to \numexpr (I checked and : is mentioned but ; is missing). \starttext \startlines \number\numexpr 5 + 2 \relax \number\numexpr 5 - 2 \relax \number\numexpr 5 * 2 \relax \number\numexpr 5 / 2 \relax \number\numexpr 5 : 2 \relax % new! \number\numexpr 5 ; 2 \relax % new! \stoplines \stoptext Wolfgang