This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Youngwhan's Simple Latex

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

Screenshots

  • Text Edit for latex syntax
  • Actual presentation of the latex.
  • Option menu in Administrator Panel
  • Option to specify mathtex.cgi location.

Installation

  • Just install this plugin into the wordpress. No other setup is required.

FAQ

What is latex?
(La)Tex Syntax References
Error: your-domain is not authorized to use mathTeX on this server

This means you’re trying to use the cgi where it is not in your domain. Please, use this plugin in your domain.

Reviews

February 7, 2017
Hi i have a Sensei Woothemes wp plugin that create online courses, and the problem is that it doesn't recognize the latex code to display the maths formulas so it should be modified(code should be integrated to its core files). can annyone help me figure out this thing i am willing to pay 100$ by paypal to the one who figure it out. this is my e-mail : kmehdi@iastate.edu feel free to contact me Thanks,
Read all 2 reviews

Contributors & Developers

“Youngwhan's Simple Latex” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.62

  • Fix the existing option field was not applied properly

1.61

  • Cleaned up existing cgi location with providing settings class
  • Starting version recording

1.6

  • Added a feature to uninstall to remove options.
  • Added a feature to install cgi automatically.
  • Fixed an issue that an image is not aligned properly.

1.5.6

  • Revert the default cgi back to mathtex.cgi for better image quality and update readme.txt about the description/FAQ

1.5.5

  • Default cgi location has changed from http://www.forkosh.com/mathtex.cgi to http://www.forkosh.com/mimetex.cgi

1.5.4

  • Bump version 5o 1.5.4 for WordPress 4.0 compatible check

1.5.3

  • Bump version to 1.5.3 and minor cosmetic changes

1.5.2

  • Minor fix again for the rendering it in comment.

1.5.1

  • Minor updated that it needs to reserve whitespaces in other options.

1.5

  • Removed wpautop functionality for this plugin’s shortcode, “math”.

1.4.2

  • changed all version to match 1.4.2

1.4.1

  • Minor updated for readme.txt to follow wordpress readme.txt format

1.4.0

  • Keep the version and updated readme.txt for the standard format
  • Updated Forkosh’s cgi location since it has changed.

1.3.0

  • Added a feature to enable to write latex in comment.

1.2.1

  • Fix a bug in 1.2.0 printing ‘n’, which was typo.

1.2.0

  • Added “align” option in “[math]” tag.

1.1.0

  • Added “pre” option

1.0.3

  • Updated readme.txt

1.0.2

  • Modified small readme.txt

1.0

  • Created the first version of latex plugin for wordpress.