The ms macro package expects a certain amount of structure, but not as much as packages such as man or mdoc.
The simplest documents can begin with a paragraph macro (such as
PP), and consist of text separated by paragraph
macros or even blank lines. Longer documents have a structure as
RP(report) macro on the first line of the document,
groffprints the cover page information on its own page; otherwise it prints the information on the first page with your document text immediately following. Other document formats found in AT&T
troffare specific to AT&T or Berkeley, and are not supported in
TCmacro at the end of your document. The ms macros have minimal indexing facilities, consisting of the
IXmacro, which prints an entry on standard error. Printing the table of contents at the end is necessary since
groffis a single-pass text formatter, thus it cannot determine the page number of each section until that section has actually been set and printed. Since ms output is intended for hardcopy, you can manually relocate the pages containing the table of contents between the cover page and the body text after printing.
 Actually, only the title is required.