ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: imposition: getting to the last page of a booklet
Date: Wed, 6 Mar 2024 22:06:43 +0100	[thread overview]
Message-ID: <6af3721a-033d-a75d-8de2-f83e0e0c0de8@gmail.com> (raw)
In-Reply-To: <a25db9d5-0410-47ae-ab7a-a1eeb1ab9224@xs4all.nl>

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	other threads:[~2024-03-06 21:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23  9:07 [NTG-context] " Michael Guravage
2024-02-24 13:30 ` [NTG-context] " Wolfgang Schuster
2024-02-27 10:13   ` Pablo Rodriguez via ntg-context
2024-02-28 10:56     ` Bruce Horrocks
2024-02-28 11:24       ` Pablo Rodriguez via ntg-context
2024-02-28 18:02         ` Pablo Rodriguez via ntg-context
2024-02-28 18:28           ` Wolfgang Schuster
2024-03-04 19:00             ` Pablo Rodriguez via ntg-context
2024-03-06 18:50               ` Wolfgang Schuster
2024-03-06 19:17                 ` Pablo Rodriguez via ntg-context
2024-03-07 15:36                   ` Wolfgang Schuster
2024-03-06 20:38                 ` Hans Hagen
2024-03-06 21:06                   ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6af3721a-033d-a75d-8de2-f83e0e0c0de8@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).