Title: WPMathPub
Author: Ron Fredericks
Published: <strong>28 de marzo de 2008</strong>
Last modified: 15 de abril de 2026

---

Buscar plugins

![](https://ps.w.org/wpmathpub/assets/banner-772x250.jpg?rev=997722)

![](https://ps.w.org/wpmathpub/assets/icon-256x256.jpg?rev=3506399)

# WPMathPub

 Por [Ron Fredericks](https://profiles.wordpress.org/ronf/)

[Descargar](https://downloads.wordpress.org/plugin/wpmathpub.3.0.4.zip)

 * [Detalles](https://es.wordpress.org/plugins/wpmathpub/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/wpmathpub/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/wpmathpub/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/wpmathpub/#developers)

 [Soporte](https://wordpress.org/support/plugin/wpmathpub/)

## Descripción

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](https://www.biophysicslab.com/2026/04/11/wpmathpub-latex-math-in-social-networks/)

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](https://www.biophysicslab.com/wordpress-math-publisher-plugin/wpmathpub-syntax/))
 * 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

## Capturas

 * [[
 * Example rendered equation in page
 * [[
 * Example rendered equation in comment
 * [[
 * Example Gutenberg block
 * [[
 * Example from syntax page
 * [[
 * WordPress admin configuration panel top
 * [[
 * WordPress admin configuration panel bottom

## Bloques

Este plugin proporciona 1 bloque.

 *   Math (WPMathPub)

## Instalación

 1. Upload the plugin folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the WordPress Plugins menu.
 3. Optional: change defaults under **Tools  WPMathPub**.

## FAQ

### How do I get started with WPMathPub?

Here are three references:

 * Check out the [WPMathPub math publisher page](https://www.biophysicslab.com/wordpress-math-publisher-plugin/)
   for the user guide.
 * Check out the [WPMathPub syntax page](https://www.biophysicslab.com/wordpress-math-publisher-plugin/wpmathpub-syntax/)
   for a complete cross-reference of all pmath native and LaTeX supported commands.
 * Check out the [WPMathPub support page](https://www.biophysicslab.com/wordpress-math-publisher-plugin/wpmathpub-support/)
   for video tutorials and a donation link in support of this project.

### Does this plugin require MathJax?

No. WPMathPub renders equations server-side as PNG images using the mathpublisher
rendering engine.

### Does it support LaTeX?

Yes. WPMathPub includes a server-side LaTeX translator that converts standard LaTeX
math commands into native pmath syntax before rendering. The result is identical
PNG output — so a LaTeX expression and its pmath equivalent share the same cached
image file, with no duplication. See the full command reference on the [WPMathPub syntax page.](https://www.biophysicslab.com/wordpress-math-publisher-plugin/wpmathpub-syntax/)

### Where are rendered images stored?

Rendered equation images are cached in:

    ```
    /wp-content/uploads/wpmathpub/math-img/
    ```

### Why does the plugin generate PNG images instead of SVG?

The plugin preserves compatibility with the mathpublisher rendering engine, which
produces raster images. PNG output ensures consistent rendering across browsers.

## Reseñas

![](https://secure.gravatar.com/avatar/b188f9243124fb886e9fd19a6b9b50aa820c346b4278cddde528bb44f47ae969?
s=60&d=retro&r=g)

### 󠀁[Not compatible with wordpress 4.9.8](https://wordpress.org/support/topic/not-compatible-with-wordpress-4-9-8/)󠁿

 [anchorn9852](https://profiles.wordpress.org/anchorn9852/) 23 de noviembre de 2018

it gives me error: Fatal error: Uncaught Error: Call to undefined function ereg()
in ….web/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php:1604 Stack
trace: #0 /nfsmnt/hosting1_1/4/c/4cdba5d2-b725-4d56-95e7-7244c2ed5f96/dveadvesustyri.
sk/web/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1625): detectimg(‘
629fdc23df6a73c…’) #1 /nfsmnt/hosting1_1/4/c/4cdba5d2-b725-4d56-95e7-7244c2ed5f96/
dveadvesustyri.sk/web/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.
php(1661): mathimage(‘S(f)(t)=a_{0}+s…’, ’12’, ‘http://dveadves…’) #2 /nfsmnt/hosting1_1/
4/c/4cdba5d2-b725-4d56-95e7-7244c2ed5f96/dveadvesustyri.sk/web/wp-content/plugins/
wpmathpub/wpmathpub.php(110): mathfilter(‘<m>S(f)(t)=a_{0…’, ’12’, ‘http://dveadves…’)#
3 [internal function]: wpmathfilter(Array) #4 /nfsmnt/hosting1_1/4/c/4cdba5d2-b725-
4d56-95e7-7244c2ed5f96/dveadvesustyri.sk/web/wp-content/plugins/wpmathpub/wpmathpub.
php(124): preg_replace_callback(‘#\\[pma in /nfsmnt/hosting1_1/4/c/4cdba5d2-b725-
4d56-95e7-7244c2ed5f96/dveadvesustyri.sk/web/wp-content/plugins/wpmathpub/phpmathpublisher/
mathpublisher.php on line 1604

![](https://secure.gravatar.com/avatar/f58ac795471e4b516970127e7bedf6b39fe32c16b3c2047a253fe716aed8037a?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-969/)󠁿

 [thy92](https://profiles.wordpress.org/thy92/) 3 de septiembre de 2016

Very useful to use. Thank you for this plugin.

![](https://secure.gravatar.com/avatar/196c74fe32cbc0c421bb1215c422da531166e0d739f60069d18e285a5dbfe7d8?
s=60&d=retro&r=g)

### 󠀁[got rid of the backslash problem](https://wordpress.org/support/topic/got-rid-of-the-backslash-problem/)󠁿

 [hadzzz](https://profiles.wordpress.org/hadzzz/) 3 de septiembre de 2016

The advantage of this plugin to other ones is that it doesn’t use «\» (backslash)
which other latex-based plugins do. Backslashes are sometimes stripped in WP leading
to formulas not showing properly.

 [ Leer todas las 5 reseñas ](https://wordpress.org/support/plugin/wpmathpub/reviews/)

## Colaboradores y desarrolladores

«WPMathPub» es un software de código abierto. Las siguientes personas han colaborado
con este plugin.

Colaboradores

 *   [ Ron Fredericks ](https://profiles.wordpress.org/ronf/)

[Traduce «WPMathPub» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/wpmathpub)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/wpmathpub/) , echa
un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/wpmathpub/) o 
suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/wpmathpub/)
por [RSS](https://plugins.trac.wordpress.org/log/wpmathpub/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 3.0.4

 * Added \hbar symbol (reduced Planck constant ℏ, Unicode U+210F)
 * Fixed LaTeX \frac rendering for multi-token numerators and denominators
 * Fixed image rendering failure at certain font sizes caused by decimal value in
   cached filename
 * Fixed small vertical alignment error between inline text and math images
 * Removed version salt for stable RSS feed and URL links
 * Changed Gutenberg block default math syntax mode from pmath native to LaTeX
 * Security: added direct file access protection (ABSPATH check) to wpmathpub.php,
   mathpublisher.php, and fonts/index.php
 * Security: replaced unlink() with wp_delete_file() in wpmathpub.php and uninstall.
   php
 * Security: replaced rmdir() with WP_Filesystem in uninstall.php
 * Security: escaped admin page output with wp_kses_post()
 * Fixed readme.txt Requires at least version 5.0 mismatch

#### 3.0.3

 * Improved error handling
 * Improved rendering of PNG images

#### 3.0.2

 * Added color= shortcode attribute with hex and named color support
 * Added LaTeX input mode via latex=1 shortcode attribute with full PHPMathPublisher
   syntax coverage
 * Added Gutenberg WPMathPub math block with PMath/LaTeX mode switching and real-
   time preview
 * Added admin panel default equation color setting with WordPress color picker
 * Added admin panel default equation size setting
 * Added uninstall.php to remove plugin database options on delete
 * Fixed Greek Omega symbol rendering (three stacked bugs resolved)
 * Fixed matrix and tabular LaTeX conversion
 * Fixed tabular border string parsing to respect LaTeX | and \hline markers
 * Improved PNG image cache handling and cache key discipline
 * Improved rendering stability across PHP 7.2 through 8.3

## Meta

 *  Versión **3.0.4**
 *  Última actualización **hace 3 días**
 *  Instalaciones activas **300+**
 *  Versión de WordPress ** 5.0 o superior **
 *  Probado hasta **6.9.4**
 *  Versión de PHP ** 7.2 o superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wpmathpub/)
 * Etiquetas:
 * [equations](https://es.wordpress.org/plugins/tags/equations/)[formula](https://es.wordpress.org/plugins/tags/formula/)
   [latex](https://es.wordpress.org/plugins/tags/latex/)[math](https://es.wordpress.org/plugins/tags/math/)
   [mathematics](https://es.wordpress.org/plugins/tags/mathematics/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/wpmathpub/advanced/)

## Valoraciones

 4.2 de 5 estrellas.

 *  [  4 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/wpmathpub/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/wpmathpub/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/wpmathpub/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/wpmathpub/reviews/?filter=2)
 *  [  1 valoración de 1 estrellas     ](https://wordpress.org/support/plugin/wpmathpub/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpmathpub/reviews/#new-post)

[Ver todas las valoraciones](https://wordpress.org/support/plugin/wpmathpub/reviews/)

## Colaboradores

 *   [ Ron Fredericks ](https://profiles.wordpress.org/ronf/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/wpmathpub/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://www.biophysicslab.com/wordpress-math-publisher-plugin/wpmathpub-support/)