LLMpediaThe first transparent, open encyclopedia generated by LLMs

MathJax

Generated by DeepSeek V3.2
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: LaTeX Hop 4
Expansion Funnel Raw 53 → Dedup 18 → NER 9 → Enqueued 9
1. Extracted53
2. After dedup18 (None)
3. After NER9 (None)
Rejected: 9 (not NE: 9)
4. Enqueued9 (None)
MathJax
NameMathJax
DeveloperAmerican Mathematical Society, Society for Industrial and Applied Mathematics
Released2009
Latest release version3.2.2
Latest release date2022
Programming languageJavaScript
Operating systemCross-platform
GenreTypesetting
LicenseApache License 2.0
Websitehttps://www.mathjax.org

MathJax is an open-source JavaScript display engine designed for rendering mathematical notation in web browsers. It was developed to provide a high-quality, cross-browser solution for displaying TeX, LaTeX, MathML, and AsciiMath notation. The project is a collaborative effort spearheaded by the American Mathematical Society and the Society for Industrial and Applied Mathematics, with support from numerous other organizations. Its primary goal is to enable the seamless integration of complex mathematical expressions into modern web documents and platforms.

Overview

MathJax was created in response to the limitations of earlier methods for displaying mathematics online, such as static images or requiring specific browser plugins. The project emerged from the merger of two earlier initiatives, jsMath and ASCIIMathML, aiming to create a universal, standards-compliant solution. Its development is overseen by a consortium that includes key institutions like the American Institute of Physics and Design Science. Since its initial release, MathJax has become a foundational tool for scientific communication on the web, used by major platforms including Wikipedia, Moodle, and arXiv.

Features

A core feature of MathJax is its ability to render mathematical expressions with high-quality typography that scales with surrounding text, supporting both HTML and CSS for precise layout control. It offers multiple input formats, allowing authors to use familiar syntax from LaTeX or the structured MathML standard. The engine includes advanced capabilities like automatic line breaking, copy-and-paste functionality preserving Unicode text, and accessibility features for screen readers compliant with the W3C's Web Content Accessibility Guidelines. Furthermore, MathJax supports extensions for chemical notation via the mhchem package and can be integrated with dynamic content in frameworks like Jupyter Notebook.

Implementation

Implementing MathJax typically involves including a configuration script in the header of a web page, which then processes designated markup within the document. It can be loaded from a Content Delivery Network or self-hosted, and configuration options allow fine-tuning of rendering behavior, output formats, and font choices. The engine works asynchronously, preventing page load delays, and can re-render equations dynamically in response to DOM changes, making it suitable for single-page applications built with libraries like React or Angular. Many popular content management systems, including WordPress and Drupal, offer plugins for easy integration.

Browser support

MathJax is designed for broad compatibility across modern and legacy web browsers. It provides consistent rendering in major engines like Google Chrome, Mozilla Firefox, Apple Safari, and Microsoft Edge, including older versions of Internet Explorer. Support extends to mobile browsers on iOS and Android platforms. The engine uses feature detection to employ the most efficient rendering pathway available, whether HTML-CSS, SVG, or native MathML support when present. This ensures mathematical content remains accessible even in environments with limited JavaScript capabilities or strict security policies.

Alternatives

Several alternative technologies exist for rendering mathematics on the web, each with different trade-offs. KaTeX, developed by Khan Academy, is a faster, lighter-weight library but with more limited LaTeX support. Native browser support for MathML is implemented in Mozilla Firefox and Apple Safari, though inconsistent adoption across Google Chrome and Microsoft Edge has hindered its universal use. Other historical approaches include converting equations to static images using servers like CodeCogs or utilizing the MathPlayer plugin for Internet Explorer. For document preparation outside the browser, traditional systems like LaTeX and GNU TeXmacs remain prevalent in academic publishing.

See also

* TeX * LaTeX * MathML * JavaScript library * Web typography * Scientific computing * Open-source software * Digital publishing

Category:Free mathematics software Category:JavaScript libraries Category:Mathematical notation Category:Typesetting software

Some section boundaries were detected using heuristics. Certain LLMs occasionally produce headings without standard wikitext closing markers, which are resolved automatically.