KaTeX
{{Short description|Cross-browser JavaScript library that displays mathematical notation in web browsers}}
{{Infobox software
| name = KaTeX
| logo = KaTeX logo.svg
| latest release version = v0.16.22{{cite web|url=https://github.com/KaTeX/KaTeX/releases/tag/v0.16.22|title=Release v0.16.22|website=KaTeX|date=2025-04-24}}
| latest release date = {{Start date and age|2025|04|09}}
| operating system = Cross-platform
| programming language = JavaScript
| genre = Mathematical software
| license = MIT License
| website = {{URL|https://katex.org/}}
}}
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.{{citation
| last1 = von Gagern | first1 = Martin
| last2 = Richter-Gebert | first2 = Jürgen
| editor1-last = Greuel | editor1-first = Gert-Martin
| editor2-last = Koch | editor2-first = Thorsten
| editor3-last = Paule | editor3-first = Peter
| editor4-last = Sommese | editor4-first = Andrew
| contribution = CindyJS Plugins
| doi = 10.1007/978-3-319-42432-3_40
| pages = 327–334
| publisher = Springer
| series = Lecture Notes in Computer Science
| title = Mathematical Software – ICMS 2016: 5th International Conference, Berlin, Germany, July 11–14, 2016, Proceedings
| volume = 9725
| year = 2016}}
It was initially developed by Khan Academy,{{cite journal|title=TeX as a three-stage rocket: Cookie-cutter page breaking|first=S. K.|last=Venkatesan|journal=TUGboat|publisher=TeX User's Group|volume=36|issue=2|year=2015|pages=145–148}} and became one of the top five trending projects on GitHub in September 2014.{{citation|url=https://sdtimes.com/awesome-node-js/top-5-projects-trending-on-github-this-week-42/|magazine=SD Times|title=Top 5 projects trending on GitHub this week|first=Rob|last=Marvin|date=September 19, 2014}}
Features
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.{{cite web |title=Support Table · KaTeX |url=https://katex.org/docs/support_table |website=katex.org |access-date=11 January 2024 |language=en}}
See also
{{Portal|Free and open-source software|Mathematics}}
References
{{Reflist|30em}}
External links
- {{Official website|https://katex.org/}}
- [https://aperiodical.com/2014/09/katex-the-fastest-math-typesetting-library-for-the-web/ "KaTeX is a (partial) alternative to (some of) MathJax"]
- [https://www.intmath.com/blog/mathematics/katex-a-new-way-to-display-math-on-the-web-9445 "KaTeX - a new way to display math on the Web"]
- [https://www.intmath.com/cg5/katex-mathjax-comparison.php KaTeX-MathJax comparison]