Skip to content

Missing spaces around the \perp symbol in Mathjax v4 #3441

@c-forrest

Description

@c-forrest

Issue Summary

The spacing around the \perp symbol is incorrect in Mathjax v4 — it appears too tight compared to expected LaTeX behavior.

Steps to Reproduce

  1. Open the MathJax live demo.

  2. Enter:

    $a \perp b$
  3. Observe the rendered output:

Image

Expected Behavior

In MathJax v3 (and in LaTeX), \perp is treated as a relation symbol (REL) (according to some unofficial TeX syntax notes), so extra spacing is inserted around it:

Image

Possible Cause

In the HTML output, \perp is currently classified as ORD, resulting in missing relational spacing:

<mjx-texatom data-mjx-texclass="ORD" texclass="ORD">
  <mjx-mo data-latex="\perp" ... data-semantic-operator="infixop,⟂"></mjx-mo>
</mjx-texatom>

It looks like MathJax may be handling \perp the same way as \bot, classifying it as ORD instead of REL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundMergedMerged into develop branchv4

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions