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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to