14
$\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$
8
  • 8
    $\begingroup$ There has been some discussion at meta.math.stackexchange.com/questions/16809/… $\endgroup$ Commented 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$ Commented Sep 22, 2014 at 9:32
  • 2
    $\begingroup$ Although the functionality is currently limited, it seems to be worth keeping an eye on. $\endgroup$ Commented 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$ Commented 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$ Commented Sep 23, 2014 at 12:23
  • $\begingroup$ @slate how should we read the fact that status-deferred has been removed? Are you working on this feature? Are there any announcement on this matter? $\endgroup$ Commented Jun 17, 2024 at 11:34
  • $\begingroup$ @Federico Honestly speaking, because this was marked [status-deferred] by a then-moderator and not an employee, I don't think this work was ever being tracked internally. Unfortunately, it is also a ten year old request, so I am quite certain it is not being tracked today. If it is still of interest, I'd encourage you to make a new post about it, either here or on Meta Stack Exchange, and route it to us by flagging for [status-review]. $\endgroup$ Commented Jun 17, 2024 at 14:19
  • $\begingroup$ Thanks! I am not the original asker, so I am not sure if their request is still of interest. However, this fact that moderators can apply this tag even when the feature is not internally tracked seems problematic; I suggest you to consider revisiting those permissions. $\endgroup$ Commented Jun 17, 2024 at 14:39

1 Answer 1

25
$\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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.