|
Cookbook /
JsMathSummary: Add markup to display and embed mathematical formulas in wiki pages using TeX.
Version: 2007-02-14
Prerequisites: pmwiki-2.0.0
Status: Stable
Maintainer: Ben Woodruff
Categories: Markup
Discussion: JsMath-Talk
Questions answered by this recipe
Notice that you can double click on images to see the LaTeX code.
DescriptionEmbed scalable mathematics in webpages with high print quality. NotesYou can download jsMath from the author's website at http://www.math.union.edu/locate/jsMath. It is a javascript method of embedding mathematics into webpages. Users can either view mathematics output using precompiled images on the server, or users can download and install TeX fonts on their computer which speed up the view experience and increase the quality printing.
pub/ directory, as pub/jsMath/ . Or, you can install jsMath wherever you wish, and set $JsMathUrl to the url of the jsMath directory.
include_once('cookbook/jsMath.php');
That's it! The script adds {$$ ... $$} and {$...$} markups that display LaTeX-style math equations, the first form centers the equation, while the second generates the equation "inline".
and install the jsMath fonts, but the site can be viewed just the same without.
Using jsMath without ~80 MB of fontsYou can force jsMath to work without with font files. This only works if users are willing to download the font files to their computers. I modified the jsmath.php file as follows (not sure if some of this is redundant):
Release NotesCommentsSee Discussion at JsMath-Talk See AlsoContributors |