This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Problem with <entrytbl>
- From: Giuseppe Greco <giuseppe dot greco at fantastic dot com>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: DocBook Apps List <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 17 Dec 2001 16:39:29 +0100
- Subject: Re: DOCBOOK-APPS: Problem with <entrytbl>
- References: <1008600987.32047.5.camel@wolf.fantastic.com><3C1E1026.E30DA5B5@kosek.cz>
OK.
Thanks again.
Giuseppe
On Mon, 2001-12-17 at 16:32, Jirka Kosek wrote:
> 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