Tigran
November 12, 2021, 10:07am
1
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
Additional information
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
Tigran
November 12, 2021, 2:44pm
3
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:
Tigran
November 12, 2021, 3:10pm
4
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.
Tigran
November 12, 2021, 8:37pm
6
Yes, thank you, I have reproduced it with the live editor at https://decadroid.github.io/mathjax-live-editor/ and added this screenshot
will be fixed in obsidian v0.15.0
system
Closed
June 6, 2022, 3:48pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.