带有MathJax v3.0的自动方程式编号

问题描述 投票:0回答:2

我想在MathJax v3.0中使用add equation numbers。我不明白以下代码必须添加到哪里:

window.MathJax = {
  tex: {
    tags: 'ams'
  }
};

我在一些试验中将JSFiddle here设为无效。

编辑:我需要自动编号所有方程式。

mathjax
2个回答
2
投票

[使用配置tag:'ams'时,您需要用\begin{equation}\end{equation}包装方程式。因此,将方程式写为-

\begin{equation}
x_1 = \sqrt(y) 
\end{equation}

0
投票

ams更改为all可解决问题:

<script>window.MathJax = { tex: { tags: 'all' } }; </script>

https://jsfiddle.net/Lordfc0v/2/

© www.soinside.com 2019 - 2024. All rights reserved.