Welcome to the Maplesoft MathML Home Page

Last updated April 26, 2004

  What is MathML 2.0?
  How to export Maple output as MathML
  Download the WebEQ MathML Viewer for Maple

What is MathML 2.0?

Maple supports MathML 2.0, an emerging communications standard sponsored by the World Wide Web Consortium (W3C) for representing and interpreting mathematical expressions, including their display in Web pages. MathML is an extension of HTML.

Maple MathML support allows users to export Maple output expressions and worksheets as MathML-enriched Web pages. Earlier versions of MathML deal only with the display of mathematical expressions. MathML 2.0 represents both their display and their meaning.

Home


How to Export Maple Output as MathML

Maple Standard Worksheet Interface

Export a worksheet as an HTML document for viewing in a Web browser.

1.      Open the worksheet that you want to export.
2.      From the File menu, select Export As. The Export As dialog opens.
3.      Select HTML as a file type.
4.      Specify a path and folder for the file.
5.      Enter a filename.
6.      Click Export. The HTML Options dialog opens.
7.      In the Image Subdirectory field, enter the pathname for the directory where exported images are to be saved.

Images in an HTML document cannot be saved in the HTML file. Each image is saved in its own GIF file. If the directory that you specified does not exist, it is created for you. All image directories are relative to the document. The default directory is images, and it is located under the same directory that was selected for the HTML document. For example, if the HTML document is saved in /u/mydocs, the default image directory will be /u/mydocs/images. An Image Subdirectory of "" causes the images to be saved in the same directory as the HTML file.

8.      To export the worksheet as an HTML document with frames, select the Use Frames check box.
9.      To export mathematical expressions as MathML instead of GIF images, select the appropriate MathML check box.
10.    Click OK.


Proper Display of Exported Worksheet

Your browser determines whether you can properly display the exported worksheet using MathML 2.0 with WebEQ, MathML 2.0, MathML 1.0, or GIFs for the formatted mathematical output.

If WebEQ is not currently installed on your system, the MathML viewer is invoked over the Internet. This can cause slight delays when opening the HTML file. To avoid these delays, you can install the WebEQ MathML Viewer permanently on your machine.

Home


Individual Maple Expresssions

You can also export individual Maple expressions as MathML strings. If the expression is named "expr", then enter the following command:
> MathML:-Export( expr ):
 
This produces a string containing the MathML representation of the Maple expression. To list the string in tab-indented layout, issue this command next:
> XMLTools:-Print( % );
 
Alternatively, you can right-click on the Maple output expression you wish to export. From the context-sensitive menu that pops up, select Conversions. From that submenu, select MathML.

You can copy the MathML string to the clipboard and then paste it into any other Maple worksheet. The pasted expression will be the Maple expression represented by the MathML string.

Home


Download the WebEQ MathML Viewer for Maple

WebEQ, developed by Design Science Inc., is a MathML-viewing technology embedded in Maple that allows you to view MathML in Web pages on most standard browsers, even those that don't support MathML. When you open a Web page containing Maple-generated MathML, WebEQ invokes a MathML viewer that displays each Maple output in the Web page as an applet. If WebEQ is not currently installed on your system, this viewer is invoked over the Internet. This can cause slight delays when opening the HTML file. To avoid these delays, you can install the WebEQ MathML Viewer permanently on your machine.

Home