|
|
1.1 root 1: .\" @(#)tt00 6.1 (Berkeley) 5/23/86
2: .\"
3: .EH 'USD:25-%''A TROFF Tutorial'
4: .OH 'A TROFF Tutorial''USD:25-%'
5: .\".RP
6: .....TM 76-1273-7 39199 39199-11
7: .TL
8: A TROFF Tutorial
9: .AU "MH 2C-518" 6021
10: Brian W. Kernighan
11: (updated for 4.3BSD by Mark Seiden)
12: .AI
13: .MH
14: .OK
15: \"Typesetting
16: \"Text formatting
17: \"NROFF
18: .AB
19: .PP
20: .UL troff
21: is a text-formatting program for
22: typesetting on the
23: .UX
24: operating system.
25: This device is capable of producing high quality
26: text;
27: this paper is an example of
28: .UL troff
29: output.
30: .PP
31: The phototypesetter itself normally runs with four fonts,
32: containing roman, italic and bold letters
33: (as on this page),
34: a full greek alphabet, and a substantial number of
35: special characters and mathematical symbols.
36: Characters can be printed in a range of sizes,
37: and placed anywhere on the page.
38: .PP
39: .UL troff
40: allows the user full control over fonts,
41: sizes, and character positions,
42: as well as the usual features of a formatter _
43: right-margin justification, automatic hyphenation,
44: page titling and numbering, and so on.
45: It also provides macros, arithmetic variables and operations,
46: and conditional testing, for complicated formatting tasks.
47: .PP
48: This document is an introduction to the most basic use of
49: .UL troff .
50: It presents just enough information to enable the user
51: to do simple formatting
52: tasks like making viewgraphs,
53: and to make incremental changes to existing packages
54: of
55: .UL troff
56: commands.
57: In most respects, the
58: .UC UNIX
59: formatter
60: .UL nroff
61: and a more recent version
62: .ul
63: (device-independent
64: .UL troff)
65: are identical to
66: the version described here, so this document also serves as a tutorial for
67: them as well.
68: .AE
69: .nr LL 6.5i
70: .nr LT 6.5i
71: .CS 13 1 14 0 0 5
72: .if t .2C
73: .nr PS 9
74: .nr VS 11
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.