Embedded Components and Tools Blog Center

August 18, 2025

How to Display Math Symbols in WordPress

Filed under: Uncategorized — Ron Fredericks @ 5:17 pm

I recently found myself spending a lot of time uploading math images copied from screen shots of MathCad output. This problem became even worse when an economist pointed out several areas where I could improve my mathmatical development.

Some background notes
So I decided it was time to find a simple way to display WordPress posts using math symbols. I choose the work around the PHP library called phpmathpublisher developed by Pascal Brachet. I then took a little time to improve on the previous work of Matteo Bertini’s WordPress plugin for Pascal’s library called wphpmathpublisher.

Sample tag used to create output below

f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}}

Results with the new size=xx attribute
f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}} size=6
f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}} size=8
f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}} size=10
f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}} size=12, or default if no size specified
f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}} size=13
(more…)

Powered by WordPress