# 博客中插入公式——之在线数学公式生成

## 首先肯定是解决如何在博客中插入公式：

1,在博客设置中，html头中添加代码，导入mathML库如： <script type="text/javascript" src="http://common.cnblogs.com/script/ASCIIMathML.js"></script>

\frac{{-b}\pm\sqrt{b^2-4ac}}{2a} \$

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

$35*d_5+1(\oe )$

## 现在最主要的是要得到公式的LaTex代码：

### 2、MathType to LaTex

MathType 中Ctrl+C得到的代码：
[plain] view plaincopy

1. % MathType!MTEF!2!1!+-
2. % feaaguart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn
3. % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr
4. % 4rNCHbWexLMBbXgBd9gzLbvyNv2CaeHbl7mZLdGeaGqiVu0Je9sqqr
5. % pepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9vqaqpepm0xbba9pwe9Q8fs
12. % aWbaaSqabeaacaaIYaaaaaaakiaawUhaaaaa!5D4F!
13. $\left\{ \begin{gathered} 14. a + b + x = 3y \hfill \\ 15. ax - by = 1 \hfill \\ 16. ab + xy = 2 \hfill \\ 17. a + b = {(x + y)^2} \hfill \\ 18. \end{gathered} \right.$

[plain] view plaincopy

1. $\left\{ \begin{gathered} 2. a + b + x = 3y \hfill \\ 3. ax - by = 1 \hfill \\ 4. ab + xy = 2 \hfill \\ 5. a + b = {(x + y)^2} \hfill \\ 6. \end{gathered} \right.$

$\left\{ \begin{gathered} a + b + x = 3y \hfill \\ ax - by = 1 \hfill \\ ab + xy = 2 \hfill \\ a + b = {(x + y)^2} \hfill \\ \end{gathered} \right.$

3、在线数学公式输入

posted @ 2014-03-28 08:58  二郎那个三郎  阅读(8291)  评论(0编辑  收藏  举报