Skip to end of metadata
Go to start of metadata

jsMath

Deprecated Feature

jsMath will not longer be in use after LAMS v2.3. An easier to plugin is implemented to replace jsMath

jsMath is a method of including mathematics in web pages. Once it is installed on the server, LAMS authors can use it to display mathematical symbols and equations in their Noticeboards, Q&As, or any of the core tools. LAMS learners will not need to do anything special to be able to see your symbols/equations.

jsMath Homepage

jsMath's homepage has a fuller introduction to jsMath, as well as a guide to all the notation and advanced options you might want to use: http://www.math.union.edu/locate/jsMath

Installation

Windows installer

You have the option of including jsMath automatically when you install using the Windows installer. Simply check the box and you're done.

Download

We've made a web archive of jsMath that you can install separately in your LAMS server. Download it here. Copy it to your deploy folder - on Windows, C:\lams\jboss-4.0.2\server\default\deploy; on Unix, /path/to/jboss-4.0.2/server/default/deploy.

jsMath Homepage

Apache

If you have your LAMS installation fronted by Apache, this method is recommended rather than deploying the web archive of jsMath under JBoss, mainly for performance reasons.

See this page for instructions on downloading and installing the latest version of jsMath.

Quick Guide to Using jsMath in your HTML (for LAMS Authors)

jsMath versions

If your version of jsMath is 3.4 or above, you only have to put a single line at the top of your page:

<SCRIPT SRC="/jsMath/easy/load.js"></SCRIPT>

The steps below should still work though.

Click images for better view.

  1. Click 'Source' to edit your instruction/s in HTML code
  2. Put this line at the top:
    <SCRIPT SRC="/jsMath/jsMath.js"></SCRIPT>
    
  3. Type in your jsMath code (e.g. http://www.math.union.edu/~dpvc/jsMath/authors/basics.html#math)
  4. Put this line at the bottom:
    <SCRIPT> jsMath.Process() </SCRIPT>
    
  5. You can then click the 'Preview' button to see how it looks as rendered HTML. You can also save your editing and do an actual 'LAMS Preview' to see how it looks to learners:

In the last screenshot, you can see a warning message, 'No jsMath TeX fonts found – using image fonts instead'. This is safe, and users can simply remove the message by clicking 'Hide this Message'. See the jsMath website (http://www.math.union.edu/~dpvc/jsMath/authors/warnings.html) for how to remove/edit this message, and the issues involved.

You can download the fonts to your computer...

If you want to see jsMath displayed as it is meant to be displayed (and speed up the rendering of your jsMath pages), download the fonts for your system: http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html.

jsMath Homepage

jsMath's homepage has a fuller introduction to jsMath, as well as a guide to all the notation and advanced options you might want to use: http://www.math.union.edu/locate/jsMath