|
This extension allows jsMath to detect when mathematics appears within <B>...</B> tags (or in a region where the CSS styles have set The
autobold
Extensionfont-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 thecmmib10
andcmbsy10
fonts, which are not part of the basic fonts distributed with jsMath, you will need to install those fonts before using theautobold
extension. See theboldsymbol
documentation for more details.To activate the
autobold
extension, add"extensions/autobold.js"
to theloadFiles
array in yourjsMath/easy/load.js
file:loadFiles: ["extensions/autobold.js"],If you are using the autoload plugin instead of
easy/load.js
, you can set thejsMath.Autoload.loadFiles
array to include"extensions/autobold.js"
in order to have the extension loaded automatically when jsMath is needed.If you are loading
jsMath.js
by hand rather than usingeasy/load.js
or theautoload
plugin, 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.
|
|