Using jsMath with WordPress, bbPress, and Wikindx

There’s really no special trick to using jsMath with WordPress, bbPress, or Wikindx — just follow the installation instructions.

Essentially, you just need to add the following code in the header of your web site (where “path.to” should be replaced with the URL to your installation of jsMath):

<script type="text/javascript" src="http://path.to/jsMath/easy/load.js"></script>

For this web site, the above line was added to the headers of each of the template files of the component software packages.

One minor trick to getting jsMath to work with Wikindx is that all special characters have to be escaped properly\(\). For example, to get the title of Mario Szegedy’s paper[1] on quantum walks to display correctly, as seen here, I had to enter the title as:

Spectra of Quantized Walks and a \$\sqrt{{}\delta\epsilon{}}\$-Rule

That is, where the LaTeX math syntax requires a left curly bracket, you enter “{{}”, and where it requires a right curly bracket, you enter “{}}”. The title then appears as in the footnote below.

I have created a setup help page on the wiki to record details such as these. Also, see this forum post for some macros defined for use on this site.

– davinci

Notes

  1. ↑1 M. Szegedy, “Spectra of Quantized Walks and a $\sqrt{\delta\epsilon}$-Rule,” arXiv, 2004. (details)

4 Responses to “Using jsMath with WordPress, bbPress, and Wikindx”


  • I linked to this page from Wikindx’s SourceForge support forums. For my own record-keeping, the URL for the thread is: https://sourceforge.net/projects/wikindx/forums/forum/326883/topic/3399463

  • I must admit this is over my head. But since I stumbled upon your blog I stayed because I liked your star glazing header. It is amazingly similar to the same beautiful view I see every night from my Spa ;)

  • I can’t tell you how useful those instructions were. As someone who has just gotten into the use of WP and various plugins, sometimes the readme that comes with them from random download locations just isn’t clear enough. I’ll definitely be trying some of these out on my websites. Thanks a ton!

  • This is fantastic, I had no idea it is possible to represent special mathematical characters on the web so that everyone can actually see them – and not some sort of gibberish.
    I’ll be using this on some of my projects in the future for sure.

Leave a Reply