home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
264_01
/
nro.doc
< prev
next >
Wrap
Text File
|
1979-12-31
|
16KB
|
331 lines
NRO (1) MS-DOS Version 3.2 NRO (1)
NAME NAME
nro - text processor
SYNOPSIS SYNOPSIS
nro n n pxx v b mmfile ifile ofile nro [-n] [+n] [-pxx] [-v] [-b] [-mmfile] ifile ... [>ofile]
DESCRIPTION DESCRIPTION
___ NRO is a text processor and formatter based on the design
Software Tools provided in "Software Tools" by Kernighan and Plauger. The
________ text and commands found in the ifile(s) are processed to
generate formatted text. The output may be directed into a
_____ file or to the printer if ofile is present in the command
line; otherwise, the output will appear at the user
P console. Directing the output to the special filename, $P,
will cause the output to be sent to the printer.
_ _ The +n option causes the output to start with page n. The
_ _ -n option causes the output to stop after page n.
_ The -v option prints the version number to the console.
_ The -p option causes the output to be shifted to the right
__ po by xx spaces. This has the same effect as the .po command.
_ The -b option allows backspaces to appear in the output text
when underlining or overstriking. This has the same effect
bs as the .bs command with a non-zero argument.
_ _____ The -m option processes the file mfile for macro
definitions. Note that files processed in this way should
contain only macro definitions, no immediate output should
be generated from this file.
Commands typically are distinguished by a period in column
one of the input followed by a two character abbreviation
for the command funtion. The abbreviation may then be
followed by an optional numeric or character argument. The
numeric argument may be an absolute value such as setting
the right margin to a particular column, or the argument may
be preceded by a plus sign or a minus sign to indicate that
the parameter should be modified relative to a previous
setting. The following commands are recognized:
.bo - causes the following lines of text to appear in
boldface. The optional argument specifies the number
of lines to be typed in boldface. Boldface and
underlining are mutually exclusive features. The
appearance of a boldface command will cause any
underlining to cease.
.bp - causes succeeding text to appear at the top of a new
page. The optional argument specifies the page number
for the new page. The initial value is one and the
default value is one more than the previous page
number.
.br - causes succeeding text to start on a new line at the
-1-
NRO (1) MS-DOS Version 3.2 NRO (1)
current left margin. There is no numeric argument for
this command.
.bs - enables or disables the appearance of backspaces in
the output text. Underlining and boldface options are
implemented by inserting character - backspace -
character combinations into the output buffer. This
is fine for devices which properly recognize the
backspace character. Some printers, however, do not
recognize backspaces, so the option is provided to
overprint one line buffer with another. The first
line buffer is terminated with just a carriage return
rather than the carriage return - linefeed
combination. A zero argument or no argument to the
backspace command removes backspaces from the output.
A non-zero argument leaves them in the output. The
default is to remove backspaces.
___ .cc - changes the NRO command character to that specified by
the character argument. If no argument is provided,
the default is a period.
.ce - causes the next line of text to appear centered on the
output. The optional argument specifies if more than
one line is to be centered.
.de - causes all text and commands following to be used to
en define a macro. The definition is terminated by a .en
command. The first two characters of the argument
de following the .de command become the name of the new
command. It should be noted that upper and lower case
arguments are considered different. Thus, the
PP pp commands .PP and .pp could define two different
macros. Care should be exercised since existing
commands may be redefined.
A macro may contain up to ten arguments. In the macro
definition, the placement of arguments is designated
by the two character sequences, $0, $1, ... $9. When
the macro is invoked, each argument of the macro
command line is substituted for its corresponding
designator in the expansion. The first argument of
the macro command is substituted for the $0 in the
expansion, the second argument for the $1, and so
forth. Arguments are typically strings which do not
contain blanks or tabs. If an argument is to contain
blanks, then it should be surrounded by either single
or double quotes.
.cu - causes the next line(s) of text to be continuously
ul underlined. Unlike the underline command (see .ul)
which underlines only alphanumerics, continuous
underlining underlines all printable characters. The
optional argument specifies the number of lines of
text to underlined. Any normal underlining or
boldface commands currently in effect will be
terminated.
-2-
NRO (1) MS-DOS Version 3.2 N