Is there a way to have math formulas look nice on a web page (as in LateX, for instance)

泪湿孤枕 提交于 2019-11-29 03:59:36
Graham Clark

Check out MathOverflow, which uses jsMath. Looks pretty good, but can take a few seconds to render everything.

George

You may also check MathJax, which supports rendering both LaTex and MathML.

Check out this review of all of the options for web math display.

MathJax is the best option, but it's still in beta. As far as I can tell though, it's the only solution still under development and it should reach 1.0 soon.

Katex

A couple of developers from the Khan Academy released a blazing quick library based off of Tex called Katex:

  • Fast
  • High-quality
  • Self-contained; and,
  • Can be rendered on the server

Looks like a great modern option.

The portable way is to use images.

MathML really isn't widely adopted.

You can do it with CSS, but again its very different to look right across a wide range of browsers

Here is excellent advice: http://www.cs.tut.fi/~jkorpela/math/

There is MathML, which some of the newer browsers support. But as a fallback, you will need to use images.

Take a look at MathML, which has both presentation and content flavors.

What about jsMath, as used by MathOverflow?

MathJax is the new version of jsMath. You might want to also check out jqmath at http://mathscribe.com/author/jqmath.html. I wrote it to be simple, small and fast.

MathML should be the standard way to do this, but it's not supported by all browsers. The newest Google Chart Tools have support for mathematical (TEX) formulas.

I found this https://github.com/mathjax/mathjax very useful. It supports:

  • AsciiMath
  • LaTeX
  • Tex
  • MathML
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!