mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-16 00:08:39 +00:00
Add style changing functions
Summary: Add \displaystyle, \textstyle, \scriptstyle, and \scriptscriptstyle commands. Added tests and huxley screenshots for everything that looks different in displaystyle vs normal style. Fixes #24. Test Plan: - See new tests work, and old tests still work - See no huxley screenshots changed, and new screenshot looks good Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D13079
This commit is contained in:
@@ -159,5 +159,11 @@
|
||||
"name": "Sqrt",
|
||||
"screenSize": [1024, 768],
|
||||
"url": "http://localhost:7936/test/huxley/test.html?m=\\sqrt{\\sqrt{\\sqrt{x}}}_{\\sqrt{\\sqrt{x}}}^{\\sqrt{\\sqrt{\\sqrt{x}}}^{\\sqrt{\\sqrt{\\sqrt{x}}}}}"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "DisplayStyle",
|
||||
"screenSize": [1024, 768],
|
||||
"url": "http://localhost:7936/test/huxley/test.html?m={\\displaystyle\\sqrt{x}}{\\sqrt{x}}{\\displaystyle \\frac12}{\\frac12}{\\displaystyle x^1_2}{x^1_2}"
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user