Sunday December 17, 2006 How to integrate jsMath into JAMWiki
A mini guide for integrating jsMath into JAMWiki.
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>
Note: the wiki syntax renderer in JAMWiki has to be enabled 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 now rendered by jsMath.
See also:
Posted by axelclk ( Dec 17 2006, 02:47:30 PM CET ) Permalink Comments [0]