This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Problem with <entrytbl>
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Giuseppe Greco <giuseppe dot greco at fantastic dot com>
- Cc: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 17 Dec 2001 16:32:54 +0100
- Subject: Re: DOCBOOK-APPS: Problem with <entrytbl>
- References: <1008600987.32047.5.camel@wolf.fantastic.com>
Giuseppe Greco wrote:
>
> Instead of using the <entrytbl> element, I rewrote my
> document using nested tables...
>
> That works fine with HMTL backend, but I still have
> problems with print backend.
As I said previously, do not use nested tables. Flatten them to single
table with row-spans and columns-spans.
> <informaltable frame="none">
> <tgroup cols="1">
> <tbody>
> <row id="ref0001">
> <entry>
> <para>
> <informaltable frame="none">
> <tgroup cols="3">
> <colspec colnum="1" colname="c1" colwidth="1*"/>
> <colspec colnum="2" colname="c2" colwidth="2*"/>
> <colspec colnum="3" colname="c3" colwidth="7*"/>
If you want something like
----------------------------
| A | B |
----------------------------
| | D | E |
- C -------------------
| | F | G |
----------------------------
you can use 2x2 table which contains another 2x2 table in one cell. But
you can also create 3x2 table with some spans.
<table>
<tgroup cols="3">
<colspec colname="c1".../>
<colspec colname="c2".../>
<colspec colname="c3".../>
<tbody>
<row>
<entry>A</entry>
<entry namest="c2" namend="c3">B</entry>
</row>
<row>
<entry morerows="1">C</entry>
<entry>D</entry>
<entry>E</entry>
</row>
<row>
<entry>F</entry>
<entry>G</entry>
</row>
</tgroup>
</table>
It is not as natural as nested tables, but should work with current
tools.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz