Overview of jsMath
The page author enters mathematics into the HTML page using the standard TEX notation. The mathematics are marked within the document by surrounding them with either a
CLASS="math", depending on whether you want in-line (
SPAN) or displayed math (
DIV) equations. JsMath looks for these tags and typesets the TEX code they contain.
It is not very convenient, however, to have to type these surrounding tags whenever you want some mathematics. For this reason, jsMath provides a
tex2mathplugin that scans the document for the TEX and LATEX math delimiters of $...$, $$...$$, \(...\) and \[...\] and inserts appropriate
DIVtags automatically. You can, in fact, define your own custom delimiters so that you can mark the mathematics in any way you want. This makes it easy to add jsMath support to a blog or other on-line content-management system: you can enter your mathematics in normal TEX-like form, and jsMath will do the rest. It is even possible to have jsMath loaded only when it is needed on the page by taking advantage of jsMath's