Welcome to
the Maplesoft MathML Home Page
Last updated May 11, 2005
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:
- Open the worksheet that
you want to export.
- From the File
menu, select Export As. The Export As dialog opens.
- Select HTML as
a file type.
- Specify a path and folder
for the file.
- Enter a filename.
- Click Save. The HTML Options dialog opens.
- 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.
- To export the worksheet
as an HTML document with frames, select the Use Frames check box.
- To export mathematical
expressions as MathML instead of GIF images, select the appropriate MathML
check box (MathML 2.0 Presentation, MathML 2.0 Content).
- To export output as encoded
Maple, select Maple Viewer. For details about these options, see the
following sections.
- Click OK.
Selecting Options
- GIF
- Output regions of worksheet are exported as GIFs and referred to by <image>
tags in the HTML. The GIF files are written to the images directory.
- MathML 2.0 Presentation
- Output regions are exported as Presentation MathML.
- MathML 2.0 Content
- output regions are exported as both Presentation and Content MathML. The
HTML file is much larger than the file created by the MathML 2.0 Presentation
option.
- Maple Viewer
- Output regions are exported as encoded Maple. The HTML file is much smaller
than the file created by the MathML 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