This extension allows jsMath to detect when mathematics appears within <B>...</B> tags (or in a region where the CSS styles have set The
autoboldExtensionfont-weight:bold) and will automatially apply the\boldsymbolcommand to the mathematics. The result should be that mathematics will respect the HTML bolding automatically.Since the
\boldsymbolextension requires thecmmib10andcmbsy10fonts, which are not part of the basic fonts distributed with jsMath, you will need to install those fonts before using theautoboldextension. See theboldsymboldocumentation for more details.To activate the
autoboldextension, add"extensions/autobold.js"to theloadFilesarray in yourjsMath/easy/load.jsfile:loadFiles: ["extensions/autobold.js"],If you are using the autoload plugin instead of
easy/load.js, you can set thejsMath.Autoload.loadFilesarray to include"extensions/autobold.js"in order to have the extension loaded automatically when jsMath is needed.If you are loading
jsMath.jsby hand rather than usingeasy/load.jsor theautoloadplugin, then include the command<SCRIPT> jsMath.Extension.Require("autobold"); </SCRIPT>in your HTML file after loading jsMath. Alternatively, you can use<SPAN CLASS="math"> \require{autobold} </SPAN>to activate the extension from within the typeset mathematics itself.
|
|