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

MathJSON from Integral with \limits #153

Open
kungfooman opened this issue Mar 14, 2024 · 0 comments
Open

MathJSON from Integral with \limits #153

kungfooman opened this issue Mar 14, 2024 · 0 comments

Comments

@kungfooman
Copy link

Example TeX producing wrong output:

\int\limits_{-1}^{1}{\frac{1}{\sqrt{1-x^2}}\,{\mathrm{d}}x

Wrong output:

[
  "Sequence",
  ["Integrate", "Nothing", "Nothing"],
  [
    "Error",
    ["ErrorCode", "'unexpected-command'", "'\\limits'"],
    ["LatexString", "'\\limits'"]
  ]
]

This integral, which is basically the same without using \limits_ works however:

\int_{-1}^{1}\!{\frac{1}{\sqrt{1-x^2}}\,\mathrm{d}x

Output:

[
  "Integrate",
  ["Divide", 1, ["Sqrt", ["Subtract", 1, ["Square", "x"]]]],
  ["Triple", "x", -1, 1]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant