Math Equations on The Web

How to write equations in html?

Try mathjax http://www.mathjax.org/ . I personally find it very good.

Math equations on the web

It turns out this is a bit of a pain.

You can use MathML, but browser support is still iffy. If you are starting with latex you've got a few options for converting to html, but they'll all typically end up rendering the actual equations to images and inlining those.

Nothings all that pretty (unless you resort to pdf or something). What's best will depend a bit on what sort of content, how many equations, and how complicated the equations are.

Here is a decent summary.

What's the best way to write Mathematical Equations on the Web?

The jsMath package is an option that uses LaTeX markup and native fonts. Quoting from their webpage http://www.math.union.edu/~dpvc/jsMath/:

The jsMath package provides a method
of including mathematics in HTML pages
that works across multiple browsers
under Windows, Macintosh OS X, Linux
and other flavors of unix. It
overcomes a number of the shortcomings
of the traditional method of using
images to represent mathematics:
jsMath uses native fonts, so they
resize when you change the size of the
text in your browser, they print at
the full resolution of your printer,
and you don't have to wait for dozens
of images to be downloaded in order to
see the mathematics in a web page.
There are also advantages for web-page
authors, as there is no need to
preprocess your web pages to generate
any images, and the mathematics is
entered in TeX form, so it is easy to
create and maintain your web pages.

See for example this page or that one.

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

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

Display math equations in web view

I was missing the css file and copied it to the assets folder and everything works as expected



Related Topics



Leave a reply



Submit