YW-LATEX WP Plugin

Introduction

This plugin enables to put latex formula in wordpress post by using mathtex.cgi running top of latex with divpng.

In order to use this plugin, you don’t need to install prerequisite software like latex, dvipng, or mathtex.cgi. However, if you don’t install the softwares on your own local server, it will use shared host server for mathtex.cgi, which will give a little bit of low performance and a burden to the host server as well.

Using Shared Server

If you decide to use shared host server for mathtex.cgi, you can use following sites and put it in the plugin option menu.

  • http://www.forkosh.dreamhost.com/mathtex.cgi (the default location)
  • http://www.openmaths.org/cgi-bin/mathtex.cgi
  • http://www.quantnet.com/cgi-bin/mathtex.cgi

Using Your own mathtex.cgi

If you want to have your own mathtex.cgi, you need

  1. Install latex and dvipng
  2. Get and Compile mathtex.cgi

Anyhow, what it needs is mathtex.cgi for this plugin.

Installation

To do a new installation of the plugin, please follow these steps

  1. Download the zipped plugin file to your local machine.
  2. Unzip the file.
  3. Upload the ‘yw-latex’ folder to the ‘/wp-content/plugins/’ directory.
  4. Activate the plugin through the ‘Plugins’ menu in WordPress.
  5. Optionally, go to the Options page (YW Latex), and choose the location of mathtex.cgi

Screenshots

Type latex syntax

typing latex syntax

Show in the post

Show in the post for latex formula

Option menu in the dashboard panel

Option menu

Option to specify mathtex.cgi

Option menu

Usage

While writing your post, embrace latex syntax by [ math ] and [ /math ]

Update: January 12th, 2010
  • kirkpatrick
    Dec 14th, 2009 at 20:45 | #1

    This is inline [math](a+b)/(b^2-a^2)[/math] test.

    • Dec 14th, 2009 at 21:27 | #2

      Sorry, Kirkpatrick,

      The comment in latex syntax is not supported yet. I may implement it later on. Thanks for the test.

  • Chris
    Mar 2nd, 2010 at 15:07 | #3

    Hi,
    first I have to say, great plugin! But I have one little problem, if I use the “\Large” setting, it won’t be converted into a larger version, instead the Backslash is just ignored and the “Large” is part of the expression:
    “Largea+b=b+a”

    I use this statement in a wordpress page:
    [math]\Large a+b=b+a[/math]

    Do you know why this might happen?

    • Mar 3rd, 2010 at 17:32 | #4

      Hi Chris,

      Sorry for delayed answer. I am currently moving to new area, and internet environment for home is not setup yet, so I am still struggling of it. Once the internet is setup for home, I will look at it.

      Thanks,

      Regards,
      Daniel

  • Chris
    Mar 4th, 2010 at 10:31 | #5

    Thanks, look forward to the solution! :)

    • Apr 16th, 2010 at 05:52 | #6

      Hi Chris,

      Sorry for long delayed answer. After moving to new house, I forgot this.

      I have checked this one, but it seems that there is no problem of “[math]\Large a+b=b+a[/math]” with this plugin.

      Probably, one of your plugins might remove the backslash sign.

      To check it out, could you disable all plugins in your place and turn on only “YW-LATEX WP Plugin” to see if it shows correctly?

      To narrow it down, you may turn on each plugins to see which one would cause the problem.

      Hope this would help.

      Thanks,

      Daniel

  • Mar 6th, 2010 at 10:20 | #7

    As I mentioned that, it is not integrated with comment in wordpress. I will do it later version. Thank you,

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">