[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, add "extensions/boldsymbol.js" to the loadFiles array in your easy/load.js file:

    loadFiles: ["extensions/boldsymbol.js"],

If you are using the autoload plugin instead of easy/load.js, 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.

If you are loading jsMath.js by hand rather than using easy/load.js or the autoload plugin, then include the command

    <SCRIPT>
      jsMath.Extension.Require("boldsymbol");
    </SCRIPT>
in your HTML file after loading jsMath. Alternatively, you can use
    <SPAN CLASS="math">
      \require{boldsymbol}
    </SPAN>
to activate the command from within the typeset mathematics itself.

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.


Get jsMath at SourceForge.net. Fast, secure and Free Open Source software downloads [HOME] jsMath web pages
Created: 20 Mar 2006
Last modified: 13 Sep 2008 08:36:25
Comments to: dpvc@union.edu
[Next] The moreArrows Extension
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The autobold Extension