I was writing the post (En) Systems Biology and needed to use mhchem
for chemical reaction typing.
In this post, I will describe how to make it work. As a computer rookie, I don’t know why A doesn’t work but B works. By trials and errors, I know something works, but not knowing why.
Scanning through all the files in the repository, I don’t know how MathJax
was enabled in this template, and we can type mathematical expressions by having mathjax: true
at the beginning of each post.
In order to use mhchem
, go to \includes\header.html
, and add these lines
<!-- for mhchem support -->
before the end of the “head” section.
In the posts need mhchem
, substitute mathjax: true
with mhchem: true
. Type all mathematical expressions with only one “$” surrounding each expression.
The method in this post was inspired by mhchem 使用介绍.
文档信息
- 本文作者:L Shi
- 本文链接:https://SHI200005.github.io/2023/11/05/mhchem/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)