On 9/14/2026 5:22 PM, Aditya Mahajan wrote:
On Mon, 14 Sep 2026, Hans Hagen wrote:

On 9/14/2026 3:41 PM, Aditya Mahajan wrote:
On Sun, 13 Sep 2026, Hans Hagen via ntg-context wrote:

On 9/13/2026 5:25 AM, Aditya Mahajan wrote:
On Sat, 12 Sep 2026, Mikael Sundqvist wrote:

On Sat, 12 Sept 2026 at 16:33, Fabrice Couvreur
<[email protected]> wrote:

I don't know why the \not\subset symbol isn't correct ?

Try \nsubset. Or \subset\not, I guess the \not is some kind of modifier.

To me \rel\not is really atypical way to write the expression. Is there a
particular reason why the behavior was changed from \not\rel to \rel\not?

\showmakeup[mathglue]

\startTEXpage[offset=1ts]
      \scale[width=1tw]{\strut\im {
          a \rel\not b \nsubset c
      }}

      \tttf
      \blank[2*line] \meaningfull\rel
      \blank[2*line] \meaningfull\not
\stopTEXpage

so \rel ia a atom creator

Sorry, I was using \rel just as a placeholder for any binary relation.

If I understand, the rational is the following. Unicode (for better or
worse) decided that 0x338 (the glyph corresponding to \not) must come after
the binary relation; so if I type

0x3C + 0x338

it should show up as

0x226E

In ConTeXt, we map 0x3C to \le and 0x338 to \not. So, to be consistent with
unicode logic, we simply type \le\not and it gives us \nless. Is this
correct?

However, I wonder, if we can still have the equivalent of

\let\originalnot\not
\redefine[1]\not{#1\originalnot}

That way, if someone literally types 0x3C + 0x338, they will get the
behavior designed by unicode, but typing \not\le will still work "as
expected".

redefining \not is not possible because we protect all math character
definitions against overload

But, I can redefine \not!

\let\originalnot\not
\redefine[1]\not{#1\originalnot}

\startTEXpage[offset=1dk]
   \startlines
   $a \not\le b$
   $A \not\subset B$
   \stoplines
\stopTEXpage

but you can of course say

\protected\def\notso#1{#1\not\relax}

   \im {\notso \le}

and hope for th ebest with:

   \im {\notso}

but then, we have unicode math for a reason ...

I was actually suggesting changing 0x338 in char-def to

  {
   category="mn",
   cjkwd="a",
   combining=0x1,
   description="COMBINING LONG SOLIDUS OVERLAY",
   direction="nsm",
   linebreak="cm",
   mathclass="relation",
   mathname="unicodenot", -- AM: Change this
   synonyms={ "long slash overlay" },
   unicodeslot=0x338,
  },

And then define

\define[1]\not{#1\unicodenot}

But I understand your rationale for not wanting to do this. I need to relearn 
some old habits (and more importantly, document this behavior)

Do you run the latest greatest? More strict protection of math symbols was enabled when we notices redefinition-abuse a couple of months ago.

Btw, an example of undesired redefinition is \wedge in tikz which need to be fixed there as one wants that to be math. So that's a file that fails in the test suite.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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