[HOME] jsMath (Authors) [Prev][Up][Skip][Next]

The AMSsymbols Extension

The standard fonts that are used with jsMath don't include the AMS symbols that are available with the AmSTeX file formats. The extra-fonts download page includes the msam10 and msbm10 fonts, which contain most of the AMS symbols, so these can be obtained within jsMath.

To make it easier to access these characters, the AMSsymbols extension defines the control sequences for inserting these symbols into your documents. For example, \boxplus is defined to produce a plus with a square box around it, just as it is in the AmSTeX formats. Because these fonts are not a standard part of jsMath, however, these control sequences are not defined by default. To activate them, include the command

    <SCRIPT>
      jsMath.Extension.Require("AMSsymbols");
    </SCRIPT>
in your HTML file after loading jsMath, or if you are using the easy/load.js file, add "extensions/AMSsymbols.js" to the loadFiles array:
    loadFiles: ["extensions/AMSsymbols.js"],

Alternatively, you can use

    <SPAN CLASS="math">
      \require{AMSsymbols}
    </SPAN>
to load the AMS symbols from within the typeset mathematics itself.

Finally, if you are using the autoload plugin, you can set the jsMath.Autoload.loadFiles array to include "extensions/AMSsymbols.js" in order to have the extension loaded automatically when jsMath is needed.

Note that the AMSsymbols extension does not load the AMS fonts until the first symbol is needed from the font, so it is not inefficient to load the extension even on pages where the AMS symbols may not be needed. In addition to loading the extension in your HTML page, you must also download and install the msam10 and msbm10 fonts from the extra-fonts download page; without these, the extension will not operate properly.

See the symbols table for a complete list of symbols that are made available by this extension.


SourceForge.net Logo [HOME] jsMath web pages
Created: 20 Mar 2006
Last modified: 26 Mar 2008 11:59:06
Comments to: dpvc@union.edu
[Next] The autobold Extension
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The AMSmath Extension