Contributors: philliplord, sjcockell, knowledgeblog, d_swan, paulschreiber, jwenerd Tags: mathematics, math, latex, mathml, mathjax, science, res-comms, scholar, academic Requires at least: 3.0 Tested up to: 6.6.2 Stable tag: 1.3.12 Requires PHP: 7.0.0 License: GPLv2
This plugin enables MathJax (http://www.mathjax.org) functionality for WordPress (http://www.wordpress.org).
MathJax enables enables rendering of embedded LaTeX or MathML in HTML pages. This plugin adds this functionality to WordPress. The MathJax JavaScript is inject on-demand only to those pages which require it. This ensures that MathJax is not loaded for all pages, which will otherwise slow loading down.
The MathJax JavaScript can be delivered from your own server, or you can use the Cloudflare Content Distribution Network (CDN), which is the preferred mechanism as it offers increased speed and stability over hosting the JavaScript and configuring the library yourself.
You may embed latex using a variety of different syntaxes. The shortcode (http://codex.wordpress.org/Shortcode_API) syntax is preferred. So [latex]E=mc^2[/latex]
will work out of the box. This also forces loading of MathJax.
Additionally, you can use native MathJax syntax -- $$E=mc^2$$
or \(E=mc^2\)
. However, if this is the only syntax used, the plugin must be explicitly told to load MathJax for the current page. This can be achieved by adding a [mathjax]
shortcode anywhere in the post. For posts with both [latex]
x[/latex]
and $$x$$ syntaxes this is unnecessary.
You can use wp-latex syntax, $latex E=mc^2$
. Parameters can be specified as with wp-latex but will be ignored. This means that MathJax-LaTeX should be a drop-in replacement for wp-latex. Because this conflicts with wp-latex, this behaviour is blocked when wp-latex is present, and must be explicitly enabled in the settings.
You can also specify [nomathjax]
-- this will block MathJax on the current page, regardless of other tags.
MathJax-LaTeX is developed on GitHub.
/wp-content/plugins/
directoryAll code for this release was submitted by users of this plugin! Thanks to Jared Wenerd and Paul Schreiber.
== Upgrade Notice ==
Accessibility improvements.
Bug fix: Custom location was not correctly applied. Bug fix: Force load was not correctly applied.
Security update. All users advised to update. Options will require resetting.
Documentation updates only. Upgrade for existing users is optional.
The 1.0 release offers compatibility with MathJax 1.1, and enables use of the CDN for javascript delivery. Upgrading is strongly recommended.
This plugin is copyright Phillip Lord, Newcastle University and is licensed under GPLv2.