html - 使用 MathML 和 OpenMath 显示数学表达式

标签 html mathjax mathml

首先,我想展示的是

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Mixed Markup</title>

    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
            MathML: {
                extensions: ["content-mathml.js"]
            }
        });
    </script>

    <script type="text/javascript" async
        src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-    AMS-MML_HTMLorMML">
    </script>

</head>
<body>

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <apply><csymbol cd="relation1">eq</csymbol>
        <apply><csymbol cd="fns1">domain</csymbol>
            <apply><csymbol cd="fns1">restriction</csymbol><ci>f</ci><ci>S</ci></apply>
        </apply>
        <ci>S</ci>
    </apply>
</math>

</body>

第二,当我在 Chrome 或 IE 上尝试时,表示为

enter image description here

也就是说,单词domainrestriction 是在HTML 元素中显示的单词,而不是作为符号。

这只是一个例子。大多数使用 OpenMath 的标识符或符号不会显示在网页上。

我引用 MathML 的网站 Content Markup

OpenMath Content Dictionaries

OpenMath Content Dictionaries, fns1

请告诉我为什么......谢谢

最佳答案

this issue可以看出,MathJax 的 Content MathML 扩展不(完全)支持严格内容 MathML;您正在看到这样做的副作用。

关于html - 使用 MathML 和 OpenMath 显示数学表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42547743/

相关文章:

html - css 应用代码中不存在的边距

render - wkhtmltopdf 和 MathJax : equations are rendered too small

jupyter-notebook - Jupyter Notebook:为什么自定义Mathjax宏无法在文件上打开?

javascript - 从 mathml 中制作方程,可由 python 计算

javascript - MathJaX 的 CSS?

css - 很好地排列内联 block div

html - 如何使垂直列表项的高度相同?

javascript - 使用 Javascript 和/或 JQuery,如何根据类查找后代元素?

javascript - Mathjax 在 ajax 调用后不排版方程

winapi - 我如何接受 MathML?