plugin-icon

WPMathPub

作者:Ron Fredericks·
Render mathematical equations in WordPress as PNG images using pmath native syntax or LaTeX input with server-side rendering.
评级
4.2
版本
3.0.4
活跃安装
300
最后更新
Apr 15, 2026
WPMathPub

WPMathPub renders mathematical equations in WordPress using the mathpublisher rendering engine, supporting both pmath native syntax and LaTeX-style input and generating high-quality PNG images with transparent backgrounds.

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.

Example:

[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]

Expressions are rendered as PNG images using the GD and FreeType libraries and cached for efficient reuse.

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
  • 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
免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.9.4
这个插件是可用的下载,适用于您的站点。