【问题标题】:MathML UpIntegralsMathML UpIntegrals
【发布时间】:2015-05-29 16:39:08
【问题描述】:

我是 html、css 和 mathml 的新手,但现在可以很好地生成在 Firefox 中呈现的数学,但速度很慢。我的问题是如何在 STIX 字体中使用向上整数符号。

<mo>&#x222b;</mo>

默认产生一个倾斜的符号。使用 fontfamily="STIXIntegralsUp" 对 Firefox 没有影响,但在其他浏览器中会产生一个向上的整数符号。我还安装了 STIXMath 字体,但向上整数符号没有 unicode。如何在没有 unicode 的情况下使用这些符号?

简而言之,如何在 Firefox 中生成向上整数符号?

【问题讨论】:

    标签: mathml


    【解决方案1】:

    简而言之,如何在 Firefox 中生成向上整数符号?

    <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><mo>∫</mo></math>
    

    如果您不希望等式居中,

    <math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mo>∫</mo></mstyle></math>
    

    更新

    使用 fontfamily="STIXIntegralsUp" 对 Firefox 没有影响,但在其他浏览器中会产生一个向上的整数符号。

    fontfamily 已弃用,因为您可以签入http://www.w3.org/TR/MathML3/chapter3.html。 Firefox 基于新规范进行了更新,但其他浏览器没有。

    【讨论】:

    • 非常感谢您的帮助。不幸的是,当在我的系统上的 Firefox 中呈现时,代码中的向上积分变成了倾斜积分。使用 Firefox 38.0.1 运行 Yosemite 的 Mac。我对 fontfamily 的引用在 CSS 代码中:math { font-family: "STIXIntegralsUp", "STIXGeneral"; }
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多