[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Landscape table being moved to next page
The problem is that the fo:block-container that provides the rotated reference orientation for a landscape table is getting a width of 100%. FOP interprets that as the whole page height, and so bumps the table to the next page. Since your table sets explicit widths for all columns, the template named "table.width" should have computed the table's width and set the width of the block container to that. However, there was a bug in that computation, which I have now fixed in source (so the next snapshot should work). In the meantime, you can add a dbfo table-width processing instruction to that table to provide the correct width info, which would be the sum of the explicit column widths. Then the block-container will fit without forcing a page break. Here is an example of the PI: http://www.sagehill.net/docbookxsl/Tables.html#TableWidth Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Antti Karanta" <antti.karanta@napa.fi> To: <docbook-apps@lists.oasis-open.org> Sent: Thursday, June 12, 2008 5:22 AM Subject: [docbook-apps] Landscape table being moved to next page Hi! With the docbook xml at the end of this post, when rendering pdf the landscape table is being rendered on the page following the text even though it seems it would fit just fine on the same page. Environment: docbook-xsl 1.73.2, saxon 6, java 1.5.0_15, fop 0.95 Relevant parameters: use.extensions=1 fop1.extensions=1 tablecolumns.extension=1 Is this a feature or a bug? Is there something I can do to keep the table on the same page? -Antti- <chapter> <title>A sample chapter</title> <sect1> <title>Turned list example</title> <para>One can also turn a table landscape so that the chapter is still in portrait. </para> <informaltable orient="land" frame="none" colsep="0" rowsep="0"> <tgroup cols="7"> <?dbhtml cellspacing="0" ?> <?dbhtml cellpadding="1" ?> <colspec colname="1" align="right" colwidth="16mm"/> <colspec colname="2" align="right" colwidth="18mm"/> <colspec colname="3" align="right" colwidth="18mm"/> <colspec colname="4" align="right" colwidth="18mm"/> <colspec colname="5" align="right" colwidth="14mm"/> <colspec colname="6" align="right" colwidth="14mm"/> <colspec colname="7" align="right" colwidth="14mm"/> <thead> <row rowsep="1"> <entry namest="1" nameend="7" align="center"> </entry> </row> <row> <entry>T</entry> <entry>DISP</entry> <entry>LCB</entry> <entry>KMT</entry> <entry>CB</entry> <entry>MCT</entry> <entry>TPC</entry> </row> <row rowsep="1"> <entry>m</entry> <entry>t</entry> <entry>m</entry> <entry>m</entry> <entry> </entry> <entry>tm/cm</entry> <entry>t/cm</entry> </row> </thead> <tbody> <row> <entry>1.000</entry> <entry>809.8 </entry> <entry>42.303</entry> <entry>13.379</entry> <entry>0.7326</entry> <entry>43.0</entry> <entry>8.8</entry> </row> </tbody> </tgroup> </informaltable> </sect1> </chapter> --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]