Revision [20104]

This is an old revision of mimetex made by KyAnh on 2008-06-30 12:46:21.

 

mimetex.cgi support


Display tex code by using mimetex.cgi. Replace $mimetex_cgi with your alternative. If you donnot have a hosted mimetex.cgi, don't be worry. Feel free to send email to xkyanh_at_gmail.com to register a free mimetex.cgi support. Please give me some information about your hostname. I need that information to protect my server from attacking.

mimetex.php (line 0)
<?php

/**
 * Display tex code using http://kyanh.net/cgi-bin/mimetex.cgi
 *
 * Configuration: replace $mimetex_cgi with your alternative. If you donnot have
 * a hosted mimetex.cgi, don't be worry. Feel free to send email to xkyanh@gmail.com
 * to register a free mimetex.cgi support. Please give me some information about
 * your hostname. I need that information to protect my server from attacking.
 *
 * Example: {{tex code="x^2+y^2"}}
 *
 * @package     Actions
 * @version     $Id$
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
 * @filesource
 *
 * @author {@link http://wikkawiki.org/kyanh kyanh} (original code)
 *
 **/


$mimetex_cgi = "http://kyanh.net/cgi-bin/mimetex.cgi";
$code = $vars['code'];
$title = $alt = $this->htmlspecialchars_ent($code);

$output = "<img src=\"$mimetex_cgi?".$code.'" alt="'.$alt.'" title="'.$title.'" />';
print($output);
?>


CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki