The documentation for Macaulay2 is available in several formats and can be searched and viewed using the following functions:
To begin, the about method allows for searching all documentation nodes whose title or content contains a given string:
|
The apropos method is useful for finding all exported objects whose symbol matches the given regular expression:
|
While in Macaulay2, type help to get the documentation on a topic or function, or type viewHelp to open ~/.Macaulay2/index.html, which contains a list of all installed packages, in your default web browser.
For help on a specific topic, e.g., the Jacobian function, use viewHelp jacobian or viewHelp "jacobian", or if you want the documentation for Jacobian of an Ideal, use viewHelp (jacobian, Ideal) or viewHelp "jacobian(Ideal)". Using help instead of viewHelp results in the help text appearing in your Macaulay2 session.
A useful tip: within Emacs, if you place your cursor on one of the resulting output lines that starts with a *, and press the return key, Macaulay2 will display that documentation node.
The documentation for most functions comes with example code. You can obtain the text of this example code using examples.