]>
Home | Projects | Docs | Jargon |
Bugzilla
| LXR
| | Feedback | FAQ | Search |
This document illustrates some basic MathML constructions. It is tailored to display correctly with just the Symbol font. You can view its source. However, MathML documents tend to be verbose and you might get lost trying to locate a MathML fragment with the usual view source. This demo has been made to illustrate the following aspects. You can right-click on any math fragment of interest throughout this document. The context menu won't show up. Rather, the math fragment will zoom, and if you right-click a second time, you will see the MathML WYSIWYG markup of the fragment, and if you right-click again a third time, the fragment will revert to its initial state. This tri-state mode is aimed at limiting conflicts with other agents that compete for the mouse.
With MathML, one can build sets such as (go on, right-click any of these equations to experiment the zoom) or , write calculus , form rather complicated expressions , , write vector equations , etc.
Notice how the mathematics appear in the main flow of text and respond as you resize the window. You can also make displayed equations, such as the following ones:
You can also typeset 2D mathematical constructs such as matrices. The following example shows the i-th step of the multiplication of a matrix A by a vector x (notice how are on the same baseline, other alignments are possible):
In Mozilla, MathML runs inside the main browser. So it responds to other browser operations such as the zoom (try View -> Text Zoom), and you can do links , apply stylistic effects , or use color in very strange ways
You can also do other weird and risky things which are not portable, bongo warns, such as mixing MathML with other markups
And you can turn to JavaScript and the DOM for dynamic operations.
Each entry of the following matrix represents for some n. When you left-click any individual entry, it should toggle between its expanded and unexpanded forms. You can also unexpand all or expand all.
And there could be more...
For more information about MathML in Mozilla, see the MathML Project Page. There are links to more samples, screenshots and instructions on how to download fonts for various platforms. These fonts are required to view other examples beyond the basic constructions illustrated here.