DocBook table column widths dilemma

Questions about XML that are not covered by the other forums should go here.
strummer
Posts: 3
Joined: Mon Jan 23, 2012 11:37 pm

DocBook table column widths dilemma

Post by strummer »

I finally figured out how to stop the PDF output from DocBook from using fixed column widths for tables, using the following XML code:

<tgroup cols="2" align="left">
<colspec colnum="1" colname="Option" colwidth="1*"/>
<colspec colnum="2" colname="Description" colwidth="4*"/>

But now I noticed that this code is screwing up tables in the HTML output. The columns now almost look fixed width there now.

Has anyone been able to solve the column width issue for DocBook PDFs while maintaining nice looking tables in the HTML output?

I really would appreciate help on this.

Thanks,

Steve.
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

Re: DocBook table column widths dilemma

Post by Radu »

Hi Steve,

Have you tried setting width="100%" on the <table>?

Maybe you should also ask this question on the Docbook Users List, you might get better feedback as there are more Docbook users registered on it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply