Rewrite Rulesbase/not-equals-to-neq

base/not-equals-to-neq

Rewrite \not followed by an equals sign to the canonical \neq character.

Rewrite patterns#

  1. \not=\neq

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

Equals#

Before

a\not=b

After this rule

a\neq b

Rendering verified with the declared packages.

Same family#

Notes#

Uses the exact MathJax not_remap entry U+003D -> U+2260 rather than a generic negation-name guess. The zero-argument not command and the following bare equals Char must occupy the same Root or Group child slot. Scripted, arguments, unknown nodes, Error, Environment, and cross-slot content fail closed. Consume not and the equals atomically. Every Applied result removes the matched cmd:not node and its equals sibling; all other shapes return Skipped, so the number of eligible cmd:not nodes strictly decreases.

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/not-equals-to-neq"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/not-equals-to-neq'] })

Open in Playground