Documentation text is composed of a list of text and hypertext items. A single text string, even though it is not a list, is generally accepted as a hypertext list. Macaulay2 examples may be included in the list using the EXAMPLE tag. See Text for the full list of hypertext types.
Each element of the list may be a text string, or one of the elements below. The following items are used by themselves:
Items that take a text string (or other hypertext list) as argument:
Items that place hyperlinks into the documentation:
Other useful hypertext elements:
For example, the hypertext list:
{ HR{}, "When referring to a ", EM "Macaulay2", " identifier such as ", TT "matrix", ", use the TT element, or use a cross-reference, as in ", TO matrix, ". Incorporate ", EM "Macaulay2", " examples (during ", TO (installPackage,String), ") as illustrated here.", EXAMPLE "matrix{{1,2},{3,4}}", HR{} } |
when used as the input to document produces:
i1 : matrix{{1,2},{3,4}} o1 = | 1 2 | | 3 4 | 2 2 o1 : Matrix ZZ <--- ZZ |