mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
* \kern generates padding instead of margin. Fix #995 * Switch to marginRight * Add screenshot tests
This commit is contained in:
committed by
Kevin Barabash
parent
7702ffa5b6
commit
d822f04b9b
@@ -48,7 +48,7 @@ defineFunction({
|
|||||||
|
|
||||||
if (group.value.dimension) {
|
if (group.value.dimension) {
|
||||||
const dimension = calculateSize(group.value.dimension, options);
|
const dimension = calculateSize(group.value.dimension, options);
|
||||||
rule.style.marginLeft = dimension + "em";
|
rule.style.marginRight = dimension + "em";
|
||||||
}
|
}
|
||||||
|
|
||||||
return rule;
|
return rule;
|
||||||
|
BIN
test/screenshotter/images/ModSpacing-chrome.png
Normal file
BIN
test/screenshotter/images/ModSpacing-chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
test/screenshotter/images/ModSpacing-firefox.png
Normal file
BIN
test/screenshotter/images/ModSpacing-firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@@ -173,6 +173,12 @@ ModScript: |
|
|||||||
\scriptstyle a\bmod 2 & \scriptstyle b \pod 3 \\
|
\scriptstyle a\bmod 2 & \scriptstyle b \pod 3 \\
|
||||||
\scriptstyle c\pmod{4} & \scriptstyle d \mod{56}
|
\scriptstyle c\pmod{4} & \scriptstyle d \mod{56}
|
||||||
\end{array}
|
\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
|
NegativeSpaceBetweenRel: A =\!= B
|
||||||
NestedFractions: |
|
NestedFractions: |
|
||||||
\dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}
|
\dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}
|
||||||
|
Reference in New Issue
Block a user