groff: ms Headers and Footers

 
 4.3.6.1 Headers and footers
 ...........................
 
 For documents that do not distinguish between odd and even pages, set
 the following strings:
 
  -- String: \*[LH]
  -- String: \*[CH]
  -- String: \*[RH]
      Sets the left, center, and right headers.
 
  -- String: \*[LF]
  -- String: \*[CF]
  -- String: \*[RF]
      Sets the left, center, and right footers.
 
    For documents that need different information printed in the even and
 odd pages, use the following macros:
 
  -- Macro: .OH 'left'center'right'
  -- Macro: .EH 'left'center'right'
  -- Macro: .OF 'left'center'right'
  -- Macro: .EF 'left'center'right'
      The 'OH' and 'EH' macros define headers for the odd and even pages;
      the 'OF' and 'EF' macros define footers for the odd and even pages.
      This is more flexible than defining the individual strings.
 
      You can replace the quote (''') marks with any character not
      appearing in the header or footer text.
 
    To specify custom header and footer processing, redefine the
 following macros:
 
  -- Macro: .PT
  -- Macro: .HD
  -- Macro: .BT
      The 'PT' macro defines a custom header; the 'BT' macro defines a
      custom footer.  These macros must handle odd/even/first page
      differences if necessary.
 
      The 'HD' macro defines additional header processing to take place
      after executing the 'PT' macro.