WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Youngwhan's Simple Latex

It enables to put latex formula in wordpress post or comment. Usage: [math]{Latex Syntax}[/math].

It enables to put latex formula in wordpress post or comment. It actually uses mathtex.cgi running top of latex with divpng.

How does it work?

  • Simply, put your latex syntax wrapping [math] in your post or comment.
  • For example, [math]x^2+y^2[/math].

Do I need to install latex or mathtex.cgi in my server?

  • No. It is not necessary. By default, it is good enough to just install this plugin.

Option (pre)

  • When you use simply [math]{Latex Syntax}[/math], or [math pre="0"]{Latex Syntax}[/math], your post will show latex formula.
  • When you use [math pre="1"]{Latex Syntax}[/math], it will show the code like [math]{Latex Syntax}[/math]. It is useful when you wrap it with <pre> tag.
  • When you use [math pre="2"]{Latex Syntax}[/math], it will show the code itself without [math] and [/math] code.

Option (align)

  • Default align option is "top"
  • Possible align options are: "top", "bottom", "middle", "left", and "right".
  • These options are equivalent to , so it's useful if you want to align latex image with wrapping text.
  • For example, [math align="left"]x^2+y^2[/math] will put the latex form at left with the wrapping text.

More information

This plugin depends on mathtex.cgi which is provided by John Forkosh. By default option, it uses http://www.forkosh.com/mathtex.cgi. It means while rendering your latex syntax, it accesses to the shared host to get the correct formula image. Some people does not want to do that.

Here is an option to use your own mathtex.cgi.

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

Once you get the latex(+dvipng) and mathtex.cgi, copy mathtex.cgi into a directory, and specify where the mathtex.cgi is. Generally, it can be located in cgi-bin. For example, http://yourdomain.com/cgi-bin. In this case, you need to specify the location in YW Latex Option page as "/cgi-bin/mathtex.cgi"

If you insist to use the shared host, you have an option to select one of shared hosts like below:

Requires: 2.5 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-16
Downloads: 3,084

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
50,2,1 100,1,1
0,1,0
100,1,1
100,1,1
100,1,1 100,1,1