codekitty
codekitty

Reputation: 1438

simplest way to dynamically display math content on web pages

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

Answers (5)

pmagunia
pmagunia

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.

Jay Salvat's Markitup

MarkItUp/MimeTex/jQuery/AJAX Implementation

Upvotes: 0

Casey W. Stark
Casey W. Stark

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

Olivier Verdier
Olivier Verdier

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

jmbr
jmbr

Reputation: 3348

Try jsMath: http://www.math.union.edu/~dpvc/jsMath/

Upvotes: 1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798456

mimeTeX or mathTeX.

Upvotes: 2

Related Questions