DocumentTools[Layout]
Output
generate XML for an Output element
Calling Sequence
Parameters
Description
Examples
Compatibility
Output( t )
t
-
The result from the Textfield constructor
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.
with⁡DocumentTools:
with⁡DocumentTools:-Layout:
Executing the Output command produces a function call.
Outp≔Output⁡Textfield⁡Equation⁡int⁡x2,x
Outp≔_XML_Output⁡_XML_Text-field⁡alignment=centred,style=Text,layout=Normal,_XML_Equation⁡executable=false,style=2D Output,display=LUkmbWZyYWNHNiQlKnByb3RlY3RlZEcvJSttb2R1bGVuYW1lR0ksVHlwZXNldHRpbmdHNiRGJSUoX3N5c2xpYkc2JC1JJW1zdXBHNiRGJS9GJ0YoNiQtSSNtaUc2JEYlL0YnRig2I1EieDYiLUkjbW5HNiRGJS9GJ0YoNiNRIjNGN0Y4,LCQqJCUieEciIiQjIiIiRiU=
By using additional commands from the Layout Constructors package a nested function call can be produced which represents an entire worksheet.
Inp≔Input⁡Textfield⁡int(x^2,x);,alignment=left,prompt=> ,style=MapleInput:xml≔Worksheet⁡Group⁡Inp,Outp:
That XML representation of a worksheet can be inserted directly.
InsertContent⁡xml:
int⁡x2,x
x33
The next example illustrates using 2-D Math input with an executable statement, accompanied by the corresponding output.
Ein≔Equation⁡factor⁡sum⁡i2,i=1..n,style=TwoDimInput,executable=true:Eout≔Equation⁡factor⁡sum⁡i2,i=1..n,style=TwoDimOutput:Tin≔Textfield⁡Ein,alignment=left,prompt=> ,style=MapleInput:Tout≔Textfield⁡Eout:InsertContent⁡Worksheet⁡Group⁡Input⁡Tin,Output⁡Tout:
factor⁡∑i=1n⁡i2
n⁢n+1⁢2⁢n+16
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