Files
KaTeX/test/huxley/Huxleyfile
Emily Eisenberg d729ba5281 Add a \color command for custom colors
Summary:
Keep track of the color inside the style now, and use that when we are
rendering things. Added a custom lexing mode to handle lexing colors correctly.
Prefixed the old katex colors (internally) with "katex-" to distinguish them
from CSS colors.

Test Plan:
 - Run the normal tests, see they work
 - Run the huxley tests, see that they didn't change except for the color one
   which looks right

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D7763
2014-03-27 12:34:45 -04:00

42 lines
1.3 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=[-1][1-1]1%%3D1(%%3D1)\lvert a\rvert
[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