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
  • #3017
Closed
Open
Issue created Mar 13, 2023 by Alex Edgcomb@AlexEdgcomb

MJ3 gives error "Missing open brace for subscript" for LaTeX without a braced subscript. MJ2 didn't

Issue Summary

MathJax 3 displays an error "Missing open brace for subscript" when trying to typeset \(1_\color{gray}{2}\), whereas MathJax 2 typesets without an error.

I suspect MJ3 intentionally gives the error, but perhaps MJ2 behavior is preferred.

Steps to Reproduce:

  1. Go to https://codepen.io/alexedgcomb/pen/BaOrKjW

Observed: Error for \(1_\color{gray}{2}\), but not \(1_{\color{gray}2}\) image

Expected: No error, like in MathJax 2 https://codepen.io/alexedgcomb/pen/bGxvpER

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: Mac OS 13.2.1
  • Browser: Firefox 110

I am NOT using a MathJax configuration and loading MathJax via

<script type="text/javascript" src="http://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-mml-svg.js"></script>

Supporting information:

MathJax 4 has the same error when typesetting as MJ3: https://codepen.io/alexedgcomb/pen/wvEmGMd

Assignee
Assign to
Time tracking