nroff - format documents for display or line-printer
nroff [-ehiq] [-mname] [-nN] [-opagelist] [-raN] [-sN] [-Tname] [-uN] [filename...]
The nroff utility formats text in the named filename for typewriter-like devices. See also troff(1).
If no filename argument is present, nroff reads the standard input. An argument consisting of a `-' is taken to be a file name corresponding to the standard input.
The following options are supported. Options can appear in any order so long as they appear before the files.
-e
-h
-i
-q
-mname
-nN
-opagelist
-raN
-sN
-Tname
37
lp | tn300
300
300-12
300S
300S-12
382
450
450-12
832
-uN
The following operand is supported:
filename
Example 1 Formatting with a macro package
The following command formats users.guide using the -me macro package, and stopping every 4 pages:
example% nroff -s4 -me users.guide
See environ(5) for descriptions of the following environment variables that affect the execution of nroff: LC_CTYPE, LC_MESSAGES, and NLSPATH.
/usr/tmp/trtmp*
/usr/share/lib/tmac/tmac.*
/usr/share/lib/nterm/*
/usr/share/lib/nterm/README
See attributes(5) for descriptions of the following attributes:
|
checknr(1), col(1), eqn(1), man(1), tbl(1), troff(1), attributes(5), environ(5), me(5), ms(5), term(5)
/usr/tmp is currently a symbolic link to /var/tmp.
Previous documentation incorrectly described the numeric register yr as being the Last two digits of current year. yr is in actuality the number of years since 1900. To correctly obtain the last two digits of the current year through the year 2099, the definition given below of string register yy can be included in a document and subsequently used to display a two-digit year. Notice that any other available one- or two-character register name can be substituted for yy.
.\" definition of new string register yy--last two digits of year .\" use yr (# of years since 1900) if it is < 100 .ie \n(yr<100 .ds yy \n(yr .el \{ .\" else, subtract 100 from yr, store in ny .nr ny \n(yr-100 .ie \n(ny>9 \{ .\" use ny if it is two digits .ds yy \n(ny .\" remove temporary number register ny .rr ny \} .el \{.ds yy 0 .\" if ny is one digit, append it to 0 .as yy \n(ny .rr ny \} \}
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |