Reference articles on history, science, culture and more
Encyclopedia

KaTeX

JavaScript library for displaying math notation

Image credit is listed at the end of this article.

KaTeX is a cross-browser JavaScript library that displays mathematical notation in web browsers. It puts special emphasis on being fast and easy to use.

It was initially developed by Khan Academy, and became one of the top five trending projects on GitHub in September 2014.

01Features

KaTeX rendering of math claims to be:

  • Fast: It renders its math synchronously and doesn't need to reflow the page.
  • Print quality: Its layout is based on TeX.
  • Self contained: It has no dependencies, so it can be easily bundled.
  • Capable of server-side rendering: it has an option to generate HTML on the server (so, for example, one can pre-render expressions using Node.js and send them as plain HTML).

KaTeX implements a smaller subset of LaTeX's mathematical notation features than MathJax.

Watch videos about KaTeXExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article KaTeX, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.