Wrong rendering of \overset{}

Steps to reproduce

Enter the line:

$$\overset{\leftarrow}{a}\overset{\rightarrow}{b}$$

Expected result

The result should have the same size of the left and right arrows.

Actual result

The left arrow is much longer, than the right one.

Environment

• Operating system: Linux
• Obsidian version: 0.12.19

This is how it looks:

And this is how it should look, see formula 9 (from my website at http://quantuminfodynamics.com/

This is probably an upstream issue of MathJax library. I would suggest to report it directly to the MathJax issue tracker.

Concerning you use case example I would suggest using \overleftarrow and \overrightarrow instead:

$$\overleftarrow{a}\overrightarrow{b}$$

1 Like

Thank you, I will report it there. Your suggestion definitely improves the situation, but it is still not perfect, because the arrows are not at the same level vertically, see screenshot below:

However, for my specific case the two operands are the same height vertically (unlike the letters “a” and “b” above), so your suggested solution is acceptable, i.e. the height difference is not too bad:

Reported on MathJax: https://github.com/mathjax/MathJax/issues/2800

Please when you file bug reports upstream try to reproduce the problem with the upstream distribution first (they have a live editor).

The mathjax developer may be willing to fix mathjax’s problem but not Obsidian’s.

Yes, thank you, I have reproduced it with the live editor at https://decadroid.github.io/mathjax-live-editor/ and added this screenshot