[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Line width per cell of table.
From: |
Meg McRoberts |
Subject: |
Re: [Groff] Line width per cell of table. |
Date: |
Thu, 12 Dec 2002 19:46:47 -0800 (PST) |
Ah, then the documentation is deficient. I don't have time
to look it up right now (will try to do it later) but you do
it with a w(x.xi) next to the l, c, r or whatever that you
use to specify the justification for the table. If you have
multiple specifier lines, you only have to do it on one. I
usually avoid doing it on a line that has s (scan across multiple
columns) because you kind of lose control.
For example, you might specify a 4-column table like this:
.TS
lBw(2i) lw(0.75i) cw(1.25i) rw(2.0i).
The first column is bold and 2 inches; second column is 0.75 inches,
the third column is centered and 1.25i, and the last column is right-
justified and 2.0 inches. You can use other units of measurement, too --
it's actually recommended but I find it easier to just use inches -- would
have to look up the other measurements -- I think it's picas. And I don't
know what the HTML output is with these measurements.
You can specify the width for just one or two columns and let the others
adjust automatically. With most *roff's I've used, when you use text blocks
(T{ <text> T} ) it tends to wrap into a fairly narrow column unless you
specify the column width.
Does this tell you what you need?
Meg
--- Doug Royer <address@hidden> wrote:
>
> I know that the 'linesize' sets the line size for an entire table.
>
> Is there a way to specify the line size for each cell? I have
> read and re-read the docs and I do not see a way.
>
> If there is not a way I was thinking of adding some code
> to allow 'l' (ell) to specify the line size for a cell.
> as in: '|l#' where '#' is used like the number value
> for 'p' ([+/-]pont). And also allow it for _ and =
>
> I need to make some of the lines wide, but not all of them.
>
> Example: make the lines around the upper left
> cell (1:1) be wide (bold) lines ('#' in the ASCII approximation
> below).
>
> Now:
>
> .TS ASCII approximation:
> expand linesize(20) tab(@); +---+---+---+
> | c | c | c | |1:1|1:2|1:3|
> | c | c | c | . +---+---+---+
> address@hidden@_ |2:1|2:2|2:3|
> 1:address@hidden:address@hidden:3 +---+---+---+
> address@hidden@_
> 2:address@hidden:2:2:3
> address@hidden@_
> .TE
>
> And be able to:
>
> .TS
> expand linesize(20) tab(@); ASCII approximation:
> |l40 c |l40 c | c | #####---+---+
> | c | c | c | #1:2#1:2|1:3|
> address@hidden@_ #####---+---+
> 1:address@hidden:address@hidden:3 |2:1|2:1|2:3|
> address@hidden@_ +---+---+---+
> 2:address@hidden:2:2:3
> address@hidden@_
> .TE
>
> --
>
> Doug Royer | http://INET-Consulting.com
> -------------------------------|-----------------------------
> address@hidden | Office: (208)612-INET
> http://Royer.com/People/Doug | Fax: (866)594-8574
> | Cell: (208)520-4044
>
> We Do Standards - You Need Standards
>
> ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com