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

The smallFonts plugin

Many web pages use font sizes that are very small, and when jsMath is incorporated into these pages, superscripts and subscripts may become unreadable because they are so small. In these cases, you may wish to use the smallFonts plugin, which changes the sizes used for the fonts in super- and sub-scripts to make them more readable.

You do this by including

    <SCRIPT SRC="path-to-jsMath/plugins/smallFonts.js"></SCRIPT>
just before the command that loads jsMath.js of easy/load.js, and after setting any values for the jsMath variable, if any. This will make the results match the TeX output slightly less closely, but can improve the results for your readers. Note that if smallFonts is used when the page fonts are sufficiently large already, then the sub- and super-scripts will look unusually large, so you should only use this plugin when the page actually uses small text fonts.

You may also wish to set the jsMath scaling factor to enlarge the math in relation to the surrounding text, as that will help make the smaller fonts more readable as well. See the documentation on changing the font size.



Get jsMath at SourceForge.net. Fast, secure and Free Open Source software downloads [HOME] jsMath web pages
Created: 02 May 2006
Last modified: 21 Mar 2007 21:43:28
Comments to: dpvc@union.edu
[Next] Using jsMath without Image Fonts
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The mimeTeX plugin