数学公式插件mathjax

378 阅读1分钟

示例代码:

<!DOCTYPE html>
<html lang="en">

<head>
  <script type="text/javascript" id="MathJax-script" async
    src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">

    </script>

</head>

<body>

  设甲做了x天,则乙做了\((12 - x)\)天。甲的工作效率为\(\frac{1}{10}\),乙的工作效率为\(\frac{1}{15}\),根据工作量关系列方程:\(\frac{1}{10}x+\frac{1}{15}(12 -
  x)=1\)。
 
</html>

在豆包中可生成mathjax格式的文本,只需要输入“生成mathjax”即可。 提示:cdn.jsdelivr.net为全球公共免费cdn库。