Hardcore Newbie, likes math!

21 views
Skip to first unread message

JSeb

unread,
Sep 27, 2005, 8:49:09 PM9/27/05
to TiddlyWiki
Hi all, I'm very impressed by TiddlyWiki, and I pretty sure it will
answer my note-taking needs.

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!

psoares

unread,
Sep 28, 2005, 6:56:40 AM9/28/05
to TiddlyWiki
I've been trying Asciimathml with Tiddlywiki too with no success. This
feature would be very sweet as is the simplest way to put good looking
math on the web.

Can anyone take a look at this?

Clint Checketts

unread,
Sep 28, 2005, 8:49:12 AM9/28/05
to Tiddl...@googlegroups.com
Here's the diagnosis:

The asciiMathML javascript runs with the page's 'onload' command. TiddlyWiki's contents don't appear until after this so they can't be converted into the MathML. Now what needs to be done is the asciiMath javascript needs to be run after the tiddler is loaded.Jeremy has mentioned that there is a 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.

-Clint

Paul Petterson

unread,
Sep 28, 2005, 11:18:07 AM9/28/05
to Tiddl...@googlegroups.com
Don't IE and FF both support MathML directly? (Well... I think IE needs a plugin, mathrunner or something like that) but you should be able to embed MathML directly into a tiddler using the new <html></html> features...  No I haven't tried it, but I will! :)

Paul

psoares

unread,
Sep 28, 2005, 11:38:25 AM9/28/05
to TiddlyWiki

Paul Petterson wrote:
> Don't IE and FF both support MathML directly? (Well... I think IE needs a
> plugin, mathrunner or something like that) but you should be able to embed
> MathML directly into a tiddler using the new <html></html> features... No I
> haven't tried it, but I will! :)

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?

Paul Petterson

unread,
Sep 28, 2005, 12:26:16 PM9/28/05
to Tiddl...@googlegroups.com
Who me? I don't do math... :)

Seriously though - I was fiddling around with it earlier and just wrote up my own MathML - but there are a few editors out there if I remember right. I was originally thinking of using mathematica which can do that kind of thing...

Paul

On 9/28/05, psoares <pso...@math.ist.utl.pt> wrote:

JSeb

unread,
Sep 28, 2005, 1:30:28 PM9/28/05
to TiddlyWiki
I tried before to include MathML directly with HTMLformatPlugin, but it
didn't work on Firefox. I don't know if I did it right though. I would
much prefer to use AsciiMathML as psoares, but if pure MathML works, I
could live with that (and a good LaTeX->MathML converter).

JSeb

unread,
Sep 30, 2005, 11:01:56 PM9/30/05
to TiddlyWiki
Hi, I'm trying to reactivate this topic...

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?

Paul Petterson

unread,
Oct 1, 2005, 12:52:48 AM10/1/05
to Tiddl...@googlegroups.com
A quick 'google' turned up this: http://www.mozilla.org/projects/mathml/fonts/ - aparently you have to install a bunch of fonts for it to work!

Paul Petterson

unread,
Oct 1, 2005, 12:55:01 AM10/1/05
to Tiddl...@googlegroups.com
actually - I followed a few links on the page and came up with: http://www.mozilla.org/projects/mathml/demo/basics.xhtml it aparently displays ok without the fonts... I'll look a bit more...

Paul Petterson

unread,
Oct 1, 2005, 1:01:14 AM10/1/05
to Tiddl...@googlegroups.com
Ok - it's not gonna work out of the box... Mozilla doesn't mix XML and HTML - so TW's gotta be changed to XHTML before mathML will render right.  It's a bit late in the evening for me to think much past that - sorry...

Paul

Eighen Indemnis

unread,
Oct 2, 2005, 12:03:14 AM10/2/05
to TiddlyWiki
Would something like that even be possible? I love taking notes in
TiddlyWiki, and the only thing holding me back from using it all the
time is a quick, effective way to take mathematics notes. I'd like to
help in terms of this endeavor, if there's something I could do -
unless Jeremy was already planning to convert TiddlyWiki to XHTML?

Jeremy Ruston

unread,
Oct 3, 2005, 12:12:38 PM10/3/05
to Tiddl...@googlegroups.com
I'd certainly like to get TiddlyWiki into valid XHTML; the current
storage mechanism breaks it through the use of custom attriutes, but I
think there are other issues as well.

MathML looks cool, and it would be worth the effort to get it working.

Cheers

Jeremy
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com

JSeb

unread,
Oct 3, 2005, 7:04:58 PM10/3/05
to TiddlyWiki
Great! I'd like to help, but I am afraid I lack the knowledge for that.

Once again, I'd like to say that IMHO ASCIIMathML would be pretty nice!

Konstantin Levinski

unread,
Oct 19, 2005, 7:49:29 PM10/19/05
to TiddlyWiki

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);
}
----

JSeb

unread,
Oct 25, 2005, 6:59:39 PM10/25/05
to TiddlyWiki
Haven't tried Konstantin's suggestion yet. In the meantine, I stumbled
upon a latex-enabled version of TiddlyWiki:
http://bob.mcelrath.org/tiddlymath/tiddlyjsmath.html
Interesting. According to the author, it still got many bugs.

Paulo Soares

unread,
Oct 25, 2005, 8:26:41 PM10/25/05
to TiddlyWiki
Did not tried Konstantin's macro. I don't know much about it but it
looks like no mathml is involved but rather an image served from some
remote php script. Bob's version looks good but is it a hacked TW or a
macro? Couldn't figure it out!

Devon Jones

unread,
Oct 25, 2005, 8:41:59 PM10/25/05
to Tiddl...@googlegroups.com
it's a hacked TW install. he has added jsMathlib which allows the
rendering of mathml. The rendering is native in recent versions of
firefox, if you are seeing an image get served, it probably means your
browser can't natively render mathml - and thus it sends it to a server
to be rendered as an image.

I have looked at this a bit, and although I think we can hack most of it
in to tiddlywiki as a macro, some of it may require actual altering
tiddlywiki so that the rendering happens.

Devon

Konstantin Levinski

unread,
Oct 27, 2005, 5:46:08 AM10/27/05
to TiddlyWiki
My macro is just a shortcut for a web-based frontend to LaTeX:
http://dubinushka.ru/form/formact.php?math=

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.

JSeb

unread,
Oct 27, 2005, 11:53:10 AM10/27/05
to TiddlyWiki
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.
|
| 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...

Clint Checketts

unread,
Oct 27, 2005, 11:59:10 AM10/27/05
to Tiddl...@googlegroups.com
On 10/27/05, JSeb <js...@cs.mcgill.ca> wrote:

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.

As of .32 the wikifier can be dynamically altered so it may now be a possibility implment this into a plugin (though I would have no idea)

-Clint
Reply all
Reply to author
Forward
0 new messages