Integration of MathJax, KaTeX and Asymptote with scribble, to typeset math in Racket documentation
Go to file
Emily Eisenberg 387c159a8e Add sizing functions (like \small)
Summary:
Right now, when the size gets bigger, this still doesn't work, so there's a
check to prevent that. However, functions that go smaller (like `\small`,
`\tiny`, etc) do work. Also, we can't seem to use the sizing functions inside
of fractions (so something like `\dfrac{\small\frac{x}{y}}{z}` doesn't work).
However, the most prominent use case is `\small` as the outer-most object, so
this is still helpful. This commit has the parsing and stuff to handle all of
it, but it'll throw an error if you try to do something that doesn't work. (For
the record, "doesn't work" means "looks bad", not "throws an unexpected
error").

Test Plan:
Make sure things like `\small x` work, and things like `\Huge x` and
`\frac{\small x}{y}` don't.

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D3619
2013-08-21 20:22:24 -07:00
build Add a setup rule to Makefile 2013-07-30 13:54:43 -07:00
static Add sizing functions (like \small) 2013-08-21 20:22:24 -07:00
test Make supsub work with empty nucleus 2013-08-17 16:14:06 -07:00
.arcconfig Rename everything to KaTeX 2013-07-10 14:08:50 -07:00
.gitignore Rewrite the parser 2013-07-12 23:16:30 -07:00
buildTree.js Add sizing functions (like \small) 2013-08-21 20:22:24 -07:00
domTree.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
fontMetrics.js Add some AMS characters 2013-08-14 17:39:24 -07:00
katex.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
Lexer.js Always throw real ParseErrors 2013-07-28 17:54:41 -07:00
Makefile Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
metric_parse.rb Add some AMS characters 2013-08-14 17:39:24 -07:00
Options.js Add sizing functions (like \small) 2013-08-21 20:22:24 -07:00
package.json Oops, forgot about commas 2013-08-13 18:27:42 -07:00
ParseError.js Make ParseErrors differentiable from other Errors 2013-07-22 14:46:13 -07:00
Parser.js Add sizing functions (like \small) 2013-08-21 20:22:24 -07:00
parseTree.js Remove Parser options usage 2013-07-13 18:15:17 -07:00
server.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
Style.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
utils.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00