UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 11.8 Alphabetical Summary of CommandsChapter 12Next: 12.2 Command-line Invocation

12. Nroff and Troff

Command-line Invocation
Using the Requests: An Overview
Default Operation of Requests
Group Summary of Requests
Alphabetical Summary of Requests
Escape Sequences
Predefined Number Registers
Special Characters

This section presents the following topics:

12.1 Introduction

Nroff and troff are UNIX programs for formatting text files. Nroff is designed to format output for line printers and letter-quality printers; you can also display the output on your screen. Troff is designed for typesetting. Except for some functions that are specific to typesetting, the same commands work for both programs.

Nroff and troff are not part of standard SVR4 but are included in the compatibility packages. It is this version that is documented here. Note, however, that some UNIX distributors include a vendor-specific version of nroff/troff. Various enhanced packages are also available, such as sqtroff from SoftQuad or groff from the Free Software Foundation. These packages might include additional requests or escape sequences. For completely accurate information, we recommend that you consult the text processing manuals that come with your specific UNIX implementation.

In addition, we make references to ditroff, or device-independent troff, which is a later version of troff. For the most part, ditroff works the same as troff; where there are distinctions, the original troff is referred to as otroff.

Previous: 11.8 Alphabetical Summary of CommandsUNIX in a Nutshell: System V EditionNext: 12.2 Command-line Invocation
11.8 Alphabetical Summary of CommandsBook Index12.2 Command-line Invocation

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System