Hi Joe In terms of TW5, the ideal implementation would allow us to generate static HTML representations of mathematics on the server. That's tricky with MathJax, as discussed on the YouTube video that Mario referenced.
But, as you imply, for working on the serverside we could emit MathJax markup in the static HTML and then require the browser to run the MathJax script to dynamically convert the markup. The second option may well be the best we can do; the downside is mainly that people browsing the server-generated HTML representation would need to be using a browser with JavaScript enabled. In terms of your question about maintaining both the source latex and derived MathML, that's pretty much how the existing pipeline for rendering wikitext works: we have the original text of the tiddler, then a parse tree of it (which is cached), and then the render tree. If MathJax were able to slot in, the source latex would correspond to the wikitext and the MathML to the render tree (MathJax has it's own parse tree format). Anyhow, the main point is that I am committed to having decent maths support in TW5, Best wishes Jeremy On Wed, Nov 27, 2013 at 9:26 PM, joerenes <[email protected]> wrote: > hmm, mathquill may not be quite right. how about > LaTeXMathML<http://math.etsu.edu/LaTeXMathML/>? > It's old, but might be a basis for converting tex to mathml in javascript. > (There's also > itex2MML<http://golem.ph.utexas.edu/~distler/blog/itex2MML.html>as used very > successfully in instiki, but it's not javascript.) > > A question about the server-side implementation: Is the idea to store the > generated mathml in the tiddler in some way or to render it every time? The > latter would presumably not be much different than MathJax on the browser > side (which is slow on the latex-heavy tiddlers I have in TWC). On the > other hand, from what little I know about the TW5 tiddler structure, it > doesn't seem straightforward to have both the source latex and derived > mathml in the same tiddler data. I'm really hoping to be wrong about that. > Maybe the draft mechanism is similar to what I'm hoping for here? > > -joe > > > On Saturday, November 23, 2013 10:09:43 AM UTC+1, joerenes wrote: >> >> how about mathquill <http://mathquill.com/>? I have no idea if it is >> really different from MathJax, but am hoping... >> -joe >> >> On Thursday, November 21, 2013 2:10:07 PM UTC+1, PMario wrote: >>> >>> MathJax is nice, but it doesn't fit well to TW5 see: >>> http://www.youtube.com/watch?v=umV13nEJZBk at 0:22:45 >>> -mario >>> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/groups/opt_out. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
