mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-16 00:08:39 +00:00
Summary: Follow the instructions in the TeX book for drawing \overlines. This uses the same code as fractions to produce the bars. Also added the ability to cramp styles (i.e. T -> T' and T' -> T'). Test Plan: - Look at `\overline{x}`, `\overline{\dfrac{x}{y}+z}`, and `\blue{\overline{x}}` to make sure they look good. - Make sure the tests work - Make sure the huxley tests look good (Not here yet :( ) Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D11604
110 lines
3.2 KiB
JSON
110 lines
3.2 KiB
JSON
[
|
|
{
|
|
"name": "BasicTest",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=a"
|
|
},
|
|
|
|
{
|
|
"name": "FractionTest",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\dfrac{a}{b}\\frac{a}{b}\\tfrac{a}{b}"
|
|
},
|
|
|
|
{
|
|
"name": "NestedFractions",
|
|
"screenSize": [1024, 768],
|
|
"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}}"
|
|
},
|
|
|
|
{
|
|
"name": "Exponents",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=a^{a^a_a}_{a^a_a}"
|
|
},
|
|
|
|
{
|
|
"name": "Colors",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\blue{a}\\color{%230f0}{b}\\color{red}{c}"
|
|
},
|
|
|
|
{
|
|
"name": "GreekLetters",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\alpha\\beta\\gamma\\omega"
|
|
},
|
|
|
|
{
|
|
"name": "Baseline",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=a+b-c\\cdot d/e"
|
|
},
|
|
|
|
{
|
|
"name": "Spacing",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=^3+[-1][1-1]1=1(=1)\\lvert a\\rvert~b"
|
|
},
|
|
|
|
{
|
|
"name": "Functions",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\sin\\cos\\tan\\ln\\log"
|
|
},
|
|
|
|
{
|
|
"name": "Sizing",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m={\\Huge x}{\\LARGE y}{\\normalsize z}{\\scriptsize w}"
|
|
},
|
|
|
|
{
|
|
"name": "SizingBaseline",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m={\\tiny a+b}a+b{\\Huge a+b}&pre=x&post=M"
|
|
},
|
|
|
|
{
|
|
"name": "Text",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\frac{a}{b}\\text{c~ {ab} \\ e}+fg"
|
|
},
|
|
|
|
{
|
|
"name": "KaTeX",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\KaTeX"
|
|
},
|
|
|
|
{
|
|
"name": "RlapBug",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\frac{\\rlap{x}}{2}"
|
|
},
|
|
|
|
{
|
|
"name": "SupSubCharacterBox",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=a_2f_2{f}_2{aa}_2{af}_2"
|
|
},
|
|
|
|
{
|
|
"name": "Lap",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=ab\\llap{f}cd\\rlap{g}h"
|
|
},
|
|
|
|
{
|
|
"name": "DelimiterSizing",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\bigl\\uparrow\\Bigl\\downarrow\\biggl\\updownarrow\\Biggl\\Uparrow\\Biggr\\Downarrow\\biggr\\langle\\Bigr\\}\\bigr\\rfloor"
|
|
},
|
|
|
|
{
|
|
"name": "Overline",
|
|
"screenSize": [1024, 768],
|
|
"url": "http://localhost:7936/test/huxley/test.html?m=\\overline{x}\\overline{x}\\overline{x^{x^{x^x}}} \\blue\\overline{y}"
|
|
}
|
|
]
|