Saturday September 01, 2007 jsMath - new version 3.4d installed in MathEclipse wiki
JsMath v3.4d has been released. JsMath is a JavaScript program that allows you to incorporate mathematical notation into your HTML web pages. The input language is LaTeX, so many mathematicians already know how to enter equations using jsMath.
The new release is now installed in the MathEclipse wiki, which is based on JAMWiki (JAMWiki is written in Java and understands the Wikipedia markup syntax).
Here are some demo pages, which are copied from Wikipedia:
Although the resulting pages look impressive, there are still some incompatibles between the jsMath and Wikipedia syntax dialects.
For printing out the math formulas, it's necessary to install the "Hi-Res Fonts for Printing" provided by jsMath.
Therefore you have to click on the small jsMath box in the lower right corner of a wiki page and in the appearing dialog box choose "Hi-Res Fonts for Printing":
After this step you can print out the math pages in your browser with the formulas rendered with Hi-Res fonts.
Here is the jsMath related coding which is inserted in JAMWiki's top.jsp page (updated 2008/01/05):
...
<SCRIPT> jsMath = {Controls: {cookie: {scale: 200}}} </SCRIPT>
<SCRIPT src="../static/jsMath/jsMath.js"></SCRIPT>
<SCRIPT>jsMath.Extension.Require("AMSmath");jsMath.Macro('sgn','\\mathop{\\rm sgn}');jsMath.Macro('R','\\mathop{\\bf R}');</SCRIPT>
<style type="text/css">#jsMath_Warning {display: none} </style>
</head>
...
Here is the jsMath related coding which is inserted in JAMWiki's close-document.jsp page:
... ... <SCRIPT> jsMath.Process() </SCRIPT> </body> </html>
Here is the jsMath related coding which is inserted in JAMWiki's printable.jsp page:
...
</head>
<SCRIPT> jsMath = {Controls: {cookie: {scale: 133}}} </SCRIPT>
<SCRIPT src="../static/jsMath/jsMath.js"></SCRIPT>
<SCRIPT>jsMath.Extension.Require("AMSmath");jsMath.Macro('sgn','\\mathop{\\rm sgn}');jsMath.Macro('R','\\mathop{\\bf R}');</SCRIPT>
<style type="text/css">#jsMath_Warning {display: none} </style>
<body style="background:none">
...
...
<SCRIPT> jsMath.Process() </SCRIPT>
</body>
</html>
To render the <math>-tags I've changed the info.bliki parser. Homepage:
You can find the sources in the SVN repository:
To activate the parser I've modified the /WEB-INF/classes/jamwiki.properties file:
parser=org.jamwiki.parser.bliki.BlikiParserPosted by axelclk ( Sep 01 2007, 06:51:14 PM CEST ) Permalink Comments [0]