LaTeX技巧8:在博客中插入LaTex数学公式

转自:http://blog.sina.com.cn/s/blog_5e16f1770100fqi2.html

现在推荐 John Forkosh 的 可以将LaTeX的数学公式转换为图像嵌入网页中, 即"real  math images in html documents". 个人感觉mathTex好看点。(http://www.forkosh.com/cgi-bin/weblist.cgi?-t=weblist&-o=php&-f=sources/mimetexquickstartweb.php#preview)

用法很简单, 把LaTex公式代码放在mathtex.cgi?后面, 以图像输出。

mathTex也适合LaTex初学者练习, 就不用编译那么麻烦了.

请看下面几个例子

<img src="http://www.forkosh.dreamhost.com/mathtex.cgi?\Large f=b_o+\frac{a_1}{b_1+\frac{a_2}{b_2+\frac{a_3}{b_3+a_4}}}">


输出结果

公式1


<img src="http://www.forkosh.dreamhost.com/mathtex.cgi?\Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}">

输出结果

公式2


<img src="http://www.forkosh.dreamhost.com/mathtex.cgi?\large f(x)={\Large\frac1{\sigma\sqrt{2\pi}}} \int_{\small-\infty}^xe^{-\small\frac{(t-\mu)^2}{2\sigma^2}}dt">

输出结果

公式3



 

有兴趣的请参考使用手册

http://www.forkosh.com/mathtex.html

http://www.forkosh.com/mimetexmanual.html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值