Troff question

James Clark jjc at jclark.UUCP
Sat Feb 9 10:01:32 AEST 1991


In article <1235 at sjfc.UUCP> ggww at sjfc.UUCP (Gerry Wildenberg) writes:

   A friend would like to do the following. He needs to be able to
   specify to troff the exact lines to be printed (i.e. no filling or at
   least no filling that borrows from the next line ) but he wants troff
   to left and right adjust (presumably by adjusting the spacing between
   words).

The most straightforward way to do this is to enable filling and put
`\p' at the end of each input line.  With a bit of work explicit `\p's
can be avoided:

.ev 1
.nh
.ll 1u
.fi
.ev
.de x
.ev 1
.it 1 y
.di a
..
.de y
.br
.di
.ev
.nf
.di b
.dt \\n(dnu-1v z
.a
.di
.ds c \\*c\\
.am b
\\*c\p
\\..
.fi
.b
.x
..
.de z
.di
.di c
..
.de e
.it
.di
.ev
..
.sp 2
.x
first line of adjusted text
second line of adjusted text
third line of adjusted text
.e
unadjusted text

James Clark
jjc at jclark.uucp
jjc%jclark at relay.eu.net



More information about the Comp.unix.questions mailing list