Is the font mathsf implemented in jsMath? It doesn't seem to be there by default, but is there an extension or a font which will add it? (This question came up on the sage-support mailing list.)
No, there is no mathsf at this point. There are two possible solutions that I can see.
The cheap but easy one is to do a definition like the following:
The other approach is to make a new jsMath "extra font" for mathsf, like the ones for the other extra fonts (msam10, etc). The tools for doing this are on the jsMath website at
but you will have to figure out which TeX font you want to use for the \mathsf font. Probably cmss10 would do.
OK, I built the cmss10 font files and put them on the extra-fonts download page at
where you can download the image fonts to install on your server, and the TTF files for your clients. Loading the cmss10 font will cause the \mathsf command to be defined. It is also possible to make the \mathsf command be predefined to load the cmss font when it is first used (so you don't have the overhead of loading the cmss font when it is not used). To do this, use the commands
Hope that takes care of your needs.
That's great, thanks a lot!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.