无意中发现一个神奇的工具,可以直接解析数学表达式为点阵字符图或是gif网址http://www.forkosh.com/mimetex.html
源码http://www.forkosh.com/mimetex.zip。作者有详细的介绍- MimeTeX, licensed under the gpl, lets you easily embed LaTeX math in your html pages. It parses a LaTeX math expression and immediately emits the corresponding gif image, rather than the usual TeX dvi. And mimeTeX is an entirely separate little program that doesn't use TeX or its fonts in any way. It's just one cgi that you put in your site's cgi-bin/ directory, with no other dependencies.
- So mimeTeX is very easy to install.
- Just download mimetex.zip and then type
- unzip mimetex.zip
- cc –DAA mimetex.c gifsave.c –lm –o mimetex.cgi
- Now just mv mimetex.cgi to your cgi-bin/ directory,
复制代码 用法,解析一个latex表达式- MimeTeX.exe "\Large f(x)=\int_{-\infty}^x e^{-t^2}dt"
复制代码
-
- * *
- * *
- *** * *
- * * ** **
- * * *
- * ** **
- * * *
- **** ** ** **** **
- * ** * ** * ** ***************
- * ** * * **
- * ** * * **
- * ** * **
- * ** * **
- * ** * * **
- * ** * * ** ***************
- * ** * ** * **
- * * *** *** *
- * ** **
- * * *
- * * ** **
- ** * *
- * *
- * *
-
复制代码
|