\kern generates right-margin instead of left-margin. Fix #995 (#1019)

* \kern generates padding instead of margin. Fix #995

* Switch to marginRight

* Add screenshot tests
This commit is contained in:
Erik Demaine
2017-12-28 22:03:08 -08:00
committed by Kevin Barabash
parent 7702ffa5b6
commit d822f04b9b
4 changed files with 7 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ defineFunction({
if (group.value.dimension) {
const dimension = calculateSize(group.value.dimension, options);
rule.style.marginLeft = dimension + "em";
rule.style.marginRight = dimension + "em";
}
return rule;

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -173,6 +173,12 @@ ModScript: |
\scriptstyle a\bmod 2 & \scriptstyle b \pod 3 \\
\scriptstyle c\pmod{4} & \scriptstyle d \mod{56}
\end{array}
ModSpacing: |
\begin{array}{l}
(a \cdot b) \bmod 257 \\
(a \cdot b) \mkern1mu\mathbin{\mathrm{mod}}\mkern1mu 257 \\
(a \cdot b) \mathbin{\mathrm{mod}} 257
\end{array}
NegativeSpaceBetweenRel: A =\!= B
NestedFractions: |
\dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}