To Maple Text - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Worksheet

  

WorksheetToMapleText

  

convert a worksheet into a 1-D Maple text string

 

Calling Sequence

Parameters

Description

Notes

Examples

Compatibility

Calling Sequence

WorksheetToMapleText( worksheet )

WorksheetToMapleText( worksheet, includeoutput )

Parameters

worksheet

-

string or XML tree data structure

Description

• 

The command WorksheetToMapleText converts a Maple worksheet in .mw format into a string containing the equivalent commands as 1-D Maple text.  It is similar in functionality to the Maple Text format in the File > Export As menu.

• 

If the first argument worksheet is a string then it is treated as a filename. Otherwise, a worksheet as an XML tree data structure is expected.

Notes

• 

This command only fully supports worksheets.  It may not work properly for Maple documents with tables or components.

Examples

withWorksheet:

slashkerneloptsdirsep

slash/

(1)

filenamecatkerneloptsdatadir,slash,example,slash,MatrixExample.mw

filename/maple/cbat/active/234548/data/example/MatrixExample.mw

(2)

printfWorksheetToMapleTextfilename

m := Matrix(2,2,[[-4, sqrt(17)], [ln(45), 61/4]]);
m[1,1]*m[2,2]-m[1,2]*m[2,1];

printfWorksheetToMapleTextfilename,'includeoutput'

m := Matrix(2,2,[[-4, sqrt(17)], [ln(45), 61/4]]);
# out_1> Matrix(2,2,[[-4, sqrt(17)], [ln(45), 61/4]])
m[1,1]*m[2,2]-m[1,2]*m[2,1];
# out_2> -61-sqrt(17)*ln(45)

withDocumentTools:

withDocumentTools:-Layout:

ExPi

Exπ

(3)

WWorksheetGroupInputTextfieldEquationE,executable=true,style=TwoDimInput,style=MapleInput:

printfWorksheetToMapleTextW

sqrt(x)/Pi;

Compatibility

• 

The Worksheet:-WorksheetToMapleText command was introduced in Maple 2017.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

Export as Maple Text

Worksheet

XMLTools