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

The boldsymbol Extension

The LaTeX \boldsymbol command is not part of jsMath's default set of macros, because it requires a bold symbol and bold math font that are not part of the default jsMath font set. These fonts are available on the extra-fonts download page, however, and the \boldsymbol command can be added to jsMath to access these fonts.

The boldsymbol extension does just that. For example, once the extension is loaded, \boldsymbol{\alpha} will now produce a bold alpha. To activate the \boldsymbol command, include the command

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

Alternatively, you can use

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

Note that the boldsymbol extension does not load the bold fonts until the first symbol is needed from the font, so it is not inefficient to load the extension even on pages where bold symbols may not be needed. In addition to loading the extension in your HTML page, you must also download and install the cmmib10 and cmbsy10 fonts from the extra-fonts download page; without these, the extension will not operate properly. These fonts contain the same characters as the cmmi10 and cmsy10 fonts (see the symbol tables), but in bold form.


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