Section - 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]

  

Section

  

generate XML for a Section element

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Section( s, t, opt )

Parameters

s

-

(optional) ; content of the Section

t

-

(optional) ; the Title of the Section

opt

-

(optional) ; the keyword options a described below

Options

• 

collapsed : truefalse:=false ; Whether the section is initially collapsed.

Description

• 

The Section command constructs a representation of a worksheet section.

• 

A Section element is returned as an XML function call.

• 

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 result of calling the Title element constructor can be optionally supplied, and will be used as the title of the section. All other arguments except for the collapsed keyword option are used as the content of the section.

Examples

withDocumentTools:

withDocumentTools:-Layout:

Executing the Section command produces a function call.

SSection

S_XML_Sectioncollapsed=false

(1)

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

xmlWorksheetS:

That XML representation of a worksheet can be inserted directly.

InsertContentxml:

 

SSectionTitleTextfieldstyle=Heading1,layout=Heading1,alignment=left,Introduction,GroupInputTextfieldalignment=left,Some introductory text.,GroupInputTextfieldInlinePlotplotsin:

InsertContentWorksheetS:

Introduction

Some introductory text.

Sections may be nested, as subsections. Sections may also be created initially collapsed.

SSectionTitleTextfieldstyle=Heading1,layout=Heading1,alignment=left,Plotting,GroupInputTextfieldalignment=left,Some introductory text.,SectionTitleTextfieldstyle=Heading2,layout=Heading2,alignment=left,2D plots,GroupInputTextfieldalignment=left,Some more text.,Sectioncollapsed,TitleTextfieldstyle=Heading3,layout=Heading3,alignment=left,2D animations,GroupInputTextfieldalignment=left,Some more text.,SectionTitleTextfieldstyle=Heading2,layout=Heading2,alignment=left,3D plots,GroupInputTextfieldalignment=left,Some more text.:InsertContentWorksheetS:

Plotting

Some introductory text.

2D plots

Some more text.

2D animations

Some more text.

3D plots

Some more text.

A Section can be constructed within a Table.

SSectionTitleTextfieldstyle=Heading2,layout=Heading2,alignment=left,Description,GroupInputTextfieldalignment=left,Some text.,Sectioncollapsed,TitleTextfieldstyle=Heading3,layout=Heading3,alignment=left,Details,GroupInputTextfieldalignment=left,Some more text.:TTablealignment=center,interior=none,width=60.0,RowInlinePlotplotsinxx,S:InsertContentWorksheetT:

Description

Some text.

Details

Some more text.

2D Math or a Table can be put into the Title of a Section.

S1SectionTitleTextfieldstyle=Heading2,layout=Heading2,alignment=left,Summation example: ,Equationstyle=TwoDimInput,sumfx,i=1..N,GroupInputTextfieldalignment=left,The body of the section.:

S2SectionTitleTextfieldstyle=Heading2,layout=Heading2,alignment=centered,Tablewidth=50,RowSome description,InlinePlotheight=200,plotsinx,GroupInputTextfieldalignment=left,The body of the section.:InsertContentWorksheetS1,S2:

Summation example: i=1Nfx

The body of the section.

Some description

The body of the section.

Compatibility

• 

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

• 

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

See Also

Component Constructors

DocumentTools

InsertContent

Layout Constructors

Table

Textfield

XMLTools