# Rendering Math Equations in Hexo

## 转义与兼容性

Hexo-math 是目前使用最广泛的 Hexo 数学公式插件，它集成了对 MathJax 和 KaTeX 两个渲染引擎的支持。安装的过程很简单：

You can use inline math syntax directly. But always remember to escape any special characters by adding a \ before it. LaTex equations usually contains tones of special characters like \, which makes it painful to escape them one by one. In such cases, you can use hexo-math's tags to make your life easier.

## 自己动手，丰衣足食

• 是否需要加载数学公式渲染引擎
• 需要加载时，是使用 MathJax 还是 KaTex

$\displaystyle {1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots }= \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1.$