i post this here for future newbies who might encounter the same problem...
** on Linux/Ubuntu 8.04, under Firefox 2 or 3, with all TexFonts
installed, i kept having this error message :
It looks like jsMath failed to set up properly (error code -7)
for a single
sage : show(x^2)
command.
My solution was to :
* mkdir -p /home/foobar/.fonts (for user foobar)
* download on of the zip file here :
http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html
(the TeX-fonts-15.zip looks not too dark.)
* unzip the .zip
* restart firefox
* (adjust scale size in the options of jsMaths control panel to suit my taste)
Philippe
We really ought to include these fonts with Sage and have the error
message say: "Here are some fonts. Install them. If you want darker or
lighter variations, go here (link to the website)"
Jason
Thanks for your reply, Davide. We have an optional sage package for the
image fonts that is easy to install. You're right, we decided to not
make it standard because of the size.
Currently, if the jsmath image fonts are not installed, we add the
following code to the header of the page:
<script type="text/javascript"
src="/javascript/jsmath/plugins/noImageFonts.js"></script>
and then later, we have:
<script src="/javascript/jsmath/jsMath.js" type="text/javascript">
Should the order of these lines be reversed? I'm pretty sure we don't
use the easy/load.js (and I'm not sure why).
Thanks,
Jason
For references on the optional spkg, see the discussion from
or the trac ticket at