首先进入到Hexo项目的根目录中,运行 1
2
3npm install hexo-math hexo-renderer-pandoc #当你使用npm时
or
yarn add hexo-math hexo-renderer-pandoc #当你使用yarn时
1 | #插件 |
需要安装pandoc
命令,用以支持LaTex的解析 1
2
3brew install pandoc #当你使用macOS时
or
sudo apt-get install pandoc #当你使用ubuntu时
如果已经构建过项目,请先进入项目根目录下运行,清除缓存 1
hexo clean
然后进行正常的hexo的生成和测试 1
hexo g & hexo s
$$\begin{align*}len = \sqrt{(X_{Split_{m}}-X_{SP})^{2}+(Y_{Split_{m}}-Y_{SP})^{2}}\\\\\theta = \arctan \frac{X_{Split_{m}}}{Y_{Slit_{m}}}\\\\Y_{offset} = len·\cos \theta \\\\C1=(X_{Split_{m}},Y_{Split_{m}}-len)\\C2=(X_{Split_{m}},Y_{Split_{m}}+len)\end{align*}$$
图1.1