Skip to content

Commit 9f14997

Browse files
committed
Make \overline{\lim_{x}} have correct spacing for overline with Firefox. Issue #490.
1 parent b30c8f2 commit 9f14997

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unpacked/jax/input/TeX/jax.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,8 +1430,10 @@
14301430
var pos = {o: "over", u: "under"}[name.charAt(1)];
14311431
var base = this.ParseArg(name);
14321432
if (base.Get("movablelimits")) {base.movablelimits = false}
1433-
if (base.isa(MML.munderover) && base.isEmbellished())
1434-
{base = MML.mrow(MML.mo().With({rspace:0}),base)} // add an empty <mi> so it's not embellished any more
1433+
if (base.isa(MML.munderover) && base.isEmbellished()) {
1434+
base.Core().With({lspace:0,rspace:0}); // get spacing right for NativeMML
1435+
base = MML.mrow(MML.mo().With({rspace:0}),base); // add an empty <mi> so it's not embellished any more
1436+
}
14351437
var mml = MML.munderover(base,null,null);
14361438
mml.SetData(
14371439
mml[pos],

0 commit comments

Comments
 (0)