def mtex(tex, alt='')
esctex = CGI::escape(tex)
esctex2 = CGI::escape(esctex)
gif = "mimetex/" + esctex + ".gif"
if (!File.exists?(gif)) then
system("QUERY_STRING='' ./mimetex.cgi -f '#{tex}' > #{gif}")
end
%Q()
end
def about_mtex
<<-ABOUT
!Syntax
{{mtex(TEX [, ALT])}}
!Description
This plugin formats TEX as an HTML img message as follows:
You need mimetex.cgi in hiki.cgi directory.
(http://www.forkosh.com/mimetex.html)
ABOUT
end