Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscripts do not seem to output MathML correctly #534

Closed
johnhbenetech opened this issue Jul 7, 2020 · 2 comments
Closed

Subscripts do not seem to output MathML correctly #534

johnhbenetech opened this issue Jul 7, 2020 · 2 comments
Assignees
Labels

Comments

@johnhbenetech
Copy link

Description

When entering a subscript into mathlive or mathshare's implementation of mathlive (using something like 2_3 for instance) - the MathML generated in the sr-only span does not include the subscript.

Actual behavior

Resulting MathML only includes the main entry and omits the subscript

Expected Behavior

Resulting MathML should include msub element and content in the appropriate location

@johnhbenetech johnhbenetech changed the title Subscripts do not seem to output correctly Subscripts do not seem to output MathML correctly Jul 7, 2020
@timtsm
Copy link

timtsm commented Oct 23, 2020

Subscripts are reported in mathml if they are on letters. In addition to numbers, close parentheses and + signs, among others, don't report subscripts in mathml. Close parentheses, \imaginaryI, and \exponentialE (and + signs) also don't report superscripts, making (a+b)^2 the same as (a+b), i^2 the same as i, e^x just e (when i and e are the \imaginaryI and \exponentialE forms--regular letters i and e work), etc.

@timtsm
Copy link

timtsm commented Oct 23, 2020

Oh, and a_x^2 (or a^2_x) is reported in mathml as a^2 (a can be any other letter as far as I can see).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants