Math and Hypertext

Hypertext is appealing because it offers a way of organizing information so that the interconnections between ideas can be laid bare. A mathematics text is often internally cross-referenced to a great extent. Is paper still the best medium for presenting ideas?

HTML 3.0 was a proposed hypertext specification of the World-Wide-Web Consortium (W3C) which included mathematical capabilities. It resembled TeX in syntax, with modifications to make it compatible with HTML syntax. You can try it out if you are using an older version of the Arena browser. Unfortunately the HTML 3.0 specification was abandoned, and its successor, HTML 3.2 has dropped the math part of the specification. Current versions of the Arena browser don't even display the math part of the HTML 3.0 demonstration document correctly.

A currently developing attempt at a standard is MathML, another project of W3C. Much has changed since the failure of the HTML 3.0 specification, and MathML may well succeed.

The Arena browser, which was the testbed of math support in HTML 3.0 is no longer supported by W3C (it is currently in the hands of Yggdrasil). The newer Amaya browser is the W3C organization's current testbed for MathML. We will be able to say that MathML has arrived when it is supported by Microsoft and Netscape. These companies are not represented on the MathML task force. However, both companies are involved in the XML specification, and XML support is promised or already implemented for both Netscape Navigator and Microsoft Explorer. Since, according to W3C ``MathML is cast as an application of XML. As such, with adequate style sheet support, it will ultimately be possible for browsers to natively render mathematical expressions,'' this means that Netscape and MS Explorer should eventually support MathML.

Unfortunately MathML appears unnecessarily complex and, unlike TeX can't be easily written by hand. Is there no better way? A fairly obvious idea is that html could have a ``tex'' tag. You'd write:

<tex> \int_{-\infty}^\infty e^{-\pi x^2}\,dx=1 </tex>

Or if you wanted a displayed formula, you'd type <tex align="center">. Between the tags, < and > would be escaped: <tex> x^2+y^2 \< 1 </tex> . This scheme can be criticised on grounds of purity---we are mixing two markup languages, HTML and TeX. This is only an aesthetic consideration---it would be easy for a preprocessor to take the document and run a Pidgin TeX to MathML preprocessor on any text between and tags.

Meanwhile, alternatives exist:

Links

Here is Paul Pollock's useful page on this topic.

Back to Daniel Bump
Back to Stanford Math Department