Youngwhan’s Simple Latex

0

This plugin helps to represent latex syntax to your blog. The usage is simple. [math]{Latex Syntax}[/math]. E.g., [math]x^2+y^2[/math] Special thanks to John Forkosh providing the cgi.

Version
Last updated
Active installations
WordPress Version
Tested up to
PHP Version
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

This plugin helps to represent latex syntax to your blog.

The usage is simple. [math]{Latex Syntax}[/math]. E.g., [math]x^2+y^2[/math]

Special thanks to John Forkosh providing the cgi. (http://www.forkosh.com/mathtex.html)

This is relying on the CGI and when you install it, it will install the CGI automatically. So, you don’t need to do anything.

Also, note that the CGI is manintained by John Forkosh, and whenever he updates it occasionally (maybe once a year), this plugin would be out of date for the new CGI for a moment. However, I will update it as soon as possible when it is updated.

When there is an error, the error log message is shown in the options page.

How to use

  • Usage : [math]{Latex Syntax}[/math]
  • Example: [math]x^2+y^2[/math]

Couple of options are available to adjust the presentation.

Option1: pre

“pre” option helps you to present the latex syntax itself other than rendering.

  • Usage: [math pre={Choose Number}]{Latex Syntax}[/math]
  • [math pre=”0″]{Latex Syntax}[/math]: Displays latex expression. It’s equivalent to [math]{Latex Syntax}[/math]
  • [math pre=”1″]{Latex Syntax}[/math]: Wrapping with <pre>, which shows [math]{Latex Syntax}[/math] itself. This helps to show the code itself
  • [math pre=”2″]{Latex Syntax}[/math]: Same as pre=”1″, but it doesn’t show [math] and [/math] code.

Option2: align

“align” option helps you to present the position of the rendered latex image.

  • Usage: [math align=”{Choose Alignment}”]{Latex Syntax}[/math]
  • {Choose Alignment}: “top” (default), “bottom”, “middle”, “left”, “right”.
  • It is equivalent to <img style=”float:{Choose Alignment}”/>
  • For example, [math align=”left”]x^2+y^2[/math] will put the latex form at left with the wrapping text.

YW Latex Settings

Typical setup is to put the cgi location of your domain + cgi path.

For example,

https://yourdomain.com/wp-content/plugins/youngwhans-simple-latex/mathtex.cgi