Ticket #1389 (closed task: fixed)

Opened 12 years ago

Last modified 12 years ago

Evaluate MimeTex for creating mathematical formulas

Reported by: tarmo Owned by: gabor
Priority: blocker Milestone: 1.11
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining:
Time spent: 14h


mimetex1.jpg (19.1 KB) - added by gabor 12 years ago.
mimetex2.jpg (35.2 KB) - added by gabor 12 years ago.

Change History

Changed 12 years ago by gabor

Changed 12 years ago by gabor

comment:2 Changed 12 years ago by gabor

  • Owner changed from anonymous to gabor
  • Status changed from new to assigned
  • Time spent set to 14h

I've made some experiments on how MimeTex? could be added to LeMill.

First, MimeTex? is a binary CGI application. Running it from Bash or from the command line of Windows doesn't create an image that we can use but creates an ASCII text that looks like the image should. So I belive that the only possible way to use MimeTex? is through another Web Service, which can run on the same computer. The general usage from HTML would look like this: <img src="http://servername.xxx/mimetex.cgi?sqrt{x^2+y^2}"/> We could just use lemill.net as servername.xxx with another port.

MimeTex? forumulas are mostly useful for multimedia pages. So MimeTex? forumlas could be stored in the bodyText of the chapters the same way as normal texts and UIDs to media pieces are stored currently. So this would require to add a new block into widget_chapter.pt to identify and render MimeTex? forumlas.


We could just allow MimeTex? formulas to be added inside normal text blocks. This would require some sort of distinctive text to identify the beginings and ends of the formulas, like [mimetex] and mimetex. '[mimetex]' could be replaced with '<img src="http://lemill.net:81/mimetex.cgi?' and 'mimetex' with '" />' with cookText.py. So it's quite simple. See the two attachments: "mimetex1.jpg" and "mimetex2.jpg" to see how this could work.

But of course writing MimeTex? would require some sort of formula editor, where teachers could create and preview the formulas by selecting the needed elements from lists. So they wouldn't have to learn the whole language. When finished, this formula could be added to the bodyText field, either automaticaly or if it's not possible because of kupu, then manually.

comment:3 Changed 12 years ago by tarmo

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.