Maple Worksheets as Text Files

Maple worksheet files are ordinary text files with either the classic extension *.mws or the standard extension *.mw that can be opened in WordPad, just like webpage *.html or *.htm files. Maple creates the GUI worksheet interface that you see when you open a Maple file in much the same way as a browser like Internet Explorer or Netscape creates a webpage from the underlying HyperText Markup Language (HTML) coded file. You must distinguish What You See from What you Get.

For example, the simple Maple worksheet:

file

corresponds to the text file:

{VERSION 6 0 "IBM INTEL NT" "6.0" }
{USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0
1 0 0 0 0 1 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0
0 0 1 }{CSTYLE "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 0 0 0 0 0 0 1 }
{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2
2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Maple Output" -1
11 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }3 3 0
0 0 0 1 0 1 0 2 2 0 1 }}
{SECT 0 {EXCHG {PARA 0 "" 0 "" {TEXT -1 21 "Some text at the top." }}}
{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "exp(1); evalf(%);" }}{PARA
11 "" 1 "" {XPPMATH 20 "6#-%$expG6#\"\"\"" }}{PARA 11 "" 1 ""
{XPPMATH 20 "6#$\"+G=G=F!\"*" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 24 "S
ome text at the bottom." }}}}{MARK "2 0 0" 24 }{VIEWOPTS 1 1 0 1 1
1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }

Highlighted in red for your convenience are the actual text characters typed into the file above. You can see they are surrounded by a lot of typesetting instructions that do not interest us. And notice that the blue output in the worksheet in between the characters in red that we recognize is instead not recognizable, but is supplied by the Maple software when the worksheet is opened.

If you instead you use the Standard Maple interface and save the same worksheet using 2d input as an .mw file, you see instead in Notepad:

<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="7" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>

<MapleNet-Properties warnlevel="3" longdelim="true" plotoptions="" echo="1" errorcursor="false"
elisiontermsthreshold="10000" elisiontermsbefore="100" errorbreak="1" prettyprint="3" prompt="&gt;
" latexwidth="5.0" useclientjvm="true" ansi="false" screenheight="25" labelwidth="20" plotdevice="inline"
typesetting="standard" displayprecision="-1" indentamount="4" elisiondigitsthreshold="10000" quiet="false"
plotoutput="terminal" rtablesize="10" preplot="" showassumed="1" plotdriver="openviz" elisiontermsafter="100"
labelling="true" postplot="" screenwidth="79" elisiondigitsbefore="100" elisiondigitsafter="100"
verboseproc="1" imaginaryunit="I" ShowLabels="true"/>

<Styles><Font name="Heading 4" background="[255,255,255]" bold="false" executable="false"
family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Text Output" background="[255,255,255]" bold="false" executable="false"
family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false"
family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Author" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Text" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false"
family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false"
family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16"
subscript="false" superscript="false" underline="false"/>

<Font name="Page Number" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10"
subscript="false" superscript="false" underline="false"/>

<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Normal" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true"
family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="2D Output" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true"
size="12" subscript="false" superscript="false" underline="false"/>

<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false"
family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="true"/>

<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false"
size="12" subscript="false" superscript="false" underline="false"/>

<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false"
family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14"
subscript="false" superscript="false" underline="false"/>

<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="2D Input" background="[255,255,255]" bold="false" executable="true"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false"
family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="List Item" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true"
family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman"
foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false"
superscript="false" underline="false"/>

<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced"
foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false"
superscript="false" underline="false"/>

<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced"
foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false"
superscript="false" underline="false"/>

<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif"
foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false"
superscript="false" underline="false"/>

<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman"
foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" s
uperscript="false" underline="false"/>

<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false"
family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="false"/>

<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false"
family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12"
subscript="false" superscript="false" underline="true"/>

<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144"
rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="-1"/>

<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline"
pagebreak-before="false" initial="0"/>

<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0"  spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="-1"/>

<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any"
pagebreak-before="false" initial="0"/>

<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0"
leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3"
linebreak="space" pagebreak-before="false" initial="-1"/>

<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0"
leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0"
linebreak="space" pagebreak-before="false" initial="0"/>

<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0"
leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0"
linebreak="any" pagebreak-before="false" initial="0"/>

<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0"
leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3"
linebreak="space" pagebreak-before="false" initial="-1"/>

<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0"
linebreak="space" pagebreak-before="false" initial="0"/>

<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space"
pagebreak-before="false" initial="0"/>

<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36"
rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space"
pagebreak-before="false" initial="-1"/>

<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0"
rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space"
pagebreak-before="false" initial="0"/>

<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0"
pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0"
pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0"
pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0"
pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0"
pen-opacity="0.8"/>
</Styles>
<Task-table>
<Task-category name="&lt;default&gt;">
</Task-category>
</Task-table>
<Group labelreference="L2" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Some text at the top.</Text-field>
</Input>
</Group>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true"
style="2D Input" input equation=""display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5
cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYoLUkjbWlHRiQ2JVEhRicvJSdpdGFsaWNHUSV0cnVlRicv
JSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUYjNiUtRiw2JVEkZXhwRidGL0YyLUkjbW9HRiQ2MFEw
JkFwcGx5RnVuY3Rpb247RicvRjNRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2Vw
YXJhdG9yR0ZCLyUpc3RyZXRjaHlHRkIvJSpzeW1tZXRyaWNHRkIvJShsYXJnZW9wR0ZCLyUubW
92YWJsZWxpbWl0c0dGQi8lJ2FjY2VudEdGQi8lJWZvcm1HUSZpbmZpeEYnLyUnbHNwYWNlR1Ek
MGVtRicvJSdyc3BhY2VHRlQvJShtaW5zaXplR1EiMUYnLyUobWF4c2l6ZUdRKWluZmluaXR5Rict
SShtZmVuY2VkR0YkNiMtRiM2Iy1JI21uR0YkNiRGWUY+LUY7NjBRIjtGJ0Y+RkAvRkRGMUZFR
kdGSUZLRk1GT0ZSL0ZWUS90aGlja21hdGhzcGFjZUYnRldGWi1GOzYwUTEmSW52aXNpYmxlV
GltZXM7RidGPkZARkNGRUZHRklGS0ZNL0ZQRi5GUkZVRldGWi1GIzYlLUYsNiVRJmV2YWxm
RidGL0YyRjotRmhuNiMtRiM2Iy1GOzYwUSIlRidGPkZARkNGRUZHRklGS0ZNRmhvRlJGVUZXR
lpGKw==">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xp
YkdGJzYoLUkjbWlHRiQ2JVEhRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0
YWxpY0YnLUYjNiUtRiw2JVEkZXhwRidGL0YyLUkjbW9HRiQ2MFEwJkFwcGx5RnVuY3Rpb247R
icvRjNRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0ZCLyUpc3R
yZXRjaHlHRkIvJSpzeW1tZXRyaWNHRkIvJShsYXJnZW9wR0ZCLyUubW92YWJsZWxpbWl0c0dG
Qi8lJ2FjY2VudEdGQi8lJWZvcm1HUSZpbmZpeEYnLyUnbHNwYWNlR1EkMGVtRicvJSdyc3BhY
2VHRlQvJShtaW5zaXplR1EiMUYnLyUobWF4c2l6ZUdRKWluZmluaXR5RictSShtZmVuY2VkR0
YkNiMtRiM2Iy1JI21uR0YkNiRGWUY+LUY7NjBRIjtGJ0Y+RkAvRkRGMUZFRkdGSUZLRk1GT0
ZSL0ZWUS90aGlja21hdGhzcGFjZUYnRldGWi1GOzYwUTEmSW52aXNpYmxlVGltZXM7RidGPk
ZARkNGRUZHRklGS0ZNL0ZQRi5GUkZVRldGWi1GIzYlLUYsNiVRJmV2YWxmRidGL0YyRjotR
mhuNiMtRiM2Iy1GOzYwUSIlRidGPkZARkNGRUZHRklGS0ZNRmhv
RlJGVUZXRlpGKw==</Equation>
</Text-field>gt;
</Input>
</Group>
<Group labelreference="L4" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Some text at the bottom.</Text-field>
</Input>
</Group>
</Worksheet>

In short, a real mess. Clearly the standard worksheets are more sophisticated. In fact notice the XML reference in the first line of the file. When you click on a link to one of these in Internet Explorer, it opens it as a text document but when you try to save it, it guesses it to be an XML file and annoyingly changes the file extension to .xml which you have to change back to mw when you instead chose the file type ALL FILES. If you right-click on the link and pick SAVE TARGET AS you have the same problem or it may simply drop the file extension [bizarre that this behavior seems to depend on which computer I am using!], so when you try to find it in MAPLE, you don't see it: so you must change or add back on the .mw file extension. This problem seems to have been resolved by setting global parameters on our VU environment.

file

Maple Student Help Center

For some of you, the Maple Student Help Center might prove useful. It offers on-line help: "Get real answers from real people" "within hours" for homework problems by posting your questions on the on-line Forum. Free registration at Maple Primes is required for access.

Why do we care?

Sometimes Maple file attachments to emails get included in the main body of the email message for reasons that must have to do with optional settings that most of us ignore. Similarly the current browsers (IE, Netscape) cannot be configured to use Maple as a helper application to automatically open Maple files on the web nor does Netscape Messenger or our webmail do it either with email Maple file attachments which instead use WordPad. There is no reason to panic when you see the Maple file opened in this way. You simply need to "Save as" or "Save Target As" or do something similar to save the file locally on your computer giving it the proper file extension (usually .mws here at VU but also .mw now) and then open Maple and then use the File Open command to browse to where the file is and open it. [You can also copy the text of the classic Maple file from the opening to the closing curly brace and paste into a blank WordPad file and save it with the file extension .mws. Standard Worksheets instead start and stop with triangle brackets. ]

For web links to Maple files, right click on the link to the file (back button to the previous page if you already opened the link and are looking at the file in WordPad) and "Save Target as" (otherwise if you directly try to save the file opened in WordPad, you only have .html or .txt as the pull down choices for the file extension).