[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] formatting in troff
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] formatting in troff |
Date: |
Fri, 31 Oct 2003 14:42:34 +0000 |
Hi Divya,
> can anyone please tell me that what is wrong with the following 'nr'
> command in the example given below:
No, but have you tried adding debug lines like
.tm \n(wi
to help you see the numbers calculated or used in the calculation.
> When the try to execute the command:
> tbl tblexample | nroff -me | col | more -sv
>
> The table is misaligned and every row starts at a different position.
Does PostScript output with troff look OK? If so, that may point to the
way you're viewing nroff's output with col and more.
> the table tht i get is as follows:
>
> .FD Arg. Hyphens Adjusted Text In- Label Jus-
> dented tified
> 0 .nh .ad Yes Left
> 1 .hy .ad Yes Left
> 2 .nh .na Yes Left
> 3 .hy .na Yes Left
> 4 .nh .ad No Left
> 5 .hy .ad No Left
> 6 .nh .na No Left
> 7 .hy .na No Left
> 8 .nh .ad Yes Right
> 9 .hy .ad Yes Right
> 10 .nh .na Yes Right
> 11 .hy .na Yes Right
This similiar example works OK. I had to put spaces after, e.g., `.ll',
to stop groff warnings.
$ cat divya
.ll 80-2
.nr ps 0
.nr tm 0
.in 7
Reset footnote counter on first-level heading\&.
.nr wi (\n(.l-\n(.i)/5-(5m-1m)
.(b
.in -4
.TS
tab( );
lw(\n(wiu) lw(\n(wiu) lw(\n(wiu) lw(\n(wiu) lw(\n(wiu).
abc def ghi jkl mno
def ghi jkl mno abc
ghi jkl mno abc def
jkl mno abc def ghi
mno abc def ghi jkl
.TE
Almost the end.
.)b
The end.
$ tbl divya | nroff -me | grep .
Reset footnote counter on first-level heading.
abc def ghi jkl mno
def ghi jkl mno abc
ghi jkl mno abc def
jkl mno abc def ghi
mno abc def ghi jkl
Almost the end.
The end.
Cheers,
Ralph.