Extension talk:JsMath


 * Most of cases show perfect math redering with jsMath (many thanks). But, when a page is transcluded to another page by the tag  , math formulas in the translcuded page are rendered not with jsMath but with texvc png. How can I correct it? --203.254.163.30 07:47, 3 February 2008 (UTC) (Seongchong)


 * You're right. The way I see it, the problem has to do with how the mediawiki parser strips the   tag (i.e., the point where the parser renders  $$...$$  and replaces the formula with a marker that points to the rendered formula). The parser normally strips tags (like    and    ) by the following sequence of lines:


 * and then it is easy for the JsMath extension to grab any   tags by using the hook ParserBeforeStrip and convert any math formulas before the math renderer is called (inside the strip command). Now, the problem is that at some points in the parser (e.g., template expansion) the stripping is done with the line


 * (without the hooks involved) and therefore these  </tt> tags will not get caught by this extension. I can't really see why the parser would call the strip command without also calling the hooks. Hmm, I will think some more on this and see if there is a (simple) way to work around this problem. &mdash; Tommy Ekola 13:53, 3 February 2008 (UTC)

Installation problems in MW 1.13
I tried to install this extension, but if I add $wgUseTeX = true; in the LocalSettings.php it always tries to render the formula with the includes/math.php not with jsMath. Do I have to make any changes in includes/math.php? The test in jsMath/test/index.html shows the right results and the folder definitions of the extension and of jsMath in LocalSettings.php are correct and JsMath is also defined as default ($wgJsMathDefault = 1;).

Thanks a lot! --Filburt 09:06, 25 November 2008 (UTC)