Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2894
Closed
Open
Issue created Jul 04, 2022 by hbghlyj@hbghlyj

Negative numbers in MathML output has wrong spacing in Firefox

Is your feature request related to a problem? Please describe. (-1) and ({-1}) render the same in in MathJax image but the output MathML render differently in Firefox image

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mo stretchy="false">(</mo>
  <mo>−</mo>
  <mn>1</mn>
  <mo stretchy="false">)</mo>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mo stretchy="false">(</mo>
  <mrow data-mjx-texclass="ORD">
    <mo>−</mo>
    <mn>1</mn>
  </mrow>
  <mo stretchy="false">)</mo>
</math>

Similar problem for |-1| and |{-1}| : In MathJax: image

Output MathML rendered in Firefox: image

Similar problem for ordered triples (2,-3,5) and (2,{-3},5) : In MathJax: image

Output MathML rendered in Firefox: image

Describe the solution you'd like Add form="prefix" to <mo>−</mo>

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mo stretchy="false">(</mo>
  <mo form="prefix">−</mo>
  <mn>1</mn>
  <mo stretchy="false">)</mo>
</math>

Or, add inferred mrow ?

Describe alternatives you've considered It would be good to produce <mn>-1</mn> rather than <mo>-</mo><mn>1</mn>.

Additional context Windows 11 FireFox 102.0a1 (2022-05-28) (64-bit) MathJax v3.2.2

Assignee
Assign to
Time tracking