[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Controlling individual line thickness in TBL
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] Controlling individual line thickness in TBL |
Date: |
Sat, 26 Jan 2002 12:00:31 +0100 (CET) |
> > In an attempt to control individual line thickness, I am invoking
> > the \D't n' escape. Unfortunately, this is not working and I am
> > getting the following error.
> > <standard input>:1492: warning: missing closing delimiter
> > <standard input>:1496: warning: numeric expression expected (got a
> > special character)
In case you had invoked groff instead of the pipe `tbl ... | troff
...', you would get these error messages:
test.tr:15: warning: numeric expression expected (got a special
character)
test.tr:16: warning: number register `3tbw4,14' not defined
test.tr:16: warning: missing closing delimiter
This already gives you a hint where the problem is: The last field is
defined to be `n', but the data is -\D'...', which is incorrectly
parsed by tbl.
> Unless you want different line sizes inside the table, that should
> fix things.
But I think this is what Russell wants to have! Here an example how
to change the thickness of horizontal lines. The `.nop' operator has
been added in version 1.17 -- tbl only handles troff commands if they
start with a dot. It's best to control the thickest lines with
`linesize', adding proper \D'...' commands surrounded by \Z'...' to
make lines thinner (the \Z compensates the motion caused by \D).
Otherwise, lines will stick out to the right.
Werner
======================================================================
.TS H
linesize(30),expand,tab(;);
| lb cb cb cb cb cb cb cb cb cb | cb | cb s s | cb |.
_
;;Orig;;;;# of;Orig;Curr;;;Prepays;Std Dev;
.T&
| cb cb cb cb cb cb cb cb cb cb | rb | cb cb cb | cb |.
Ticker;Cpn;Year;WAC;WAM;Age;Pools;Face;Face;Factor;Avg;Actual;Proj;Diff;Diff;
.nop \Z'\D't 500''\c
=
.nop \Z'\D't -1''\c
.TH
.T&
| l n n n n n n n n n | r | n n n | n |.
FNCL;5.50;2002;6.02;360;0;2;0.021;0.021;0.9996425;1m;0.0;0.0;0.0;-;
_
.TE