Welcome to the Maplesoft MathML Home Page

Last updated May 11, 2005

  What is MathML 2.0?
  How to export Maple 10 output as MathML

What is MathML 2.0?

Maple 10 supports MathML 2.0. Maple MathML support allows users to export Maple 10 output expressions and worksheets as MathML-enriched Web pages.

Home


How to Export Maple 10 Output as MathML

Maple 10 Standard Worksheet Interface

To 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 Save. 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 (MathML 2.0 Presentation, MathML 2.0 Content).
  10. To export output as encoded Maple, select Maple Viewer. For details about these options, see the following sections.
  11. Click OK.

Selecting Options

Viewing the HTML File

Viewing an HTML file that was created with the MathML or Maple Viewer options launches a 2-D Math Viewer applet in your browser. You can can highlight and copy math from the applet. To run the applet in Microsoft Internet Explorer® or Netscape®, you must have Java Plug-in JRE 1.4.1 (or higher) installed. If you are using JRE 1.5, you must download and install a crimson.jar file from the Maplesoft Web site: http://www.maplesoft.com/standards/MathML/Viewer/crimson.jar. The MapleViewer.jar is automatically downloaded when you view an exported HTML page in your browser.

Home


Individual Maple Expressions

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 the Maple output expression you want to export. From the context menu, 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