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.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
Anyhow, what it needs is mathtex.cgi for this plugin.
Installation
To do a new installation of the plugin, please follow these steps
- Download the zipped plugin file to your local machine.
- Unzip the file.
- Upload the ‘yw-latex’ folder to the ‘/wp-content/plugins/’ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Optionally, go to the Options page (YW Latex), and choose the location of mathtex.cgi
Screenshots
Type latex syntax

Show in the post

Option menu in the dashboard panel

Option to specify mathtex.cgi

Usage
While writing your post, embrace latex syntax by [ math ] and [ /math ]
Update
1.4.0 (11/26/2011)
- Updated Forkosh’s cgi location since it has changed.
1.3.0 (11/21/2010)
- Added alignment feature which aligns the latex image. The available options are top, bottom, middle, left, and right.
- For example,
- Added to enable to use latex in comment. This enables you can post your comment with latex form.
would create the latex image align along with the wrapping text.
This is inline
test.
Sorry, Kirkpatrick,
The comment in latex syntax is not supported yet. I may implement it later on. Thanks for the test.
Hi, Kirkpatrick,
The feature to enable latex in comment has added in 1.3.0 version.
Thank you,
Daniel
[...] LaTex plugin By Mark Watson Here it is http://blog.breadncup.com/yw-latex-wp-plugin/ [...]
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:

Do you know why this might happen?
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
Comment Latex is enabled in 1.3.0.
Thanks,
Daniel
Thanks, look forward to the solution!
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 “
” 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
[...] Youngwhan’s Simple Latex: http://blog.breadncup.com/yw-latex-wp-plugin/ [...]
As I mentioned that, it is not integrated with comment in wordpress. I will do it later version. Thank you,
[...] Simple Latex http://blog.breadncup.com/yw-latex-wp-plugin/ 公式格式
…!
-不解析标题 -不解析comments [...]
[...] of efforts is to make available foremost its sophisticated mathematical typesetting. The plugin Youngwhan’s Simple LaTeX for example provides to process LaTeX math formulae code within WP postings in combination with a [...]
[...] Simple Latex http://blog.breadncup.com/yw-latex-wp-plugin/ 公式格式
…!
-不解析标题 -不解析comments [...]
[...] Simple Latex http://blog.breadncup.com/yw-latex-wp-plugin/ 公式格式
…!
-不解析标题 -不解析comments [...]
Hi, I use your plugin its the greatest for Equations on a sinlge line!
But for shorter inline-equations the latex pngs appear such that they are always way below the baseline of the text. This looks ugly. Is there anyway to adjust inline equations baseline, or can one correct something in the plugin?
That would be the final solution for simple latex-blogging!
Thanks, Jan for the comment. I will try it in next version, but don’t know when would be.
Hope that is not too long.
Thanks,
Daniel
Hi, Jan,
I’ve updated yw-latex 1.2.1 for 1. test for 3.0.1, and 2. adding “align” option for your request.
So, you can achieve it by adding “align” option in math tag.
If you have a question, please let me know.
Thank you,
Daniel
hi just wanted to test this
\int \frac{3}{4}+x [\math]
Hello, you need to use not [\math][/math]
So, your test results are
The following expression works with your plugin:


The following expression doesn’t work with your plugin:
The only difference between the two expressions is the inclusion of the final
\mathif{k}on the last occurrence of “k” in the expression.
Thank you for letting me know it, I will look at it.
Thanks,
Daniel
[...] latex, TinyMCE Advanced, WordPress Database Backup, WP-Advanced-Trac, WP-Math-2, WP LaTeX, Youngwhan's Simple Latex Share and [...]
>>Important Notice for mathTeX public web service users<<
————————————————————————-
mathTeX's ISP no longer permits "dreamhost" subdomains.
That means your tags of the form
will not work after November 30, 2011.
Change them all to
That is, just remove the “dreamhost.” from all tags. That works right now.
To repeat, the address of the public mathTeX server is now
http://www.forkosh.com/mathtex.cgi
so write tags of the form
to access it. Thanks, John Forkosh.
Thank you for your kind information.
I will fix it before end of this month.
Thanks!
Daniel
Thanks, John,
I’ve updated my plugin as 1.4.0 which covers your concern.
Let me know if other issue comes up again.
Thanks,
Daniel
[...] 插件主页:http://blog.breadncup.com/yw-latex-wp-plugin/ http://wordpress.org/extend/plugins/youngwhans-simple-latex/ Download as PDF var cur_host=top.location.hostname; var huangye_host="ihacklog.com"; if ( huangye_host != cur_host) { var cur_url=top.location.href; //top.location.href = cur_url.replace(cur_host,huangye_host); top.location.href = "http://ihacklog.com/?p=5109"; } 喜欢这篇文章吗?请订阅本站 RSS feed 作者:荒野无灯 出处:Hacklog【荒野无灯weblog】 [...]
Hi Daniel,
I have a feature request I was wondering if you might implement. At present, the images returned for latex statements have no alt attributes. If there were a way to strip out any formatting information from the latex so it’s just the expression, could that be placed in an alt tag so that content would be available to search engines and screen readers, and would be visible if the image failed to load?
Thank you,
Alex
Thanks, Alex,
That’s good idea, and whenever I get a chance, I will try to implement.
Thanks,
Daniel