在 Chrome 浏览器中使用 MathJax 呈现 MathML 和 Latex
Rendering MathML and Latex using MathJax in Chrome browser
我是 javascript.Am 的新手,试图呈现包含乳胶和 mathml.I 的 html 页面 mathml.I 当 html.But 当它们同时出现在 link 下面的 time.Used 进行配置时,我无法做到这一点。
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?
config=default">
谁能帮忙解决这个问题。
这是一个同时执行这两项操作的示例文档:
<!DOCTYPE html>
<html>
<head>
<title>TeX and MathML in one file</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</head>
<body>
Both \(1+x\) and <math><mi>x</mi><mo>+</mo><mn>1</mn></math> are the same.
</body>
</html>
你的问题是你没有使用正确的配置文件。 default
配置适用于当您从自己的服务器 运行 MathJax 并且可以使用默认配置时。您不能从 CDN 执行此操作,因此加载处理 TeX 和 MathML 的 pre-defined 配置之一。
我是 javascript.Am 的新手,试图呈现包含乳胶和 mathml.I 的 html 页面 mathml.I 当 html.But 当它们同时出现在 link 下面的 time.Used 进行配置时,我无法做到这一点。
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?
config=default">
谁能帮忙解决这个问题。
这是一个同时执行这两项操作的示例文档:
<!DOCTYPE html>
<html>
<head>
<title>TeX and MathML in one file</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</head>
<body>
Both \(1+x\) and <math><mi>x</mi><mo>+</mo><mn>1</mn></math> are the same.
</body>
</html>
你的问题是你没有使用正确的配置文件。 default
配置适用于当您从自己的服务器 运行 MathJax 并且可以使用默认配置时。您不能从 CDN 执行此操作,因此加载处理 TeX 和 MathML 的 pre-defined 配置之一。