How to Display Math Symbols in WordPress

Ron Fredericks writes: Have you ever wanted to include math equations in your blog posts or lecture materials?  Here is an easy yet professional looking way to get the job done.  Use Embedded Components WordPress plugin called WordPress Math Publisher, or wpmathpub, for short. 

Introduction to Math Blogging – Using WordPress Math Publisher

Usage

As an example, when I embedded the wpmathpub [pmath size=xx] tag into my blog post — like this:

Code (mathtext)
  1. [pmath size=24](a+b)^2=a^2+2ab+b^2[/pmath]
  2. Where:
  3. [pmath size=18]~a[/pmath] is defined as a
  4. [pmath size=18]~b[/pmath] is defined as b

I get the following mathematical equation displayed in my blog post:

(a+b)^2=a^2+2ab+b^2

where:
~a is defined as a
~b is defined as b

 You can learn more from the plugin’s wiki-like documentation on wordpress.org site itself from here:

http://wordpress.org/extend/plugins/wpmathpub/

You can post questions or comments on this plugin from here:

http://www.embeddedcomponents.com/blogs/2008/03/wpmathpubsupport/

Technorati Tags: , , , , , ,

About Ron Fredericks

Ron's technology skill set includes many years of open source software development, architecture design, quick prototyping, project/product management, operating system development, compiler development, debugger development, component reuse, network protocols, new media streaming, real-time performance, embedded systems, mobile apps, power engineering, and countless application development projects. Ron is also a business developer, video and animation artist, public speaker, eLearning platform developer, and independent researcher in Macro/Biomolecular behavior. LinkedIn Profile: https://www.linkedin.com/in/ronfredericks
This entry was posted in Lecture Secrets, Mathematics and tagged , , , , , , . Bookmark the permalink.

17 Responses to How to Display Math Symbols in WordPress

  1. Pingback: Latex Resources » How to Display Math Symbols in WordPress

  2. Lim Ee Hai says:

    Good information for those doing math blog. The creation of various math symbol is tedious in WordPress. Have this code the task is simplified.

  3. admin says:

    This comment is just to verify comments support wpmathpub plugin’s display of math equations.

    Sample equation with spaces in tag: [ pmath ]y=mx^2+b[ /pmath ]

    Correctly tagged math equation: y=mx^2+b

    Looks great!

  4. Math Tests says:

    [ pmath ] a^2-b^2=(a+b)(a-b) [ /pmath ]
    a^2-b^2=(a+b)(a-b)

  5. Zach says:

    There’s a cool google gadget floating around that will generate these equation images for you as well, with the added benefit of a wysiwyg editor so you can embed these images anywhere…

  6. admin says:

    Hi Zach,

    You are on the right track, thanks for sharing the Google gadget with my readers. Your gadget indeed includes a great display for the creation of math equations. What seems to be lacking is a simple method for easy publishing of the final image. For example: Can the gadget itself be plugged into a blog post? Or does the blogger still have to cut, paste, upload into WordPress, then tagging and formatting [repeat sic] of the image is then required before finally posting the math equation within a blog?

    Using a simple text editor, you can use my WordPress mathpub plug-in to create images on the fly that fit within a blog post or a blog comment without any hassle associated with img tags etc… Because the image is created on the fly to exactly fit within the blog post or comment. This is a very powerful feature for collaboration and for making quick changes when math errors or improved algorithms are found that would otherwise break the format of the original image as placed within the blog post. It was this redo for improved algorithm that finally got me to write the WordPress mathpub plug-in in the first place – all the coding and publishing of the open-source code took less time and creates error free publishing of math images.

    How about adding your great editor to my plug-in and/or the php math publisher library used as the backend to my plug-in so we can take advantage of both worlds: both open-source and ready for the next upgrade (like yours).

    Regards,

    Ron

  7. Pingback: How to Display Math Symbols in WordPress LectureMaker | Wood TV Stand

  8. Pingback: How to Display Math Symbols in WordPress LectureMaker | Weak Bladder

  9. loans says:

    i wanted to use this symbol on my website
    thanks a ton

  10. Stephanie says:

    Can I use this plugin in the blog title field?

  11. admin says:

    Hi Stephanie:

    Thanks for the question. At this time this plugin can not be used to display math symbols in the title field. The problem for me is that I don’t think html tags like “<img…" are supported in the title field.

    Best regards,

    Ron

  12. Hi there! This is kind of off topic but I need some help from an established blog. Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about creating my own but I’m not sure where to begin. Do you have any points or suggestions? Appreciate it

  13. Júlio says:

    [ pmath ] a^4/b^2/3=(a+b)(a-b) [ /pmath ]

    Editor’s note: the syntax above will display as an equation without the spaces around the pmath tags…

    a^4/b^2/3=(a+b)(a-b)

  14. Yeah, it is too tricky for Bing or Yahoo to contend with Google in Research Engine industry. Perhaps I just expect Fb’s ambition might make the marketplace more interesting.

  15. animateholic says:

    thanks, very helpfull 🙂 🙂

  16. amraa says:

    that is test
    (a+b)^2=a^2+2ab+b^2

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)