Description | Replace ugly PNG/SVG math tags and bland MathML rendering with MathJax rendering. |
---|---|
Updated | May 12, 2017 (7 years ago) |
Source | User: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
editPlace the following in your common.js or vector.js:
importScript("User:Esquivalience/mathjax.js");
License
editThis software is licensed under the ISC license.
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. You must irrevocably release all your contribution(s) to this software under the ISC license. |