Integration of MathJax, KaTeX and Asymptote with scribble, to typeset math in Racket documentation
Go to file
Emily Eisenberg c3f758c319 Add support for \left and \right
Summary:
Added stacked delimiter support for more delimiters. Split out delimiter
functions into its own file, and split out some tree building functions into a
common file. Supports the empty `.` delimiter with \left and \right, and doesn't
try to produce huge /, \backslash, <, or > delimiters. Depends on D7844

Test input:

\left( \left) \left[ \left\lbrack \left] \left\rbrack \left\{ \left\lbrace
\left\} \left\rbrace \left\lfloor \left\rfloor \left\lceil \left\rceil
\left\langle \left\rangle \left/ \left\backslash \left| \left\vert \left\|
\left\Vert \left\uparrow \left\Uparrow \left\downarrow \left\Downarrow
\left\updownarrow \left\Updownarrow {x^{x^{x^{x^{x^{x^{x^{x^{x^{x^x}}}}}}}}}}
\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.
\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.
\right.\right.\right.\right.\right.\right.\right.\right.

Test Plan:
 - Run the test input, see that it works
 - Run the tests, see that they work
 - Look at huxley screenshots (not here yet :( ) and make sure they look good

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D11602
2014-09-04 21:58:43 -07:00
build Add a setup rule to Makefile 2013-07-30 13:54:43 -07:00
dockers/MathJaxFonts Fix the docker command 2014-08-30 22:42:26 -07:00
metrics Add support for \left and \right 2014-09-04 21:58:43 -07:00
static Add support for \left and \right 2014-09-04 21:58:43 -07:00
test Add support for \left and \right 2014-09-04 21:58:43 -07:00
.arcconfig Rename everything to KaTeX 2013-07-10 14:08:50 -07:00
.gitignore Somehow manage to fix the sizing bugs 2014-03-20 21:36:37 -04:00
buildCommon.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
buildTree.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
delimiter.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
domTree.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
fontMetrics.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
katex.js Empty the output element before parsing the input 2013-11-12 14:09:13 -08:00
Lexer.js Add the '\rule' command for drawing boxes 2014-08-29 14:45:27 -07:00
LICENSE.txt Add MIT License 2014-01-31 17:47:12 -08:00
Makefile Update metrics using TeX metrics instead of TTF metrics 2014-09-03 20:12:00 -07:00
Options.js Fix font sizing issues 2014-08-27 01:12:15 -07:00
package.json Basic perceptual diffing support for KaTeX 2014-01-29 16:29:21 -08:00
ParseError.js Make errors more informative 2014-03-30 23:05:37 -04:00
Parser.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
parseTree.js Remove Parser options usage 2013-07-13 18:15:17 -07:00
README.md Add "http://" to links in README 2014-02-18 17:34:30 -08:00
server.js Compile .less on demand for test page 2014-03-20 20:22:07 -07:00
Style.js Add support for \left and \right 2014-09-04 21:58:43 -07:00
symbols.js Add delimiter sizing 2014-08-05 16:43:43 -07:00
utils.js Don't change global prototype: local utils.indexOf 2014-01-14 19:52:53 -08:00

KaTeX

Fast math!

To run locally

make setup
make serve

Perceptual diff

make pdiff

License

MIT License