Troff macro

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

The troff typesetting system includes sets of commands called macros that are run before starting to process the document. These macros include setting up page headers and footers, defining new commands, and generally influencing how the output will be formatted.

The command-line argument for including a macro set is -mname, which has led to many macro sets being known as the base filename with a leading m.

The standard macro sets, with leading m are:

  • man -- for creating manual pages
  • mdoc -- redesign of man for semantically-annotated manual pages
  • me -- for creating research papers
  • mm -- for creating memorandums
  • ms -- for creating books, reports, and technical documentation