DocumentTools[Layout] - Maple Programming Help

Home : Support : Online Help : Programming : Document Tools : Layout : DocumentTools/Layout/Worksheet

DocumentTools[Layout]

 Worksheet
 generate XML for a Worksheet element

 Calling Sequence Worksheet( c )

Parameters

 c - The results from the other Layout constructors

Description

 • The Worksheet command returns an XML function call which represents the Worksheet 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 XML representation of a Worksheet or Document contains only a single Worksheet element, which is the container for all other content.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Layout}\right):$

Executing the Worksheet command produces a function call.

 > $\mathrm{xml}≔\mathrm{Worksheet}\left(\right)$
 ${\mathrm{xml}}{≔}{\mathrm{_XML_Worksheet}}{}\left(\right)$ (1)

Additional elements generated with commands from the Layout Constructors and Component Constructors packages can be used within the Worksheet element.

 > $\mathrm{xml}≔\mathrm{Worksheet}\left(\mathrm{Group}\left(\mathrm{Input}\left(\mathrm{Textfield}\left("A plot of tan\left(x\right)."\right)\right)\right),\mathrm{Table}\left(\mathrm{Row}\left(\mathrm{InlinePlot}\left(\mathrm{plot}\left(\frac{\mathrm{tan}\left(x\right)}{x}\right)\right)\right)\right)\right):$

That XML representation of a worksheet can be inserted directly.

 > $\mathrm{InsertContent}\left(\mathrm{xml}\right):$

A plot of tan(x).

 > 

Compatibility

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