(This markup is better than asking for a particular font type because it just
changes to bold, italic, or regular for the current font.) Figure 21-4 shows what the waycool man
page looks like after it is formatted with groff (and sent to the printer with the -l option):
$ groff -man -Tps -l waycool.1
Table 21-1 lists the macros that you can use on your man pages. These macros are described on the
man(7) manual page (type man 7 man to view that page).
TIP
562
Running Applications Part IV
FIGURE 21-4
Man page formatting adds headers and lays out the page of text.
TABLE 21-1
man Macros
Macro Description
.B Bold.
.BI Bold, then italics (alternating).
.BR Bold, then Roman (alternating).
.DT Set default tabs.
.HP Begin a hanging indent.
.I Italics.
.IB Italics, then bold (alternating).
.IP Begin hanging tag. Used for options. Long tags use .TP.
continued
563
Working with Words and Images 21
TABLE 21-1 (continued)
Macro Description
.IR Italics, then Roman (alternating).
.LP Begin paragraph.
.PD Set distance between paragraphs.
.PP Begin paragraph.
.RB Roman, then bold (alternating).
.RE End relative indent (after .RS).
.RI Roman, then italics (alternating).
.RS Begin relative indent (use .RE to end indent).
.SB Small text, then bold (alternating).
Pages:
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073