![]() |
Software > WordPress > WordPress Plugins >
https://wordpress.org/plugins/mathjax-latex/
A simple way to use a [latex] shortcode to insert math that is rendered properly by a browser.
- https://github.com/phillord/mathjax-latex
- https://www.mathjax.org/
-
https://docs.mathjax.org/en/v1.1-latest/configuration.html#loading
![]() |
Configuration ∞
\wget --continue https://github.com/mathjax/MathJax/archive/refs/tags/2.7.8.zip \unzip 2.7.8.zip \mv 2.7.8 /path/to/website/MathJax
- https://blog.spiralofhope.com/wp-admin/options-general.php?page=kblog-mathjax-latex
-
Use MathJax CDN Service? [_]
- Oh god no, why would I want to report every visitor’s actions?
- Custom MathJax location?
http://example.com/MathJax/MathJax.js
Usage ∞
Native MathJax syntax, e.g.:
$$E=mc^2$$-
\(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.
e.g. this:
[latex]
\alpha = \left( \frac{e}{q_\mathrm{P}} \right)^2 = \frac{e^2 c\mu_0}{2h} = \frac{1}{4 \pi \varepsilon_0} \frac{e^2}{\hbar c} = \frac{k_\text{e} e^2}{\hbar c} = \frac{e^2}{2\varepsilon_0 c h} = \frac{c \mu_0}{2 R_\text{K}} = \frac{e^2 Z_0}{2h} = \frac{e^2 Z_0}{4\pi \hbar} = \frac{Z_0}{2R_K}
[/latex]
becomes:
\(\alpha = \left( \frac{e}{q_\mathrm{P}} \right)^2 = \frac{e^2 c\mu_0}{2h} = \frac{1}{4 \pi \varepsilon_0} \frac{e^2}{\hbar c} = \frac{k_\text{e} e^2}{\hbar c} = \frac{e^2}{2\varepsilon_0 c h} = \frac{c \mu_0}{2 R_\text{K}} = \frac{e^2 Z_0}{2h} = \frac{e^2 Z_0}{4\pi \hbar} = \frac{Z_0}{2R_K}\)


added usage
Apparently I was using a another website hosting this JavaScript all this time, so now it’s actually fixed.