JsMath

From miki
Revision as of 15:27, 5 January 2010 by Mip (talk | contribs) (Created page with 'This page is dedicated to '''[http://www.math.union.edu/~dpvc/jsMath/ jsMath]''', a javascript that allows to render LaTeX formula enclosed in <code>$...$</code>. == Install == …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is dedicated to jsMath, a javascript that allows to render LaTeX formula enclosed in $...$.

Install

Server Side

Simply unpack jsmath archive in server root directory.

Using extension AMSsymbols (<SCRIPT>jsMath.Extension.Require("AMSsymbols");</SCRIPT>):
This extension requires the extra fonts msam10 and msbm10. Since it is frequently used, it is a good idea to install these fonts by default. Create a directory fonts in jsmath directory, and unzip the author's package msam10.zip and msbm10.zip there (these packages are available here).


Client Side

For best rendering, install the default fonts.

  • Windows, the fonts are in package called TeX-fonts-25.zip (from this page).
  • Linux, due to FireFox issue since v3.6, use the package TeX-fonts-linux.tgz (from this page).

If extra fonts are needed, get the corresponding truetype fonts (from here), and install them on your system. Typically install the fonts msam10 and msbm10.

Troubleshoot

  • I get the error message "unknown control sequence \msbm" when using \mathbb{...} (blackboard bold).
Most probably this is because jsmath cannot find the font definition file at ./jsmath/fonts/msbm10/def.js on the server side (see [1]). \mathbb uses the fonts msbm, and to work properly, the author package msbm10.zip (see here) must be unzipped in directory ./jsmath/fonts/. Also for best rendering the msbm10 truetype font should be installed on the client side.