JsMath for displaying mathematics with TeX

This module enables the jsMath script for displaying mathematical expressions. Users can enter arbitrary mathematical expressions in their drupal content by using the standard TeX syntax, including LaTeX and AMSLaTeX. jsMath renders this on the client's browser when the page gets displayed.

The jsMath script has been developed by Davide P. Cervone. For more information about jsMath see http://www.math.union.edu/~dpvc/jsMath/welcome.html

"The jsMath package provides a method of including mathematics in HTML pages that
works across multiple browsers under Windows, Macintosh OS X, Linux and other
flavors of unix. It overcomes a number of the shortcomings of the traditional
method of using images to represent mathematics: jsMath uses native fonts, so
they resize when you change the size of the text in your browser, they print at
the full resolution of your printer, and you don't have to wait for dozens of
images to be downloaded in order to see the mathematics in a web page."

Because the TeX is rendered on the user's browser, this module does not require the installation of any TeX executables on your server. If however you don't mind installing executables then you can also use one of the other TeX modules available for Drupal.

Installation instructions

The installation consists of downloading the module code, the jsMath script and the jsMath fonts and then enabling the module. Here are the steps:

  1. Extract the jsmath.tar.gz file into your /sites/all/modules/ directory. This will create a jsmath subdirectory holding the module's files.
  2. Download jsMath-v3.5.zip and extract it into the jsmath directory you created in the previous step. This will create a subdirectory jsmath/jsMath holding the jsMath scripts.
  3. Download jsMath-fonts-1.3.zip and extract it into the jsmath directory. This will create a subdirectory jsmath/jsMath/fonts holding the fonts.
  4. If you want to make the AMSmath symbol fonts available then download also the files msam10.zip and msbm10.zip and extract them into the jsmath/jsMath/fonts directory. There exist other additional fonts you can install.
  5. Go to the module admin section (Administer -> Site building -> Modules) and enable the "jsmath" module.
  6. Go to the Administer -> Site configuration -> jsMath settings where you can change the default settings for jsMath.

Notice that jsMath is not currently implemented as a filter controlled by input formats but rather all pages on your site will be processed by jsMath as soon as you enable the module. So there is no need to change any settings for your input formats.

Releases

Official releasesDateSizeLinksStatus
6.x-1.12008-Jul-1311.4 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.12008-Feb-2611.52 KBRecommended for 5.xThis is currently the recommended release for 5.x.


 
 

Drupal is a registered trademark of Dries Buytaert.