Reputation: 1438
I'd like to let people type math (latex) in a text field and show them the math content dynamically as they type on the same page. how can this be done (i'm developing on windows)?
thanx!
Upvotes: 5
Views: 355
Reputation: 1788
I agree with Olivier. I use Jay Salvat's markitup on my site. Everything is JavaScript so it's cross-platform. You can create drop-down menu's that organize icons into groups and when you click an icon, JavaScript automatically embeds the code into the textarea. Sometimes fitting the icon into a small space is challenge but it can be done.
I've used it with Drupal and am very pleased with it. js injector automatically embeds the code into specified pages and the jQuery comes for free. (There is a Windows version of Drupal as well).
John Forkosh's Mimetex then renders the equation. The query is sent via jQuery AJAX so you don't need a page refresh. I'm pretty sure there is a Windows version of Mimetex.
MarkItUp/MimeTex/jQuery/AJAX Implementation
Upvotes: 0
Reputation: 757
I recommend MathJax.
It looks like the most advanced solution and the only one still under active development, as far as I can tell.
Upvotes: 3
Reputation: 49126
For the dynamic updating part I suggest markitup. In preview mode it updates a "processed" version of what you type (just like the SO text fields).
For the math, I also advise the excellent jsmath (checkout the examples!).
A combination of the two should fit the bill.
Upvotes: 3