Example 1:
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo
10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo
12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
'br\}
Example 2:
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
This is a nroff/troff construct which allows to test whether this test is
processed by nroff. Originally, nroff and troff were two different tools
sharing the same input language: nroff generated output suitable for
ASCII screens and simple printers, troff for the C/A/T phototypesetter.
Even in the groff family of tools you'll find a gnroff utility that
emulates the old nroff behaviour.
Practically speaking, ".ie n" allows a test whether we are heading for
an interactively viewed manpage on a simple ASCII screen (typically
through the use of the man utility) or for something else (by generating
PostScript, for example).
Andreas.