If you are using hexo with the help of Next theme and you want to show some professional equations, please see this post. It will tell you how to render math equations.
Since hexo cannot recover the exactly environment if you change you computer or what so ever, so it is not necessary to show the env parameters.
The followings are steps:
- go to
themes/next/_config.yml, look formathand you will find:
math:
enable: false
...
engine: mathjax
change it to
math:
enable: true
...
engine: mathjax
- For now, next provides two render engines: Mathjax and Katex.
In my case, I use Mathjax.
Before texting it, you need to do a little bit more.
npm un hexo-renderer-marked --save
npm i hexo-renderer-kramed --save
- Finally,
hexo clean && hexo s, you can see it locally.
You don’t see it?
Because you have to enable in posts’ header. Defaultly, it will not render unless you write something like this:
---
title: xxxxxx
date: 2018-03-22 11:07:57
tags:
categories:
mathjax: true
---
More about Mathjax in Markdown
- For centered formulae, use
\\[and\\]. - For inline formulae, use
\\(and\\).