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

  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

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,
    • would create the latex image align along with the wrapping text.

  • Added to enable to use latex in comment. This enables you can post your comment with latex form.

  29 Responses to “YW-LATEX WP Plugin”

  1. This is inline test.

  2. 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?

  3. 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

  4. [...] 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 [...]

  5. [...] Simple Latex http://blog.breadncup.com/yw-latex-wp-plugin/ 公式格式…! -不解析标题 -不解析comments [...]

  6. [...] Simple Latex http://blog.breadncup.com/yw-latex-wp-plugin/ 公式格式…! -不解析标题 -不解析comments [...]

  7. 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

  8. hi just wanted to test this
    \int \frac{3}{4}+x [\math]

  9. 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.

  10. [...] latex, TinyMCE Advanced, WordPress Database Backup, WP-Advanced-Trac, WP-Math-2, WP LaTeX, Youngwhan's Simple Latex Share and [...]

  11. >>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.

  12. [...] 插件主页: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】 [...]

  13. 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

 Leave a Reply

(required)

(required)

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

 

February 2012
S M T W T F S
« Jan    
 1234
567891011
12131415161718
19202122232425
26272829  

Follow Me

© 2011 Bread & Cup Suffusion theme by Sayontan Sinha