[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Centering with tables
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] Centering with tables |
Date: |
Fri, 26 Jan 2001 17:14:05 +0000 |
Hi,
> 8 T{
> 9 .nf
> 10 .ce 2
> 11 \fBTable title\fR
> 12 \s-2Subtitle
> 13 .ps
> 14 .fi
tbl centres the block. You using .ce are centrering the lines before
pic gets to centre them a second time.
> Have I found a bug in tbl or do I simply not understand how it's
> supposed to work?
The .ce won't work, at least not with the normal line length. You
could try changing that to the width of 'Table Title', doing .ce, and
then changing it back.
Alternatively, put the Subtitle into a different row.
.TS
box, tab(|), center;
c s s s || c s s s
c s s s || c s c s
c s s s || c s | c s
c s s s || c s | c s
c s s s || c c | c c.
\fBTable title\fR|Arabic Letter
\^|A|B
\^|_|_
\s-2Subtitle\s0|Roman numeral|Roman numeral
\^|I|II|I|II
=
.T&
c c | c c || l | l | l | l.
Direction|Up|Position|Out|a|b|c|d
\^|\^|\^|\^|_|_|_|_
\^|\^|\^|In|a|b|c|d
\^|\^|_|_|_|_|_|_
\^|Down|Position|Out|a|b|c|d
\^|\^|\^|\^|_|_|_|_
\^|\^|\^|In|a|b|c|d
.TE
Ralph.