WPMathPub renders mathematical equations in WordPress using the Mathpublisher rendering engine, supporting both native pmath syntax and LaTeX-style input. It generates fast, high-quality PNG images with halo-free transparent backgrounds for reliable display across posts, pages, comments, and RSS feeds.
The plugin also includes Math-Pub Rosetta, a standalone app built on the same Mathpublisher engine. Rosetta mirrors WPMathPub’s behavior outside WordPress, allowing users to publish math anywhere – as a WPMathPub pmath tag learning tool, as a gateway to any LaTeX-enabled document (including Microsoft Office and Overleaf), or directly in WordPress comments. (Launch the Rosetta app)
Unlike MathJax-based plugins, WPMathPub performs server-side rendering, producing static equation images that display consistently across browsers and devices without requiring client-side JavaScript.
This approach provides reliable rendering for:
- WordPress posts, pages, and comments
- Cached pages
- Environments where JavaScript rendering is not desirable
- RSS feeds and feed aggregators RSS example
WPMathPub extends the classic mathpublisher engine with modern WordPress integration including shortcode support, LaTeX translation, image caching, and configurable rendering options.
Mathematical Equation Rendering
Mathematical expressions can be embedded directly into WordPress content using the pmath shortcode.
Basic native usage:
[pmath]x^2 + y^2 = z^2[/pmath]
Custom size and color:
[pmath size=18 color="blue"]E = mc^2[/pmath]
LaTeX input with inline text:
This is a fraction: [pmath latex=1]\frac{a}{b}[/pmath]
Normal, upright text with the same inherited color and size:
LaTeX example – [pmath size=24 color="#006687" latex=1]\text{This is a fraction:}\,\frac{a}{b}[/pmath]
Native example – [pmath size=24 color="#006687"]text{NPV(CF, R) := } text{IV} + delim{[}{ sum{k=1}{N}{ {text{CF}_k}/{(1+text{R}/100)^k}}}{]}[/pmath]
Expressions are rendered as PNG images using the GD and FreeType libraries and cached for efficient reuse. Rosetta extends this with visual error checks and copy to clipboard buttons that move your equations into WPMathPub content, external presentation tools, or anywhere PNG images are accepted. The result lives up to Rosetta’s tagline: Your math. Any platform.
Features
- pmath shortcode tag math expression rendering
- Inline text with math images using pmath shortcode tag
- Control of math image size and color
- LaTeX command translation (Check out the complete syntax list)
- Server-side PNG equation generation
- Gutenberg WPMathPub math block with PMath and LaTeX mode switching
- Halo-free color rendering with alpha transparency
- Transparent background support for dark themes
- Minimal WordPress database footprint
- Efficient PNG image caching
- Math-Pub Rosetta application
- Enter math syntax manually, starting with examples, or using the Math Insert Menu
- Paste pmath tags from WPMathPub enabled content into the Math Test Area
- Allow external users to post math content into comments after visual inspection
- Math Insert Menu includes search, category, and show all for easier syntax use
- Copy resulting math to clipboard
- Copy out and past in allows for roundtrip math syntax development with WPMathPub
- Target audience includes WPMathPub users, new LaTeX learners, and image reuse
- WordPress admin tools panel
- Configurable default equation size
- Configurable default equation color with color picker
- Installation status display
- PNG image cache status and control
- Policy control for cleanup on plugin delete
