JavaScript errors in smallFonts plugin
Brought to you by:
dpvc
The smallFonts plugin is broken in 3.6c, at least in certain browsers such as FIrefox 3.5.3 on Linux. It includes statements like
jsMath.styles['.typeset .size0']['font-size'] = '70%';
which throws an error because jsMath.styles['.typeset .size0'] is not yet defined. At least in the above-mentioned browser, the error prevents the rest of the smallFonts.js script from executing, so the smallFonts plugin has no effect.
You are correct, the lines you indicate are in error (they were changed when I changed the way that styles are specified back in version 3.6, and not properly checked). I have fixed them and will include the patch in the next release.
In the meantime, I have attached the corrected smallFonts.js file for you to use.
Thanks for reporting the problem, and fo your careful diagnosis of the problem. It made it easy to fix.
Davide
Patched smallFonts.js file