Merge pull request #490 from cbreeden/Fix#488-supsub-alignment
Fix #488 Subsup alignments
This commit is contained in:
commit
26f06754e7
|
@ -376,8 +376,9 @@ groupTypes.supsub = function(group, options, prev) {
|
||||||
supsub.children[1].style.marginRight = scriptspace;
|
supsub.children[1].style.marginRight = scriptspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We ensure to wrap the supsub vlist in a span.msupsub to reset text-align
|
||||||
return makeSpan([getTypeOfGroup(group.value.base)],
|
return makeSpan([getTypeOfGroup(group.value.base)],
|
||||||
[base, supsub]);
|
[base, makeSpan(["msupsub"], [supsub])]);
|
||||||
};
|
};
|
||||||
|
|
||||||
groupTypes.genfrac = function(group, options, prev) {
|
groupTypes.genfrac = function(group, options, prev) {
|
||||||
|
|
BIN
test/screenshotter/images/SupSubLeftAlignReset-chrome.png
Normal file
BIN
test/screenshotter/images/SupSubLeftAlignReset-chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
test/screenshotter/images/SupSubLeftAlignReset-firefox.png
Normal file
BIN
test/screenshotter/images/SupSubLeftAlignReset-firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
|
@ -106,6 +106,8 @@ SqrtRoot: |
|
||||||
SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2
|
SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2
|
||||||
SupSubHorizSpacing: |
|
SupSubHorizSpacing: |
|
||||||
x^{x^{x}}\Big|x_{x_{x_{x_{x}}}}\bigg|x^{x^{x_{x_{x_{x_{x}}}}}}\bigg|
|
x^{x^{x}}\Big|x_{x_{x_{x_{x}}}}\bigg|x^{x^{x_{x_{x_{x_{x}}}}}}\bigg|
|
||||||
|
SupSubLeftAlignReset: |
|
||||||
|
\omega^8_{888} \quad \frac{1}{\hat{\omega}^{8}_{888}} \quad \displaystyle\sum_{\omega^{8}_{888}}
|
||||||
SupSubOffsets: \displaystyle \int_{2+3}x f^{2+3}+3\lim_{2+3+4+5}f
|
SupSubOffsets: \displaystyle \int_{2+3}x f^{2+3}+3\lim_{2+3+4+5}f
|
||||||
Text: \frac{a}{b}\text{c~ {ab} \ e}+fg
|
Text: \frac{a}{b}\text{c~ {ab} \ e}+fg
|
||||||
UnsupportedCmds:
|
UnsupportedCmds:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user