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

Rendering tilde above the character in latexmath #42

Open
anermina opened this issue Apr 22, 2022 · 1 comment
Open

Rendering tilde above the character in latexmath #42

anermina opened this issue Apr 22, 2022 · 1 comment

Comments

@anermina
Copy link

Tilde symbol gets rendered before the character, instead over it when using latexmath.

Original:
image

Generated:
image

Hat and bar are generated correctly, while the issue is also present with dot and ddot.

Example:

[latexmath%unnumbered]
++++
\tilde{\tilde{x}} + \dot{b} + \bar{d} + \hat{g} + \tilde{m} + \ddot{s}
++++

image

Originally posted in https://github.com/metanorma/iso-10303-detached-docs/issues/108

@opoudjis
Copy link
Contributor

We are translating LaTeX into MathML as our standard representation, so the issue here is bad translation into MathML. \tilde{\tilde{x}} (which is a double tilde) is being translated as the horrifically naive:

<mrow><mi>̃</mi><mrow><mi>̃</mi><mrow><mi>x</mi></mrow></mrow>

i.e. tilde followed by x. Hat and bar are the only instances parsed as accents, and even they aren't parsed satisfactorily:

<mover><mrow><mi>d</mi></mrow><mo stretchy="true">¯</mo></mover>

<mover accent="true"><mi>g</mi><mo stretchy="false">̂</mo></mover

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

2 participants