News for hackers. Stuff that matters.
Re:Math pastebin with LaTeX math equation rendering by 1gor on Friday January 02, 2009 @02:42AM (#417175)
For a hosted math Mimetex is a proven open source solution (http://www.forkosh.com/mimetex.html).

Mimetex is a web-based program that generates LaTeX images (math) on the fly, if you use it like this: <img src="http://www.forkosh.dreamhost.com/mimetex.cgi?c=\sqrt{a^2+b^2... alt="" border=0 align=middle>.

To do a plugin that does [tex]\sqrt{a^2+b^2}[\tex] is simple (PHP).

   $text = preg_replace('/\[tex\](.*?)\[\/tex\]/ie',
   "'<img src=\"/cgi-bin/mimetex.cgi?'.rawurlencode('$1').'\"          
   align=\"middle\" />'", $text);
To do something like this with JavaScript is also trivial.

Mimetex is great beause A) you don't need to have a full TeX installation on your server, the program generates it internally B) you don't need to worry about scalability - mimetex can be compiled with caching enables, which makes it the same as static images

Re:Math pastebin with LaTeX math equation rendering by Theseus on Friday January 02, 2009 @04:53AM (#417237)
http://code.google.com/p/latex-composer/

firefox extension based on mimetex

Re:Math pastebin with LaTeX math equation rendering by jhayes on Thursday January 01, 2009 @11:06PM (#417017)
A similar idea is this firefox plugin, TeX the World: http://thewe.net/tex/

Pros: - Works on any site (I've only checked it out in gchat though).

Cons: - Not as pretty (if it matters to you) and requires both sides to d/l firefox extension really (not for emails though).

Re:Math pastebin with LaTeX math equation rendering by cgranade on Thursday January 01, 2009 @11:28PM (#417033)
Another pro? It's also a Greasemonkey userscript, so you don't even need the extension if you're already a GM user.
Re:Math pastebin with LaTeX math equation rendering by jackowayed on Thursday January 01, 2009 @09:55PM (#416957)
That's a cool idea. So cool that I was thinking of writing it myself.

I really like the code-creating buttons and reference page. They make it faster and easier.

The equations seem to be displayed a bit small though. My test paste (http://mathbin.net/4315) doesn't go that deep into fractionage and the like, but it's already a little hard to read some of it.

Then I did a deeply-fractioned 1 (but not so deep as to be ridiculous) and the e is barely legible.

Re:Math pastebin with LaTeX math equation rendering by rand0m on Friday January 02, 2009 @05:16AM (#417246)
Re:Math pastebin with LaTeX math equation rendering by hardik on Friday January 02, 2009 @01:10AM (#417121)
Superb! Just what I wanted some months backs and had given up on.. I am surely gonna send you visitors by the truckload in coming weeks.
Re:Math pastebin with LaTeX math equation rendering by Oompa on Friday January 02, 2009 @12:06AM (#417066)
This place is great for asking for math help on IRC.