Skip to content

MJ4.0.0-beta.4: \rm in subscript yields Math input error #3184

@AlexEdgcomb

Description

@AlexEdgcomb

Issue Summary

\rm in the subscript yields Math input error in beta.4, but not beta.3 and earlier

Steps to Reproduce:

  1. Go to https://codepen.io/alexedgcomb/pen/BabMpmG
    Observed: \(a_\rm{b}\) yields `Math input error
image

Expected: No such error, like in 4.0.0-beta.3
https://codepen.io/alexedgcomb/pen/QWoYdOR
image

Technical details:

  • MathJax Version: 4.0.0-beta.4
  • Client OS: MacOS 13.4
  • Browser: Firefox 122 and Chrome 121

I am not using a MathJax configuration and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/[email protected]/tex-mml-svg.js"></script>

Supporting information:

Interestingly, the following typeset as expected:

  • \(\rm{b}\): So, not just a bad \rm
  • \(a_\textrm{b}\): So, not just a bad subscript followed by command

Repro steps:

  1. Go to https://codepen.io/alexedgcomb/pen/QWoYdOR
    Observed:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions