Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

User:Esquivalience/mathjax

From Wikipedia, the free encyclopedia
Client-side MathJax
DescriptionReplace ugly PNG/SVG math tags and bland MathML rendering with MathJax rendering.
UpdatedMay 12, 2017
    (7 years ago)
SourceUser:Esquivalience/mathjax.js

This script renders mathematical notation placed in <math></math> tags with MathJax. In Preferences -> Appearance -> Math, "LaTeX source" must be ticked. Will rarely affect non-mathematical articles with dollar signs, as it tests for dollar signs with a space after or before like the LaTeX source option renders them. If you use live preview, Alt will reload the math on a page.

The performance impact of this script is minimal: even math-dense pages such as Integral are typeset in no more than 5-7 seconds. It will not be loaded if there is no math on this page.

To install

[edit]

Place the following in your common.js or vector.js:

importScript("User:Esquivalience/mathjax.js");

License

[edit]