I would really really like to have the possibility to include math
notations in my tiddlers (that's what it's called, right?). I tried to
play with this idea with the previous version, together with
HTMLFormatPlugin and Mathml. But I got no results. Since the latest
version (1.2.33) supports inline HTML, I thougth maybe I would get
luckier.
I spotted this nice thing called ASCIIMathML
http://www1.chapman.edu/~jipsen/mathml/asciimath.html
Unfortunately, the newbie that I am has no clue whatsoever as to how to
include that into TiddlyWiki (if at all possible).
Any ideas will be appreciated!
Can anyone take a look at this?
TiddlyWiki.tiddlerExists() API so maybe there is a tiddlerLoaded API that would allow us to run the script, but I don't know how to use it yet.That's right but for me the big problem is how to easily write MathML.
AsciiMathML looks like a better approach to me because you can write
math in plain LaTeX. Will you use any wysiwyg MathML editor, some kind
of conversion or will write your own MathML expressions?
I understand Firefox has native support for MathML. I tried again to
include a piece of MathML by enclosing it in <html>...</html> tags, in
the latest version of TiddlyWiki. Shouldn't it work?
Anyone?
To take math notes you can use latex plugin for TiddlyWiki.
It's dirty, but it works. Just put, say <<latex f(x,y)=x+y>>
and you'll get a nice formula.
latex cheat sheet, for fancy symbols:
http://www.fi.uib.no/Fysisk/Teori/KURS/WRK/TeX/symALL.html
the code:
----
version.extensions.latex = {major: 0, minor: 1, revision: 1, date: new
Date(2005,10,19)};
config.macros.latex = {}
config.macros.latex.handler = function(place,macroName,params)
{
var data = params;
var theImage = document.createElement("img");
acc = ""; for(i=0; i < data.length; i++) acc = acc + data[i] + " ";
formula_src = "http://dubinushka.ru/form/formact.php?math=" +
escape(data[0].replace("+", "%2B"));
theImage.src = formula_src;
theImage.alt = data[0];
theImage.title = data[0];
theImage.className = "linkedImg";
theImage.style.position = "relative";
theImage.style.verticalAlign = "top";
theImage.style.border = "0px";
place.appendChild(theImage);
}
----
I should have mentioned it - the math won't show up when offline.. I
just needed something working right now, and thought it might be useful
to others.
Your link is much more interesting.
| This is not a tiddlywiki plugin.
|
| Unfortunately, the wiki-parsing code must be modified, and several
javascripts
| included. Of course you can diff against the regular tiddlywiki to
see what I did.
|
| I wasn't intending to distribute that...it's got many bugs. But good
luck with it anyway. If
| you make improvements I'd be interested to see.
|
| I have since XHTML-ized tiddlywiki, but jsMath is incompatible with
XHTML. I have
| had several discussions with Davide (jsMath author) and he has plans
to XHTML-ize,
| and include the possibility for MathML output...
Actually, here's what the author, Bob McElrath, told me about it:
| This is not a tiddlywiki plugin.|
| Unfortunately, the wiki-parsing code must be modified, and several javascripts
| included. Of course you can diff against the regular tiddlywiki to see what I did.