mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-17 16:58:41 +00:00
Summary: In rule 18a. of the TeX book, it says we're supposed to set `u` and `v` to 0 if the nucleus is a character box. Character boxes are loosely defined, but through experimentation they are anything that contains a single character, including ordgroups with a single element in them. This change makes KaTeX follow this rule, and fixes T2404. Test Plan: - Make sure the new huxley screenshot looks good - Make sure none of the huxley tests have changed Reviewers: alpert Reviewed By: alpert Maniphest Tasks: T2404 Differential Revision: http://phabricator.khanacademy.org/D8275
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
[BasicTest]
|
|
url=http://localhost:7936/test/huxley/test.html?m=a
|
|
|
|
[FractionTest]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\dfrac{a}{b}\frac{a}{b}\tfrac{a}{b}
|
|
|
|
[NestedFractions]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\dfrac{\frac{a}{b}}{\frac{c}{d}}\dfrac{\dfrac{a}{b}}{\dfrac{c}{d}}\frac{\frac{a}{b}}{\frac{c}{d}}
|
|
|
|
[Exponents]
|
|
url=http://localhost:7936/test/huxley/test.html?m=a^{a^a_a}_{a^a_a}
|
|
|
|
[Colors]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\blue{a}\color{%%230f0}{b}\color{red}{c}
|
|
|
|
[GreekLetters]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\alpha\beta\gamma\omega
|
|
|
|
[Baseline]
|
|
url=http://localhost:7936/test/huxley/test.html?m=a+b-c\cdot d/e
|
|
|
|
[Spacing]
|
|
url=http://localhost:7936/test/huxley/test.html?m=^3+[-1][1-1]1%%3D1(%%3D1)\lvert a\rvert~b
|
|
|
|
[Functions]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\sin\cos\tan\ln\log
|
|
|
|
[Lap]
|
|
url=http://localhost:7936/test/huxley/test.html?m=ab\llap{f}cd\rlap{g}h
|
|
|
|
[Sizing]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\Huge{x}\LARGE{y}\normalsize{z}\scriptsize{w}
|
|
|
|
[SizingBaseline]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\tiny{a+b}a+b\Huge{a+b}&pre=x&post=M
|
|
|
|
[Text]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\frac{a}{b}\text{c~ {ab} \ e}+fg
|
|
|
|
[KaTeX]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\KaTeX
|
|
|
|
[RlapBug]
|
|
url=http://localhost:7936/test/huxley/test.html?m=\frac{\rlap{x}}{2}
|
|
|
|
[SupSubCharacterBox]
|
|
url=http://localhost:7936/test/huxley/test.html?m=a_2f_2{f}_2{aa}_2{af}_2
|