Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > writing documentation > document > Subnodes
next | previous | forward | backward | up | index | toc

Subnodes -- a menu of documentation nodes

Synopsis

Description

This option inserts into a documentation page a menu of subnodes and defines how the tree structure of the documentation is constructed. This is relevant when printing the documentation.

Example of usage as an optional argument to document(List)


Subnodes => {
        "An example of subnodes",
        TO "a link name",
        TO "another link name"
        },

Example of usage as a keyword in doc(String)

When used as a main section of a documentation node, Subnodes can be used as follows:


Subnodes
    :Heading 1
      myFunction
      "a link name"
      :A subheading about @TO "mySecondFunction"@
        mySecondFunction
    :Heading 2
      "another link name"

See also

Functions with optional argument named Subnodes :

For the programmer

The object Subnodes is a symbol.