添加Mathjax
新建load-mathjax.js
文件,然后在html中文件引入使用。
测试展示1
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
测试展示2
- $ \mathbf{x}_{0} $: the orignal image
- $ \mathbf{x}_{T} $: the latent variable. We want $ \mathbf{x}_{T}\sim \mathcal{N}(0,\mathbf{I}) $.
- $ \mathbf{x}_{1},\dots,\mathbf{x}_{T-1}$: the intermediate states.
优点:不需要添加其他插件即可在页面上直接显示公式。
缺点:添加了mathjax支持之后,网页加载会变慢。
参考文档