%sccs.include.proprietary.roff%

@(#)tt00 8.2 (Berkeley) 05/20/94

.EH 'USD:22-%''A TROFF Tutorial' .OH 'A TROFF Tutorial''USD:22-%' .RP
.TM 76-1273-7 39199 39199-11
A TROFF Tutorial .AU "MH 2C-518" 6021 Brian W. Kernighan (updated for 4.3BSD by Mark Seiden) .AI AT&T Bell Laboratories Murray Hill, New Jersey Typesetting
Text formatting
NROFF
.AB

troff is a text-formatting program for typesetting on the X operating system. This device is capable of producing high quality text; this paper is an example of troff output.

The phototypesetter itself normally runs with four fonts, containing roman, italic and bold letters (as on this page), a full greek alphabet, and a substantial number of special characters and mathematical symbols. Characters can be printed in a range of sizes, and placed anywhere on the page.

troff allows the user full control over fonts, sizes, and character positions, as well as the usual features of a formatter _ right-margin justification, automatic hyphenation, page titling and numbering, and so on. It also provides macros, arithmetic variables and operations, and conditional testing, for complicated formatting tasks.

This document is an introduction to the most basic use of troff . It presents just enough information to enable the user to do simple formatting tasks like making viewgraphs, and to make incremental changes to existing packages of troff commands. In most respects, the C UNIX formatter nroff and a more recent version .ul (device-independent troff) are identical to the version described here, so this document also serves as a tutorial for them as well. .AE .nr LL 6.5i .nr LT 6.5i .CS 13 1 14 0 0 5
.nr PS 9 .nr VS 11