Skip to content

Support the \not negation command #233

Closed

Description

CSharpMath does not implement LaTeX's \not command. On current master, both \not\in and \not= fail to parse.

This issue now tracks only negating the following relation with \not. The other commands from the original report have been triaged separately:

Acceptance criteria:

  • \not=, \not\in, and representative built-in relations render as negated relations.
  • The implementation works for both a literal relation character and a relation command.
  • Parsing and serialization have regression tests.
  • Unsupported targets produce a useful parser error instead of silently rendering the wrong expression.

The adjacent-punctuation tokenizer defect affecting \not= is tracked by #182.

Activity

  1. ghost added
    Type/Bug
    on Mar 26, 2024
  2. Happypig375 commented on Mar 26, 2024

    @Happypig375
    Collaborator

    This is a feature request, not a bug.

  3. added
    Type/Enhancement
    and removed
    Type/Bug
    on Mar 26, 2024
  4. changed the title [-]Invalid commands[/-] [+]Support the \not negation command[/+] on Aug 30, 2026
  5. Happypig375 commented on Aug 30, 2026

    @Happypig375
    Collaborator

    Current-master validation: aligned and eqnarray parse successfully; \overleftarrow, \overrightarrow, \dfrac, \udots, and \not still do not. I narrowed this issue to the reporter's stated priority, \not. The over-arrows remain in #185, and \dfrac/\udots have moved to #81 so no request was lost.

  6. added
    Area/Parsing
    Area/Rendering
    on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area/ParsingArea/RenderingType/Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions