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

Online Help

All Products    Maple    MapleSim


DocumentTools[Layout]

  

Output

  

generate XML for an Output element

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Output( t )

Parameters

t

-

The result from the Textfield constructor

Description

• 

The Output command returns an XML function call which represents an output element of a Worksheet or Document.

• 

The generated XML may be used with the results of additional commands in the Layout Constructors package to create an entire Worksheet or Document in XML form. Such a representation of a Worksheet or Document may be inserted into the current document using the InsertContent command.

• 

The argument to the Output command is the result of a call to the Textfield constructor.

• 

The result of the Output command is suitable as an argument to the Group command, in the sense that an Execution Group  of a worksheet can contain an output region.

• 

An output region is preceded in an execution group by the an input region. This corresponds to the results of the Input and Output constructors being the arguments of the Group constructor.

Examples

withDocumentTools:

withDocumentTools:-Layout:

Executing the Output command produces a function call.

OutpOutputTextfieldEquationintx2,x

Outp_XML_Output_XML_Text-fieldalignment=centred,style=Text,layout=Normal,_XML_Equationexecutable=false,style=2D Output,display=LUkmbWZyYWNHNiQlKnByb3RlY3RlZEcvJSttb2R1bGVuYW1lR0ksVHlwZXNldHRpbmdHNiRGJSUoX3N5c2xpYkc2JC1JJW1zdXBHNiRGJS9GJ0YoNiQtSSNtaUc2JEYlL0YnRig2I1EieDYiLUkjbW5HNiRGJS9GJ0YoNiNRIjNGN0Y4,LCQqJCUieEciIiQjIiIiRiU=

(1)

By using additional commands from the Layout Constructors package a nested function call can be produced which represents an entire worksheet.

InpInputTextfieldint(x^2,x);,alignment=left,prompt=> ,style=MapleInput:xmlWorksheetGroupInp,Outp:

That XML representation of a worksheet can be inserted directly.

InsertContentxml:

intx2,x

x33

(2)

The next example illustrates using 2-D Math input with an executable statement, accompanied by the corresponding output.

EinEquationfactorsumi2,i=1..n,style=TwoDimInput,executable=true:EoutEquationfactorsumi2,i=1..n,style=TwoDimOutput:TinTextfieldEin,alignment=left,prompt=> ,style=MapleInput:ToutTextfieldEout:InsertContentWorksheetGroupInputTin,OutputTout:

factori=1ni2

nn+12n+16

(3)

Compatibility

• 

The DocumentTools:-Layout:-Output command was introduced in Maple 2015.

• 

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

See Also

Component Constructors

DocumentTools

Equation

Group

Input

InsertContent

Layout Constructors

Textfield

XMLTools

 


Download Help Document