KaTeX

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
KaTeX
Stable release
v0.16.22[1] / April 9, 2025; 14 months ago (2025-04-09)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inJavaScript
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemCross-platform
    TypeMathematical software
    LicenseMIT License
    Websitekatex.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.[2]

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

    Features

    [edit | edit source]

    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.[2][5]

    See also

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]