On Aug 21, 12:38 pm, olosvk <[email protected]> wrote: > MathQuill is a wrong way, because at some point, you would need to > convert html code (PMario's suggestion for a formatter). ... In my example a) of the first post I wrote, how the mathquill library seems to work and I wrote, that this isn't the way I'd want to go.
As far as I can see (now), there is _no_ need to mess around with the html code. If you have a look at the second demo page of mathquill [1], you can see they can convert there internal structure into LaTex math syntax. Since you have to store the edited equation anyway, anyhow. It would be possible to use this syntax. Since it seems to be a well known and understood syntax, I think it would make sense. > Imho, > sticking with pure latex notation (in TW's edit mode) is better (easy > copy/paste, manual editing,...). Yup. LaTex notation as the preferred syntax. > ... I was thinking similary to the MathQuill > border for active position in the expression and using keyboard arrows > for moving, but how to achieve this in TW goes far beyond my knowlegde > about the core macros (functions)...With many expressions in one > tiddler performance can become an issue too. Exactly the navigation of the mathquill library was one thing that catched my interest. The MathJax plugin [2] page has two demo equations. Using the mathquill editor, it was quite easy, for me, to create the first one, without knowing anything about math syntax. (To be honest "n \choose k" needed some investigation). ===== As you pointed out, in TW it is tricky, to mix plain text input with WYSIWIG input or WYSIWIG preview. Since my last post, I thought a little bit about the mix. It would be possible to have a plain text editor for the text and a WYSIWIG editor for the equation. +-------------- | plain text | math1 (latex) | some more text | math2 (latex) +-------------- | math1 (wysiwig) | [[insert]] button Where the wysiwyg part has a button, "Insert syntax at cursor position", that inserts the "translated" LaTex syntax. The biggest problem and the _showstopper_ I see here is, if the "text cursor" is at eg: math2, as a user I'd want to have an automatic update at the wysiwyg editor. This "simple" feature kills the idea. ====== I did have an other idea too. Eric Shulman created PasteUpPlugin [3] some time ago. Together with EditSectionPlugin, a mathquill plugin, it could be quite handy. I am not sure, if it creates a smooth experience, but it would fit well to my transclusion approach. See section b) of my first post, and the second post in this thread. aaand .... there is no need to mix it with PasteUpPlugin but it would be possible. Some more brainstorming :) -m [1] http://mathquill.github.com/demo.html [2] http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin/ [3] http://www.tiddlytools.com/#PasteUpPlugin -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

