Skip to content

suppress errors about multiple sub/superscripts? #3196

Open
@hbghlyj

Description

@hbghlyj

Is your feature request related to a problem? Please describe.
Similar question to Is there a way to override LaTeX's errors about double subscripts and superscripts?

When one writes

a^b^c, a_b_c

or

a^b'

MathJax gives an error message complaining about multiple super/subscripts.

Is there a way to override the error and have MathJax output

a^{bc} a_{bc} {a^b}'  

Describe the solution you'd like
Is there a way to redefine ^ and _ to append an empty {}? like in LaTeX:

\catcode`\^ = 13 \def^#1{\sp{#1}{}}
\catcode`\_ = 13 \def_#1{\sb{#1}{}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code ExampleContains an illustrative code example, solution, or work-aroundQuestionv3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions