(En) Configure mhchem in this Template

2023/11/05 Coding-Issues

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 使用介绍.

文档信息

Search

    Table of Contents