PAUSE
ENCORE5
ENCORE
BOX
Line Filling and Adjusting Requests
GO
When you use the .nf (no fill) request, each line in the
output will appear exactly as it does in your input file.
Input File with .nf
--------------------
.nf
abc
def ghi
jklmno pqrs
tuvw xyz
ABC
DEFG
H
I
JKLMN OP QRST U
VW XYZ
Input File with .nf: nroff Output
-------------------- ---------------------
.nf | abc |
abc | def ghi |
def ghi | jklmno pqrs |
jklmno pqrs | tuvw xyz |
tuvw xyz | ABC |
ABC | DEFG |
DEFG | H |
H | I |
I | JKLMN OP QRST U |
JKLMN OP QRST U | VW XYZ |
VW XYZ ---------------------
Assume that you have set a line length of 15 characters with .ll 15.
-----------------------
| |
| |----- 15 ------| |
| |
| |
| |
| |
| |
| |
When you use the .fi (fill in) request, the nroff program will fill
in words on a line up to the 15 character limit.
-----------------------
| |
| |----- 15 ------| |
| abc |
| |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def |
| |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| |
| |
| |
| |
| |
If the next word will not fit within the limit . . .
-----------------------
| |
| |----- 15 ------| |
| abc def ghi jklmno |
| |
| |
| |
| |
| |
If the next word will not fit within the limit,
it will be placed on the following line . . .
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno |
| |
| |
| |
| |
If the next word will not fit within the limit,
it will be placed on the next line, and the current line
will be "padded" with extra spaces between words.
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno pqrs |
| tuvw xyz ABC |
| DEFG H I JKLMN |
| OP QRST UV WXYZ |
| |
Input File with .fi
------------------
.fi
abc
def ghi
jklmno pqrs
tuvw xyz
ABC
DEFG
H
I
JKLMN OP QRST U
VW XYZ
Input File with .fi nroff Output
------------------ ---------------------
.fi | abc def ghi |
abc | jklmno pqrs |
def ghi | tuvw xyz ABC |
jklmno pqrs | DEFG H I JKLMN |
tuvw xyz | OP QRST UV WXYZ |
ABC | |
DEFG | |
H | |
I | |
JKLMN OP QRST U | |
VW XYZ ---------------------
When you use the .na (no adjust) request, the nroff program
will fill in words on a line up to the 15 character limit.
-----------------------
| |
| |----- 15 ------| |
| abc |
| |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def |
| |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| |
| |
| |
| |
| |
If the next word will not fit within the limit . . .
-----------------------
| |
| |----- 15 ------| |
| abc def ghi jklmno |
| |
| |
| |
| |
| |
If the next word will not fit within the limit,
it will be placed on the following line . . .
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno |
| |
| |
| |
| |
If the next word will not fit within the limit,
it will be placed on the next line.
The current line will be NOT BE PADDED with extra spaces
between words, providing a "ragged-right" margin.
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno |
| |
| |
| |
| |
-----------------------
| |
| |----- 15 ------| |
| abc def ghi |
| jklmno pqrs |
| tuvw xyz ABC |
| DEFG H I JKLMN |
| OP QRST UV WXYZ |
| |
Input File with .na
------------------
.na
abc
def ghi
jklmno pqrs
tuvw xyz
ABC
DEFG
H
I
JKLMN OP QRST U
VW XYZ
Input File with .na nroff Output
------------------ ---------------------
.fi | abc def ghi |
abc | jklmno pqrs |
def ghi | tuvw xyz ABC |
jklmno pqrs | DEFG H I JKLMN |
tuvw xyz | OP QRST UV WXYZ |
ABC | |
DEFG | |
H | |
I | |
JKLMN OP QRST U | |
VW XYZ ---------------------
The .ad request will cause lines to be adjusted again.
(This is the default, that is, the same as using .fi.)
Input File with .ad nroff Output
------------------ ---------------------
.fi | abc def ghi |
abc | jklmno pqrs |
def ghi | tuvw xyz ABC |
jklmno pqrs | DEFG H I JKLMN |
tuvw xyz | OP QRST UV WXYZ |
ABC | |
DEFG | |
H | |
I | |
JKLMN OP QRST U | |
VW XYZ ---------------------