nroff text processing
CSC137 Louis Taber October 10, 1999
nroff and troff are used to produce the online
documentation or man pages. There are several
macro sets that can be used with nroff and troff.
Without them both are difficult to use. You can
think of the macro sets as being analogous to a
style sheet in Microsoft Word.
1. Use a text editor to produce a file for
processing with nroff, a text processing
program. This document will need to have
centered text:
Like this line.
And, underlined text like this word.
Also print out the day, month, and year:
3/26/96
Also:
Center and underline.
2. Use the spell-check program to check for
misspelled words.
3. Turn in three items: your formatted docu-
ment, your original source file, and your
spelling list from spell.
The following example is the input file for the assignment sheet:
.ad l
.ll 50
.nf
nroff text processing
.br
CSC137 Louis Taber October 10, 1999
.fi
.sp
nroff and troff are used to produce the online
documentation or man pages. There are several
macro sets that can be used with nroff and troff.
Without them both are difficult to use. You can
think of the macro sets as being analogous to a style
sheet in Microsoft Word.
.sp
.in .8i
.ti -.8i
1. Use a text editor to produce a file for
processing with nroff, a text processing program. This
document will need to have centered text:
.sp
.ce
Like this line.
.sp
And, underlined text like this
.ul 1
word.
.sp
Also print out the day, month, and year:
\n(mo/\n(dy/\n(yr
.sp
Also:
.sp
.ce 1
.ul 1
Center and underline.
.sp
.ad l
.ti -.8i
2. Use the spell-check program to check for misspelled
words.
.sp
.ti -.8i
3. Turn in three items: your formatted document, your
original source file, and your spelling list from spell.
.ex
Summary information about