开发者

How to add a mathematical notation into html document (inline)

开发者 https://www.devze.com 2023-03-09 05:32 出处:网络
How can I write mathematical notation (ital, sub/sup script, greek letters) in and html page. I need this letters to be inline. I tried wrapping them with <MI></MI> or <MATH></MAT

How can I write mathematical notation (ital, sub/sup script, greek letters) in and html page. I need this letters to be inline. I tried wrapping them with <MI></MI> or <MATH></MATH> but it didn't work. Is mathml nee开发者_运维百科d some additional software installed on the server or additional browser feature?

Thanks


If you want to do it in markup, you'll need MathML. However, browser support is very limited.

Currently, the only major browser to support it is Firefox.

You can test whether your browser supports it in this jsfiddle (code borrowed from the Wikipedia article on MathML).

This site has what seems to be a pretty decent introduction to the syntax of MathML, if you aren't familiar with it.


You can use the MathJax javascript library. The Math stackexchange site uses it too.

http://www.mathjax.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消