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

exponentialE in math-ml #1803

Closed
kubaPod opened this issue Jan 28, 2023 · 1 comment
Closed

exponentialE in math-ml #1803

kubaPod opened this issue Jan 28, 2023 · 1 comment

Comments

@kubaPod
Copy link

kubaPod commented Jan 28, 2023

Description

\exponentialE is not converted to math-ml well

Steps to Reproduce

e e ^ 2 produces \exponentialE^2 (stringified it shows "\\exponentialE^2") yet

mathlive.convertLatexToMathMl("\\exponentialE^2") // or mf.getValue('math-ml')
<msup><mn>2</mn></msup>

on the other hand

mathlive.convertLatexToMathMl("\exponentialE^2")
<msup>exponentialE<mn>2</mn></msup>

which is better but weird that \e is used, either way something is off.

Additionally it should be something more standard thatn exponentialE in mathml, e.g. Mathematica produces:

<msup>
  <mi>&#8519;</mi>
  <mn>2</mn>
 </msup>

And I just found &ExponentialE; in https://www.w3.org/TR/REC-MathML/chap4_1.html

Expected Behavior

I am not a LaTeX expert so correct me if I am wrong but I'd expect:

mathlive.convertLatexToMathMl("\\exponentialE^2") 
<msup>
  <mi>&ExponentialE;</mi>
  <mn>2</mn>
 </msup>

Environment

MathLive version 0.87.1

Operating System Window 10

Browser Chrome

@kubaPod
Copy link
Author

kubaPod commented Jan 30, 2023

I will post a separate issue later but this seems to be related:

mathlive.convertLatexToMathMl("x^2")
<msup>x<mn>2</mn></msup>

Shouldn't it be <mi>x</mi>?

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

No branches or pull requests

1 participant