在博客中插入Latex 公式的方法

来源:互联网 发布:windows未能正常启动 编辑:程序博客网 时间:2024/04/28 21:16

http://blog.csdn.net/abcjennifer/article/details/8036018


在博客中插入Latex 公式的方法:

1. 访问Latex在线编辑器,将下方code复制到博客中的源代码里,如:

[plain] view plaincopy
  1. P(x|c)=\frac{P(c|x)\cdot P(x)}{P(x)}  

得到
[html] view plaincopy
  1. <a href="http://www.codecogs.com/eqnedit.php?latex=P(x|c)=\frac{P(c|x)\cdot P(x)}{P(x)}" target="_blank"><img src="http://latex.codecogs.com/gif.latex?P(x|c)=\frac{P(c|x)\cdot P(x)}{P(x)}" title="P(x|c)=\frac{P(c|x)\cdot P(x)}{P(x)}" /></a>  

插入源代码,得到:


或者直接在html中添加:<img src="http://latex.codecogs.com/gif.latex?在这里填写你的latex代码" /> 
 例如:<img src="http://latex.codecogs.com/gif.latex?35*d_5+1(\oe%20)"  />

 


2. 公式手写器

只要手写就好了哦,亲!!!

链接在此~~



3. Google Chart Tools / Image Charts

 Google Chart地址:

  • http://chart.apis.google.com/chart?cht=tx&chl= (个人测试好像不能使用https;基于Google主域名,相对安全–指Google主域名一般不会撞墙)
  • http://chart.googleapis.com/chart?cht=tx&chl= (非SSL链接,基于Google Apis域名)
  • https://chart.googleapis.com/chart?cht=tx&chl= (安全链接,基于Google Apis域名)
但Google Chart对于插入公式来说是大材小用了。

 除了常规的饼形图、折线图、冒泡图和柱状图等,还有QR二维码、能量条、极坐标图……好吧,只要你能想到,就能通过URL调用。


Reference:

1. 吉博的blog

2. Latex 公式的书写:Practice Box

3. Delbert's Blog

原创粉丝点击