17
$\begingroup$

According to some benchmarks, it seems that KaTeX renders latex much more faster than Mathjax.

Is there any chance to use KaTeX in place of Mathjax?

$\endgroup$
5
  • 8
    $\begingroup$ There has been some discussion at meta.math.stackexchange.com/questions/16809/… $\endgroup$ Sep 22, 2014 at 7:27
  • 1
    $\begingroup$ There are some concerns, as highlighted in the answers given to the post that Gerry linked to. I'm going to let one of our developers answer this, please be patient :) $\endgroup$
    – Tim Post
    Sep 22, 2014 at 9:32
  • 2
    $\begingroup$ Although the functionality is currently limited, it seems to be worth keeping an eye on. $\endgroup$
    – Todd Trimble Mod
    Sep 22, 2014 at 17:13
  • 2
    $\begingroup$ I marked this status-deferred for the two reasons I explained in my answer below. There seems to be no reasonable way to add KaTeX as a MathJax alternative on MO at this time. However, the issue could be revisited once KaTeX improves its functionality and starts offering support for their product. $\endgroup$ Sep 22, 2014 at 17:24
  • 4
    $\begingroup$ See also the discussion with the same title on PhysicsOverflow: physicsoverflow.org/23869/katex-vs-mathjax?show=23970#c23970 $\endgroup$
    – Dilaton
    Sep 23, 2014 at 12:23

1 Answer 1

23
$\begingroup$

Currently, KaTeX supports a limited subset of the functionality provided by MathJax. Many of the missing functionality (notably arrays and equation alignment) is regularly used on MathOverflow, so I would not recommend using KaTeX for viewing MathOverflow.

http://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX http://docs.mathjax.org/en/latest/tex.html#supported-latex-commands

A visual comparison can be found here.

As noted in an earlier discussion, there are also important security issues with adding third-party javascript on MathOverflow. As far as I can tell, the KaTeX developers are not yet offering adequate support for a large site with lots of user input like MathOverflow. They might eventually offer that since they obviously need to support the Khan Academy, which has similar security needs.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .