KeepTogether¶
The <keepTogether>tag tries to keep two elements together. This means when there is a page break both elements would move to the next page. This is approximate, so it sometimes will not work.
It can only be used within a <body>.
Example¶
...
<keepTogether>
<text>Headline of the following table
</text>
<table>
<tr>
<td>SOME LONG TEXT</td>
</tr>
</table>
</keepTogether>
...
Attributes¶
spaceBefore (optional)¶
Space before the group in pt, mm or cm.
spaceAfter (optional)¶
Space after the group in pt, mm or cm.
Allowed Children¶
A <keepTogether> can contain: <checkbox>, <columns>, <field>, <image>, <line>, <rect>, <space>, <table>, and <text>.