在MathJax中赞成使用TeX的MathML语法的任何理由? [英] Any reason to favor MathML syntax over TeX in MathJax?

查看:153
本文介绍了在MathJax中赞成使用TeX的MathML语法的任何理由?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MathJax ,开源的JavaScript库来渲染数学,支持多种语法,包括MathML和LaTeX。是否有理由赞成使用MathML语法来编写页内方程与TeX语法?它只在我看来,MathML是非常详细的。

MathJax, opensource javascript library to render maths, support multiple syntaxes, including MathML and LaTeX. Are there any reason to favor the use of the MathML syntax for in-page equations vs the TeX syntax? It only looks to me that MathML is vastly more verbose.

推荐答案

如果您不需要人工编写公式,则MathML更加健壮。对标记有一个清晰的解释(在所有MathJax实现中默认使用哪种显示模式?),MathML的文本到语音支持的机会更大。用XPath搜索你的数学元素是很容易的。

If you do not need a human to write the equations, MathML is more robust. There's a clear interpretation to the mark-up, (which display mode will be used by default in all MathJax implementations?), there's a better chance for text-to-speech support for MathML. It is easy to search by XPath where your mathematical elements are, etc.

MathJax方法的其他缺点是,启动时间税,它迫使你的浏览器使用Javascript。

Other disadvantages of the MathJax approach are, start-up time tax, the fact it forces your browser to use Javascript.

这篇关于在MathJax中赞成使用TeX的MathML语法的任何理由?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆