姆切姆

这个 mhchem extensions implements the \ce and \pu chemical equation macros of the LaTeX mhchem package. See the mhchem home page 有关的更多信息和文档 mhchem .

例如

\ce{C6H5-CHO}
\ce{$A$ ->[\ce{+H2O}] $B$}
\ce{SO4^2- + Ba^2+ -> BaSO4 v}

autoload 使用分机。装入 mhchem 显式扩展,添加 '[tex]/mhchem'load 数组 loader 块的mathjax配置,并添加 'mhchem'packages 数组 tex 块。

window.MathJax = {
  loader: {load: ['[tex]/mhchem']},
  tex: {packages: {'[+]': ['mhchem']}}
};

或者,使用 \require{{mhchem}} 在tex表达式中,从页面上的数学中动态加载它,如果 require 已加载扩展名。

注解

实施 mhchem 原始 Latex 包的作者为mathjax完全重写了扩展。旧版本的mathjax版本2.7仍然可用,但它不再是mathjax版本3的一部分。只有更新版本的 mhchem 可用。


mhchem命令

这个 mhchem 扩展实现以下宏: \ce\longleftrightarrows\longLeftrightharpoons\longrightleftharpoons\longRightleftharpoons\pu\tripledash\xleftarrow\xleftrightarrow\xLeftrightharpoons\xrightarrow\xrightleftharpoons\xRightleftharpoons