Differences between revisions 6 and 20 (spanning 14 versions)
Revision 6 as of 2009-07-10 17:10:24
Size: 414
Comment:
Revision 20 as of 2010-10-04 08:08:35
Size: 2686
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#format jsmath
Line 3: Line 5:
jsMath itself is working, see http://www.server-sky.com/jsmathdir/test/index-images.html jsMath itself is working, see:
Line 5: Line 7:
moin-moin jsMath is not working yet (Friday July 10 2009 10am PDT) http://www.server-sky.com/jsmathdir/test/index-images.html
Line 7: Line 9:
soon! soon! http://www.server-sky.com/jsmathdir/test/index.html
Line 9: Line 11:
http://www.launchloop.com/jsmathdir/test/index-images.html
Line 10: Line 13:
http://www.launchloop.com/jsmathdir/test/index.html
Line 11: Line 15:
Here are some math equations using those markers. Some inline math: $\sqrt{1-x^2}$ or \(ax^2+bx+c\), MorejsMathTestStuff, see http://wiki.themel.com/PublicTestPage

Here are some math equations. Some inline math: $\sqrt{1-x^2}$ or \(ax^2+bx+c\),
Line 18: Line 24:
\[\sum_{i=1}^n i = {n(n+1)\over 2}.\] $$ \sum_{i=1}^n i = {n(n+1)\over 2}. $$

Note that some markers do not work, and some do. You can see the original text and copy what works by looking at this page with More Actions / Raw Text in the moinmoin control panel.

=== Installation notes: ===

jsMath (javascript Math) uses TeX markup and delivers fonts and positioning via javascript. This means that no client-side fonts or interpretation is needed, such as with MathML. See http://www.math.union.edu/~dpvc/jsMath/ .

jsMath is wrapped in [[ http://wiki.themel.com/jsMathParser | jsMathParser ]] by Thomas Themel, which is a moinmoin plugin installed in the plugin directory ...wikipath.../moin/data/plugin/parser/ . This file contains a pointer to a sorta-unique instance of jsMath .

Javascript is finicky for security reasons, and will only run .js files from the same URL as the page was launched from. www.server-sky.com and server-sky.com are considered two different URLs, so you can't use !ServerAlias in your apache /etc/httpd/conf/httpd.conf file; instead, you must use redirects (in this case, www.server-sky.com/ and moin.server-sky.com/ both have their own short <Virtual> blocks which redirect to the server-sky.com/ <Virtual> block. Before pages are rendered, they are redirected to this one common name.

The security restriction also means that each wiki or URL needs its own version of jsMath. jsMath contains a configuration file .../easy/load.js (which I put in ...wikipath/jsmathdir/easy/load.js) that has a reference to the URL of the jsMath root directory.
In this case:

 {{{root: "http://server-sky.com/jsmathdir/",}}}

That gets its own redirect clause in httpd.conf, so that the apache server can find the jsmath files. A complete copy of the entire jsMath (including the font files) are stored in ...wikipath.../jsmathdir/ . All very complicated and redundant. The server storage can be reduced by creating symbolic links from all the directories and files in jsmathdir to the common /opt/jsMath, '''except''' for ...wikipath.../jsmathdir/easy/load.js , which must be unique per wiki instance . This facilitates upgrading jsMath.h

jsMath

jsMath itself is working, see:

http://www.server-sky.com/jsmathdir/test/index-images.html

http://www.server-sky.com/jsmathdir/test/index.html

http://www.launchloop.com/jsmathdir/test/index-images.html

http://www.launchloop.com/jsmathdir/test/index.html

MorejsMathTestStuff, see http://wiki.themel.com/PublicTestPage

Here are some math equations. Some inline math: \sqrt{1-x^2} or \(ax^2+bx+c\), and some displayed math:

\int {1\over x}\,dx = \ln(x)+C

and

\sum_{i=1}^n i = {n(n+1)\over 2}.

Note that some markers do not work, and some do. You can see the original text and copy what works by looking at this page with More Actions / Raw Text in the moinmoin control panel.

Installation notes:

jsMath (javascript Math) uses TeX markup and delivers fonts and positioning via javascript. This means that no client-side fonts or interpretation is needed, such as with MathML. See http://www.math.union.edu/~dpvc/jsMath/ .

jsMath is wrapped in jsMathParser by Thomas Themel, which is a moinmoin plugin installed in the plugin directory ...wikipath.../moin/data/plugin/parser/ . This file contains a pointer to a sorta-unique instance of jsMath .

Javascript is finicky for security reasons, and will only run .js files from the same URL as the page was launched from. www.server-sky.com and server-sky.com are considered two different URLs, so you can't use ServerAlias in your apache /etc/httpd/conf/httpd.conf file; instead, you must use redirects (in this case, www.server-sky.com/ and moin.server-sky.com/ both have their own short <Virtual> blocks which redirect to the server-sky.com/ <Virtual> block. Before pages are rendered, they are redirected to this one common name.

The security restriction also means that each wiki or URL needs its own version of jsMath. jsMath contains a configuration file .../easy/load.js (which I put in ...wikipath/jsmathdir/easy/load.js) that has a reference to the URL of the jsMath root directory. In this case:

  • root: "http://server-sky.com/jsmathdir/",

That gets its own redirect clause in httpd.conf, so that the apache server can find the jsmath files. A complete copy of the entire jsMath (including the font files) are stored in ...wikipath.../jsmathdir/ . All very complicated and redundant. The server storage can be reduced by creating symbolic links from all the directories and files in jsmathdir to the common /opt/jsMath, except for ...wikipath.../jsmathdir/easy/load.js , which must be unique per wiki instance . This facilitates upgrading jsMath.h

jsMath (last edited 2010-10-04 08:08:35 by KeithLofstrom)