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

The autobold Extension

This extension allows jsMath to detext when mathematics appears within <B>...</B> tags (or in a region where the CSS styles have set font-weight:bold) and will automatially apply the \boldsymbol command to the mathematics. The result should be that mathematics will respect the HTML bolding automatically.

Since the \boldsymbol extension requires the cmmib10 and cmbsy10 fonts, which are not part of the basic fonts distributed with jsMath, you will need to install those fonts before using the autobold extension. See the boldsymbol documentation for more details.

To activate the autobold extension, include the command

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

Alternatively, you can use

    <SPAN CLASS="math">
      \require{autobold}
    </SPAN>
to activate the extension 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/autobold.js" in order to have the extension loaded automatically when jsMath is needed.


SourceForge.net Logo [HOME] jsMath web pages
Created: 20 Mar 2006
Last modified: Mar 26, 2008 12:06:27 PM
Comments to: dpvc@union.edu
[Next] The boldsymbol Extension
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The AMSsymbols Extension