Mathdox Formula Editor
MathDox formula editor
The MathDox formula editor is a web-based editor for mathematical formulas. It is currently being developed at the Technische Universiteit Eindhoven as a means for students to enter formulas in an e-learning environment. Its main features are listed below.
- It has a two-dimensional WYSIWYG interface.
- It can produce a semantic representation of the formula.
- No plugins need to be installed in the browser to use the editor.
- It can be easily integrated into existing HTML pages.
- It is available under an open source license.
The editor is written in Javascript and uses the HTML5 canvas element in combination with jsMath sprite fonts to render mathematics.
Any questions or comments about the editor are welcome and can be directed at info@mathdox.org.
Demo
The following formula can be edited using your keyboard. Feel free to experiment, but beware that currently only integers, variables,
multiplication (*), division (/), addition (+), subtraction (-) and exponents (^) are supported.
To see an OpenMath representation of the formula above click here. This demonstrates that a semantic tree of the formula is stored, and not just a presentation tree.
Usage
Please be warned that this is not yet a finished product; there are still many features missing that you would expect in a formula editor. Having said that, if you want to use the formula editor in a webpage, there are two ways to do so. The first method is by including a reference to the main javascript file at the mathdox.org server:
<script type='text/javascript' src='http://mathdox.org/formulaeditor/main.js'></script>
The second (alternative) method is by copying the formulaeditor javascript sources to the same location as the webpage, and reference the main javascript file from there:
<script type='text/javascript' src='org/mathdox/formulaeditor/main.js'></script>
In addition you also need to add a textarea of class 'mathdoxformula' at the place where you want the formula editing field to appear:
<textarea class='mathdoxformula'></textarea>
Download
Webpage authors that want to deploy the formula editor javascript sources to their own website can download the following package:
Developers that are interested in changing the formulaeditor itself, can checkout the source from the subversion repository at:
https://mathdox.org/svn/repos/public/formulaeditor
Known limitations
Currently this editor has only been tested in Mozilla Firefox and Microsoft Internet Explorer (v7). Support for the other main browsers (Safari, Opera, Konqueror) will be added later.
Currently only one editor per page is allowed. Support for multiple editors per page will be added later.
Only a very limited set of mathematical operations is supported right now.
Copyright information
Copyright (C) 2007 Technische Universiteit Eindhoven
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- Versione stampabile
- Aggiungi un commento
- 3342 letture


Mark, this editor is not
Mark,
this editor is not WYSIWYG!
A WYSIWYG editor for semantic math makes no sense since what you *get* is by far non-comparable to what you *see*. It is a visual editor!
paul
Hi Paul, I hadn't realised
Hi Paul,
I hadn't realised that you needed to specifically subscribe to a post or turn on auto-subscription in order to get notified by e-mail about replies, so I totally missed your replies until now. Sorry about that.
About this being a wysiwyg editor or not, that all depends on your definition of wysiwyg. If you take the wikipedia definition: "an acronym for What You See Is What You Get, used in computing to describe a system in which content during editing appears very similar to the final product", then I think that the MathDox Formula Editor falls under that definition.
Mark
Mark, why not make it under
Mark,
why not make it under LGPL without a release, ie. in simple source-repository form? This is much better for early adopters!
(otherwise, e.g. I, should wait for a release... why would i? Should that prevent me distributing my app?)
paul
I hope that this concern is
I hope that this concern is now addressed by the new version of the Formula Editor, complete with svn repository :)