Revision [20110]

This is an old revision of mimetex made by KyAnh on 2008-06-30 13:03:22.

 

mimetex.cgi support


Render 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.

The author of this support is kyanh

mimetex.php (line 1)
  1. <?php
  2.  
  3. /**
  4.  * Display tex code using http://kyanh.net/cgi-bin/mimetex.cgi
  5.  *
  6.  * Configuration: replace $mimetex_cgi with your alternative. If you donnot have
  7.  * a hosted mimetex.cgi, don't be worry. Feel free to send email to xkyanh@gmail.com
  8.  * to register a free mimetex.cgi support. Please give me some information about
  9.  * your hostname. I need that information to protect my server from attacking.
  10.  *
  11.  * Example: {{tex code="x^2+y^2"}}
  12.  *
  13.  * @package     Actions
  14.  * @version     $Id$
  15.  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
  16.  * @filesource
  17.  *
  18.  * @author {@link http://wikkawiki.org/kyanh kyanh} (original code)
  19.  *
  20.  **/
  21.  
  22. $mimetex_cgi = "http://kyanh.net/cgi-bin/mimetex.cgi";
  23. $code = $vars['code'];
  24. $title = $alt = $this->htmlspecialchars_ent($code);
  25.  
  26. $output = "<img src=\"$mimetex_cgi?".$code.'" alt="'.$alt.'" title="'.$title.'" />';
  27. print($output);
  28. ?>


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