A patch for gaim

This patch allows you to type latex into gaim and have it display properly. All you have to do is enclose your latex code in double dollar signs. For example, you could type

$$ \int _a ^b f(x) dx $$

and you'd see

This patch is for gaim version 0.77. Download gaimlatex-patch-0.77 and then run

$ cd /path/to/gaim-0.77
$ patch -p1 < /path/to/gaimlatex-patch-0.77 
Then compile as normal. To use it, you need to unpack this in your ~/.gaim directory. You'll also need working pdflatex and ghostscript (gs for unix, gswin32c.exe for windows) programs in your path.

Since windows people aren't used to compiling things, here's a binary.

A note for windows users: For me, gaim considers ~/.gaim to be C:\Documents and Settings\Larry\Application Data\.gaim. I don't think it's the same for every version of windows, but you can figure out where gaim is trying to find it by opening gaim's debug window, trying to use latex, and reading the error message.

All of the tex code in gaimlatex.zip is from Equation Service.