LectureMaker

March 30, 2008

How to Display Math Symbols in WordPress

Filed under: Blogs, Lecture Secrets — Tags: , , , , , , — admin @ 2:52 pm

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

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

Code (ada)
  1. [pmath size=16](a^2+b^2)=a^2+2*a*b+b^2[/pmath]
  2.  
  3. Where:
  4. [pmath size=12]~a[/pmath] is defined as a
  5. [pmath size=12]~b[/pmath] is defined as b

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

(a^2+b^2)=a^2+2*a*b+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/

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • e-mail
  • Furl
  • Reddit
  • Slashdot
  • Technorati

Technorati Tags: , , , , , ,

7 Comments »

  1. […] unknown: […]

    Pingback by Latex Resources » How to Display Math Symbols in WordPress — March 31, 2008 @ 9:32 am

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

    Comment by Lim Ee Hai — April 16, 2008 @ 12:03 am

  3. 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!

    Comment by admin — May 21, 2008 @ 2:14 pm

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

    Comment by Math Tests — July 5, 2008 @ 4:34 pm

  5. 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…

    Comment by Zach — July 21, 2008 @ 6:55 pm

  6. Sorry, link is http://www.mathzach.com

    Comment by Zach — July 21, 2008 @ 6:56 pm

  7. 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

    Comment by admin — July 23, 2008 @ 8:14 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

LectureMaker™ brand and products owned and licensed by Embedded Components, Inc.       |      Web site powered by WordPress