WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by knowledgeblog v1.3.13

MathJax-LaTeX

This plugin enables MathJax (http://www.mathjax.org) functionality for WordPress (http://www.wordpress.org).

MathJax-LaTeX

The facts

Rating
4.4★ from 11
Active installs
10k+
Price
Free
Last updated
14 Jan 2025
Added
Oct 2010
Requires WP
3.0
Tested up to
WP 6.7.7
Requires PHP
7.0.0
Downloads
180,643

Our analysis

AI-assisted

MathJax-LaTeX is a WordPress plugin that enables the rendering of LaTeX and MathML in HTML pages. It injects the MathJax JavaScript only on pages that require it, preventing unnecessary loading on other pages.

The plugin supports various syntaxes for embedding LaTeX, with a preferred shortcode format. You can also use native MathJax syntax, and it offers compatibility with wp-latex, although this requires specific settings adjustments. This plugin is suitable for users who need to display mathematical notation on their WordPress sites.

Best for: This plugin suits educators, researchers, or anyone needing to display mathematical content on their WordPress site.

What it does well

  • Enables rendering of LaTeX and MathML
  • Injects MathJax only on required pages
  • Supports multiple embedding syntaxes
  • Compatible with Cloudflare CDN for improved performance
  • Developed on GitHub

Where it falls short

  • Requires configuration for certain syntaxes
  • May conflict with wp-latex if both are used

Verdict

MathJax-LaTeX provides a practical solution for embedding mathematical notation in WordPress. It is a useful tool for those who frequently work with LaTeX or MathML.

From the developer

knowledgeblog's own description of MathJax-LaTeX, lightly tidied.

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 (https://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.

Copyright

This plugin is copyright Phillip Lord, Newcastle University and is licensed under GPLv2.

Read the full description on the official page →

Tagged as

feature Shortcodes
topic Https Http Syntax