Jump to content

Troff macro

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by AnomieBOT (talk | contribs) at 23:39, 20 May 2018 (Dating maintenance tags: {{Mergeto}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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