Merge pull request #581 from kohler/stylespacing

BUG FIX: Correct spacing next to symbols when styles switch.
This commit is contained in:
Kevin Barabash 2016-12-08 22:56:23 -05:00 committed by GitHub
commit 95f2f46bf5
4 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ var buildExpression = function(expression, options, isRealGroup) {
i--; i--;
} else if (spaces) { } else if (spaces) {
if (groups[i] instanceof domTree.symbolNode) { if (groups[i] instanceof domTree.symbolNode) {
groups[i] = makeSpan(groups[i].classes, [groups[i]]); groups[i] = makeSpan([].concat(groups[i].classes), [groups[i]]);
} }
buildCommon.prependChildren(groups[i], spaces); buildCommon.prependChildren(groups[i], spaces);
spaces = null; spaces = null;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -117,6 +117,7 @@ Sqrt: |
SqrtRoot: | SqrtRoot: |
1+\sqrt[3]{2}+\sqrt[1923^234]{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^2}}}}}}}}}}} 1+\sqrt[3]{2}+\sqrt[1923^234]{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^2}}}}}}}}}}}
StackRel: a \stackrel{?}{=} b \stackrel{\text{def}}{=} c StackRel: a \stackrel{?}{=} b \stackrel{\text{def}}{=} c
StyleSpacing: \scriptstyle ab\;cd
StyleSwitching: a\cdot b\scriptstyle a\cdot ba\textstyle\cdot ba\scriptstyle\cdot b StyleSwitching: a\cdot b\scriptstyle a\cdot ba\textstyle\cdot ba\scriptstyle\cdot b
SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2\mathbf{y}_Ay_A SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2\mathbf{y}_Ay_A
SupSubHorizSpacing: | SupSubHorizSpacing: |