Informaltables breaking across columns

HelenM
Posts: 11
Joined: Mon Mar 25, 2013 9:52 pm

Informaltables breaking across columns

Post by HelenM »

Hi

I am having some trouble with an <informaltable> as it is breaking across a column. I want to force it to start a new column. I thought that tables automatically were kept together. I checked the fo/param.xsl file and the keep-together.within-column was set to "auto". I changed it to "always", but it doesn't seem to have done the trick.

Can anyone help?

Thanks very much.
Best wishes,
Helen
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Informaltables breaking across columns

Post by sorin_ristache »

Hi,

You have to add the attribute keep-together.within-column=always in the attribute set called table.table.properties from fo/param.xsl. You should create a Docbook customization layer that adds this property in table.table.properties:

Code: Select all

<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="border-before-width.conditionality">retain</xsl:attribute>
<xsl:attribute name="border-collapse">collapse</xsl:attribute>
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:attribute-set>

Regards,
Sorin
HelenM
Posts: 11
Joined: Mon Mar 25, 2013 9:52 pm

Re: Informaltables breaking across columns

Post by HelenM »

Again Sorin, thank you so much. You have solved the problem in 5 minutes that I have been bashing my head against a wall trying to solve for some time now! :D
Post Reply