MathML (MathJax) Support

65 views
Skip to first unread message

andrewg_oz

unread,
Dec 27, 2019, 8:11:15 AM12/27/19
to TiddlyWiki
I recently needed to do mathematical equations in my TiddlyWiki. The "MathJax" tiddler on the TiddlyWiki main site took me to http://mathjax-tw5.kantorsite.net/ where I found a plugin, but it did not work. It's easy to fix, and I thought I'd write up what I did in case it helps anyone else. I've already passed on these comments to the author (Martin).

The most important fix is to correct the class name the plugin searches for. Edit the plugin and change "story-river" to "tc-story-river".


The final fix is to change the config from "TeX-AMS-MML_HTMLorMML" to "TeX-MML-AM_HTMLorMML". That enables the use of AsciiMath, which I feel is a much better fit for a wiki environment than either MathML or TeX (both of which can still be used). That also required editing the Config structure: Delete “['$','$'],” from the tex2jax delimiters, then add “{asciimath2jax:{delimiters:[['$','$']]}},”. The relevant portion of my plugin now looks like: "MathJax.Hub.Config({asciimath2jax:{delimiters:[['$','$']]}},{tex2jax:{inlineMath:[['\\\\(','\\\\)']]}})}".

I hope this help anyone else trying to get MathML or AsciiMath working in their TiddlyWiki.

TiddlyTweeter

unread,
Dec 27, 2019, 8:54:30 AM12/27/19
to TiddlyWiki
TW5-TeXZilla plugin
TiddlyWiki5 plugin for parsing LaTeX into MathML, using the TeXZilla javascript parser.
Based on the official KaTeX plugin. In contrast to KaTeX, TeXZilla supports a larger set of LaTeX commands.

Released: 2015
Note: ??Chromium browsers don't yet fully support MathML??
Does this help?
TT

andrewg_oz

unread,
Jan 2, 2020, 2:51:41 AM1/2/20
to TiddlyWiki
Thanks, but I was just sharing my solution to getting the MathJax plugin working with the latest TiddlyWiki. In any case, that TeXZilla plugin doesn't work with Chrome.

IMO, one of the most important parts of wikis is the simplified markup and anything LaTeX related seems to me to be doing the opposite.

I'm not using MathJax so much for its MathML support, I'm using it for its AsciiMath support - specifically, the markup syntax. If there was some sort of "AsciiMath" to HTML/CSS or SVG renderer that would be ideal.

The online requirement for the MathJax plugin is a negative, but when I'm using my TiddlyWiki I'm never offline.

My web-dev skills are years old, but I might have a look sometime to see how hard an offline MathJax would be to set up.
Reply all
Reply to author
Forward
0 new messages