User:IanDavidWild/Mathematical Content in Electronic Media

From Wikipedia, the free encyclopedia

Encoding Mathematical Content[edit]

At present there are three main methods for encoding mathematical content, namely

  • TeX/LaTeX, primarily used for print and PDF publishing
  • MathML (presentation and content), for web pages and accessibility
  • OpenMath, an extensible standard for the semantics of mathematical objects

Each of these encodings has its own range of applicability. For each, there are problems with authoring and conversion. A single system, for example for e-Assessment, may require LaTeX for authoring, MathML for accessibility and OpenMath for back-end marking of student input.

The main electronic media used for mathematical content are PDF, HTML and graphics (including handwriting and scan).

Mathematical Content From Commercial Publishers[edit]

Commercial publishers, such as Pearson with http://www.mathxl.com, are linking course books to proprietary e-Learning systems for mathematics.

Conversion Tools[edit]

There are many standards and conversion tools in use, most developed for a particular purpose. Conversion tools include GELLMU, LaTeX, LaTeX2HTML, LaTeXML, latex2wp, MathTran, mimeTeX, mathTeX (the successor to mimeTeX), PlasTeX, SnuggleTeX, LatexRender.

Each conversion tool has an implied standard for mathematical content.

Rendering Mathematics As Images[edit]

Programs such as mathTeX, LatexRender and CodeCogs Equation Editor[1] render mathematical expressions as images with PNG or GIF format. LatexRender-ng[2] can also generate SVG images in some browsers. Although using images suffers from disadvantages such as non-scaleable graphics and possibly slower loading web pages, it does allow access to the full LaTeX capability via the use of packages such as PSTricks[3], mhchem (for chemical expressions)[4] and Asymptote[5] (for geometrical diagrams).

This method was originally written by Benjamin Zeiss in 2003 and has become popular with online programs such as phpBB forums[6], Moodle and Wordpress.com blogs[7] because it works in every browser and doesn't require the reader to install any special plugins or fonts. It puts the mathematical expression in the alt/title tags of the image satisfying accessibility requirements; this expression is retained to enable re-editing the content and, optionally, can appear in a popup window for readers to copy.

The process takes the required expression and puts it in small but complete LaTeX document, using any packages that the server owner wishes to add. This is then compiled to DVI and the image abstracted from the output using programs such as ImageMagick and dvipng, and is then displayed. To avoid re-rendering the image every time the expression appears, the images are cached. This is achieved by calculating the MD5 hash of the expression and using that hash for the filename.

For users unfamiliar with LaTeX, it is possible to add editors such as CodeCogs Equation Editor to the Javascript editor used to create content in forums and blogs.

Problems Encoding Mathematical Content[edit]

Authoring of mathematical content by students, and in web pages, are long-standing problems that inhibit eLearning of mathematics[8] and dissemination of mathematics[9], which frustrates even great mathematicians[10]. For example, text can be copied from one computer application to another, even if in a non-Latin script. However, often this cannot be done with mathematical content[11]. For this reason, formulas are often reduced to images, which cannot be edited or made accessible.

One common solution is a "drag and drop" equation editor. An expression is built up on-screen in a traditional form before being exported in the desired format. For example [Dragmath] is one such editor. Unusually, a user can define an "output format file" to describe the desired target output format without having to re-compile the software itself.

References[edit]

  1. ^ CodeCogs Equation Editor http://www.codecogs.com/components/equationeditor/equationeditor.php
  2. ^ LatexRender-ng http://latexrender-ng.sourceforge.net/
  3. ^ Plotting Graphs http://sixthform.info/steve/wordpress/?p=24
  4. ^ Chemistry http://sixthform.info/steve/wordpress/?p=37
  5. ^ Art of Problem solving forum http://www.artofproblemsolving.com/Forum/viewtopic.php?t=149650
  6. ^ Art of Problem Solving example post http://www.artofproblemsolving.com/Forum/viewtopic.php?t=216629
  7. ^ {Terence Tao's blog http://terrytao.wordpress.com/
  8. ^ Sangwin,C.J. & Ramsden,P., Linear syntax for communicating elementary mathematics. J. Symbolic Comp. 42(2007) pp. 902-934. http://web.mat.bham.ac.uk/C.J.Sangwin/Publications/2007-Sangwin_Ramsden_Syntax.pdf.
  9. ^ Hayes,B., Writing Math on the Web. American Scientist 97(2009) 2, pp. 98-102. http://amsciadmin.eresources.com/libraries/documents/2009291317597205-2009-03Hayes.pdf.
  10. ^ Terry Tao's blog. http://terrytao.wordpress.com/2009/10/29/displaying-mathematics-on-the-web/
  11. ^ Libbrecht,P. & Jednoralski,D., Drag-and-drop of Formul{\ae} from a Browser. http://www.activemath.org/~paul/MathUI06/proceedings/LJ-DnD-ActiveMath.pdf.

http://www.americanscientist.org/issues/pub/2009/3/writing-math-on-the-web/1

External links[edit]