Next: Line Layout, Previous: Character Translations, Up: GNU troff Reference [Contents][Index]
troff and nroff ModesHistorically,
nroff and
troff were two separate programs;
the former for terminal output,
the latter for typesetters.
GNU
troff merges both functions into one executable152
that sends its output to a device driver
(grotty
for terminal devices,
grops
for PostScript,
and so on)
that interprets its output.
When discussing AT&T
troff, it makes sense to talk about
nroff mode
and
troff mode
since the differences are hard-coded.
GNU
troff takes information from device and font description files
without handling requests specially if a terminal output device is used,
so such a strong distinction is unnecessary.
Usually,
a macro package can be used with any output device.
Nevertheless,
it is sometimes necessary to distinguish
terminal and non-terminal devices:
the formatter provides the conditional expressions153
‘n’
and
‘t’
to help documents format as desired for
these device classes,
which have divergent capabilities.
AT&T
nroff silently ignores requests and escape sequences
that change the type size,
for example.
GNU
troff furthermore offers requests that configure it to behave like
nroff or like
troff. This feature spares the document author the tedium
of guarding changes of type size or font family with
‘if t’
control lines or similar.
Next: Line Layout, Previous: Character Translations, Up: GNU troff Reference [Contents][Index]