Current development on JAMWiki is primarily focused on maintenance rather than new features due to a lack of developer availability. If you are interested in working on JAMWiki please join the jamwiki-devel mailing list.

Tech:Integrate jsMath

ktip.png This page (and all pages in the Tech: namespace) is a developer discussion about a feature that is either proposed for inclusion in JAMWiki or one that has already been implemented. This page is NOT documentation of JAMWiki functionality - for a list of documentation, see Category:JAMWiki.
Status of this feature: NOT IMPLEMENTED. These steps can be followed by anyone wishing to integrate jsMath into their own implementation, but this functionality is not included in the default JAMWiki distribution.

A mini guide for integrating jsMath into JAMWiki.

The math tag[edit]

Note: the wiki syntax renderer in JAMWiki has to be modified so that the math wikitag

<math>sin(x)</math>
 

will be transformed to the following html:

<DIV CLASS="math">sin(x)</DIV>
 

All DIV formulas that have the class math are then rendered by jsMath.

See also:

Installation[edit]

In the following I assume that your JAMWiki Application-URI is /wiki

Store the jsMath files and fonts in the directory:

wiki/static/jsMath

Modify the file:

wiki/WEB-INF/jsp/top.jsp
...
 <script src="../static/jsMath/jsMath.js"></script>
 <style type="text/css">#jsMath_Warning {display: none} </style>
 </head>
 <body>
 

Modify the file:

wiki/WEB-INF/jsp/close-document.jsp
...
 <SCRIPT> jsMath.Process() </SCRIPT>
 </body>
 </html>