Greasemonkey script to insert math in gmail

I need an easy way to pass math equations using gmail.

Here the javascript script is called AsciiMath, which should convert Tex-like equations to standard mathML.

I thought it would be nice to use this script with GM. I thought that before sending email this script will convert all equations of type TeX to your email address in MathML. Thus, a reader who uses FF (or IE with MathPlayer installed) will be able to read these equations easily.

Ideally, I want to somehow save the original equations of type TeX in a text message so that it can be read by regular text mail clients such as mutt .

Obviously, the weakest link here is the client software, which most likely does not support MathML. However, if my correspondent uses Firefox and some kind of webmail (which is pretty reasonable), it should work.

My question is: is this possible? Has anyone done this?

Do you see any technical problems with this approach (gmail-filtering MathML, the client does not disclose it correctly, etc.)?

Any smarter ideas?

+7
javascript email gmail latex mathml
source share
4 answers

GmailTeX does exactly what you want. This is pure javascript, so it works in Firefox, Chrome, Opera.

+6
source share

How about using texify and converting it only to an html image or link to that image? This will save some work with parsing and converting tex math code and wold work even with simple email clients.

+2
source share

Depending on who you are talking to with the simplest solution, you can sometimes send raw tex by email.

0
source share

As far as I can tell, GmailTeX (suggested in the top answer) no longer works in Firefox.

I can offer a MathQuill browser plugin for Gmail (also exists for Chrome ) that allows you to edit formulas in the Gmail layout window and convert them to images. (Like GmailTeX in concept, but with an interactive editor.)

Disclaimer: I am the author of the plugin.

0
source share

All Articles