Use the file man.local for local extensions to the man
macros or for style changes.
In groff versions 1.18.2 and later, you can specify custom headers and footers by redefining the following macros in man.local.
Control the content of the headers. Normally, the header prints the command name and section number on either side, and the optional fifth argument to
THin the center.
Control the content of the footers. Normally, the footer prints the page number and the third and fourth arguments to
TH.Use the
FTnumber register to specify the footer position. The default is −0.5i.
The groff source distribution includes a file named
man.ultrix, containing macros compatible with the Ultrix variant
of man. Copy this file into man.local (or use the
mso request to load it) to enable the following macros.
Begin a non-filled display using the constant width (Courier) typeface. Use the optional indent argument to indent the display.
Set text in Helvetica. If no text is present on the line where the macro is called, then the text of the next line appears in Helvetica.
Set text in Helvetica Oblique. If no text is present on the line where the macro is called, then the text of the next line appears in Helvetica Oblique.
Set text in Helvetica Bold. If no text is present on the line where the macro is called, then all text up to the next
HBappears in Helvetica Bold.
Set a manpage reference in Ultrix format. The title is in Courier instead of italic. Optional punctuation follows the section number without an intervening space.
C] [title]Begin a note. Print the optional title, or the word “Note”, centered on the page. Text following the macro makes up the body of the note, and is indented on both sides. If the first argument is
C, the body of the note is printed centered (the second argument replaces the word “Note” if specified).
Set the path name in constant width (Courier), followed by optional punctuation.
If called with two arguments, identical to
PN. If called with three arguments, set the second argument in constant width (Courier), bracketed by the first and third arguments in the current font.
4]Start printing a change bar in the margin if the number
4is specified. Otherwise, this macro does nothing.
The following example man.local file alters the SH macro
to add some extra vertical space before printing the heading. Headings
are printed in Helvetica Bold.
.\" Make the heading fonts Helvetica
.ds HF HB
.
.\" Put more whitespace in front of headings.
.rn SH SH-orig
.de SH
. if t .sp (u;\\n[PD]*2)
. SH-orig \\$*
..