[WordPress] 外掛分享: WPMathPub

首頁外掛目錄 › WPMathPub
WordPress 外掛 WPMathPub 的封面圖片
300+
安裝啟用
★★★★
4.2/5 分(5 則評價)
20 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v3.0.4 上架:2008-03-27

內容簡介

WPMathPub 是一款專為 WordPress 設計的外掛,利用 mathpublisher 渲染引擎來呈現數學方程式,支援 pmath 原生語法和 LaTeX 輸入,並生成高品質的透明背景 PNG 圖像。此外掛提供穩定的伺服器端渲染,確保在各種瀏覽器和設備上顯示一致。

【主要功能】
• 支援 pmath 和 LaTeX 語法的數學方程式渲染
• 伺服器端生成高品質 PNG 圖像
• Gutenberg 整合的數學區塊,支援模式切換
• 透明背景支援,適合深色主題
• 可配置的預設方程式大小和顏色
• 效率高的 PNG 圖像快取

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

延伸相關外掛

文章
Filter
Mastodon