next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > writing documentation > document > optional argument documentation template

optional argument documentation template

document {
        Key => {
             OptionName,
            [functionName, OptionName]},
        Headline     => "one line description",
        Usage        => "usage",
        Inputs       => {}, -- each input is a hypertext list
        Consequences => {}, -- each effect is a hypertext list
        "There can be explanatory prose here in the form of a hypertext list.",
        EXAMPLE {
            "m2code",
            "m2code",
            "m2code"},
        "There can be explanatory prose here in the form of a hypertext list.",
        Caveat => {"warning"}
        }

See also