Worksheet/TableOfContents - Maple Help

Worksheet

 TableOfContents

 Calling Sequence TableOfContents( target ) TableOfContents( target , opts ) TableOfContents( target , destination ) TableOfContents( target , destination , opts )

Parameters

 target - string; name of file to read in .mw format destination - sting; name of file to write in .mw format opts - options; any number of options for the formatting of the table of contents

Description

 • If the second argument destination is omitted then the generated file with a table of contents is opened in the Maple GUI. Otherwise, the generated file is written with a table of contents to the destination file in .mw format.
 • The opts argument can be one or more options to TableOfContents which are as follows:
 • The option depth indicates the number of subsections (including the first level) that are included in the table of contents. The default value is 2.
 • The option startingsize indicates the size of font of headings of the first level sections in the table of contents. The default value is 12.
 • The option sizeincrement indicates the decrease in font size between each level of section title in the table of contents. The default value is 2.
 • The option columns specifies the number of columns (as a positive integer) the table containing section titles has. The default is 0 which creates the table of contents without a table surrounding it. A value of columns 2 or greater splits the information across multiple columns to make the table of contents take less vertical space. A value of 1 creates the same table of contents as a value of 0 except contained within a table.
 • The option color changes the color of the text of all the section titles of the table of contents. The default is the color of hyperlinks. The value can be specified in any form that ColorTools can recognize.
 > $\mathrm{file}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{datadir}\right),"/help/Worksheet/SimpleSectionDocument.mw"\right):$
 > $\mathrm{Worksheet}:-\mathrm{TableOfContents}\left(\mathrm{file}\right):$
 > $\mathrm{Worksheet}:-\mathrm{TableOfContents}\left(\mathrm{file},\mathrm{depth}=3,\mathrm{columns}=3,\mathrm{color}="Black",\mathrm{bullets},\mathrm{nounderline},\mathrm{startingsize}=14,\mathrm{sizeincrement}=3,\mathrm{nosection}\right):$