JsMath: Difference between revisions

From miki
Jump to navigation Jump to search
(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 == …')
 
No edit summary
Line 2: Line 2:


== Install ==
== Install ==
=== Server Side ===
Simply unpack jsmath archive in server root directory.


Reference instructions:
'''Using extension ''AMSsymbols'' (<tt>&lt;SCRIPT&gt;jsMath.Extension.Require("AMSsymbols");&lt;/SCRIPT&gt;</tt>)''':<br/>
* [http://www.math.union.edu/~dpvc/jsMath/authors/installation.html Install & testing]
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 '''<tt>fonts</tt>''' in jsmath directory, and unzip the author's package '''msam10.zip''' and '''msbm10.zip''' there (these packages are available [http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html here]).
* [http://www.math.union.edu/~dpvc/jsMath/authors/morefonts.html Installing extra fonts]


=== Server Side ===
* Install '''jsmath''' main package.
* Install '''extra fonts''' package for fonts '''msam10''' and '''msbm10''' (these fonts are required for extension '''AMSsymbols''', which is frequently used).
: The packages are found [http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html here]. To install them, create a directory '''<tt>fonts</tt>''' in jsmath directory, and unzip them there, i.e. you should end up with 2 directories named <tt>./jsmath/fonts/msam10</tt> and <tt>./jsmath/fonts/msbm10</tt>.


=== Client Side ===
=== Client Side ===
For best rendering, install the default fonts.
* Install the '''standard fonts'''.
* '''Windows''', the fonts are in package called <tt>TeX-fonts-25.zip</tt> (from [http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html this page]).
: On '''Windows''', the fonts are in package called <tt>TeX-fonts-25.zip</tt> (from [http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html this page]).
* '''Linux''', due to FireFox issue since v3.6, use the package <tt>TeX-fonts-linux.tgz</tt> (from [http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html this page]).
: On '''Linux''', due to FireFox issue since v3.6, use the package <tt>TeX-fonts-linux.tgz</tt> (from [http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html this page]).
* Install the '''extra fonts''' '''msam10''' and '''msbm10''' ([http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html from here]), and install them on your system.

If '''extra fonts''' are needed, get the corresponding truetype fonts ([http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html from here]), and install them on your system. Typically install the fonts '''msam10''' and '''msbm10'''.


== Troubleshoot ==
== Troubleshoot ==

Revision as of 15:34, 5 January 2010

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

Install

Reference instructions:

Server Side

  • Install jsmath main package.
  • Install extra fonts package for fonts msam10 and msbm10 (these fonts are required for extension AMSsymbols, which is frequently used).
The packages are found here. To install them, create a directory fonts in jsmath directory, and unzip them there, i.e. you should end up with 2 directories named ./jsmath/fonts/msam10 and ./jsmath/fonts/msbm10.

Client Side

  • Install the standard fonts.
On Windows, the fonts are in package called TeX-fonts-25.zip (from this page).
On Linux, due to FireFox issue since v3.6, use the package TeX-fonts-linux.tgz (from this page).
  • Install the extra fonts msam10 and msbm10 (from here), and install them on your system.

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.