MathJax

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
MathJax
File:MathJax.svg
Developer(s) American Mathematical Society
Stable release 2.5 / January 30, 2015; 9 years ago (2015-01-30)
Development status Active
Written in JavaScript
Operating system Cross-platform
Type Mathematical software
License Apache License
Website www.mathjax.org

MathJax is a cross-browser JavaScript library that displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup.[1][2][3] MathJax is released as open-source software under the Apache License.

The MathJax project started in 2009 as the successor to an earlier JavaScript mathematics formatting library, jsMath,[4] and is managed by the American Mathematical Society.[5] The project was founded by the American Mathematical Society, Design Science, and the Society for Industrial and Applied Mathematics and is supported by numerous sponsors such as the American Institute of Physics and Stack Exchange.[6]

MathJax is used by web sites including arXiv,[7] Elsevier's ScienceDirect,[8] MathSciNet,[9] n-category cafe, MathOverflow, Wikipedia,[10] Scholarpedia, Project Euclid journals,[11] IEEEXplore,[12] Publons, and the All-Russian Mathematical Portal.[13]

Features

MathJax downloads with web page content, scans the page content for equation markup, and typesets the math. Thus, MathJax requires no installation of software or extra fonts on the reader's system. This allows MathJax to run in any browser with JavaScript support, including mobile devices.[14]

MathJax can display math by using a combination of HTML and CSS or by using the browser's native MathML support, when available. The exact method MathJax uses to typeset math is determined by the capabilities of the user's browser, fonts available on the user's system, and configuration settings. MathJax v2.0-beta introduced SVG rendering.[15]

In the case of HTML and CSS typesetting, MathJax maximizes math display quality by using math fonts if available and by resorting to images for older browsers. For newer browsers that support web fonts, MathJax provides a comprehensive set of web fonts, which MathJax downloads as needed. If the browser does not support web fonts, MathJax checks whether valid fonts are available on the user's system. If this does not work, MathJax provides images of any symbols needed.[clarification needed] MathJax can be configured to enable or disable web fonts, local fonts, and image fonts.

MathJax uses the STIX fonts for including mathematics in web pages. Installing the fonts on the local computer improves MathJax’s typesetting speed.[16]

MathJax can display mathematical notation written in LaTeX or MathML markup. Because MathJax is meant only for math display, whereas LaTeX is a document layout language, MathJax only supports the subset of LaTeX used to describe mathematical notation.[14]

MathJax also supports math accessibility by exposing MathML through its API to assistive technology software, as well as the basic WAI-ARIA "role" and older "altext" attributes.[17]

The MathJax architecture is designed to support the addition of input languages and display methods in the future via dynamically loaded modules. MathJax also includes a JavaScript API for enumerating and interacting with math instances in a page.

Browser compatibility

MathJax renders math in most popular browsers, including Internet Explorer 6, Firefox 3, Google Chrome 0.3, Safari 2.0, Opera 9.5, iPhone/iPad Safari, and the Android browser. Some older versions of browsers do not support web fonts (with the @font-face CSS construct), so they have to use MathJax image font mode. The browser compatibility list is available at the official site.[18]

Plugin support

MathJax can be easily added to many popular web platforms.[19]

Equation editor compatibility

Any MathJax equation displayed in a supported browser can be copied out in MathML or LaTeX format via "Show Math as" sub-menu if right-button clicked or control-clicked on it. Then it can be pasted in any equation editor that supports MathML or LaTeX, such as Mathematica, MathType, MathMagic, Firemath for re-using.[20]

Equations generated in MathML or LaTeX format by any 3rd party equation editor can be used in MathJax enabled web pages.

TeX support

MathJax replicates the math environment commands of LaTeX. AMS-LaTeX math commands are supported via extensions. MathJax also supports TeX macros and miscellaneous formatting like \color and \underline.[21]

MathML support

MathJax added partial support for MathML 2.0 and some MathML 3.0 constructs in its beta 2 release. MathJax supports presentation MathML and, as of version 2.2, provides experimental support for content MathML.[22]

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found..
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. http://www.elsevier.com/physical-sciences/mathematics/mathjax
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. New features in IEEE Xplore, retrieved 2015-04-20.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. 14.0 14.1 Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. MathJax Font Help accessed 2012-08-14.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.

External links