Macro Language Reference > PIs > Tables > <?tbkeepn>
  
<?tbkeepn>
Description
This command specifies whether the current table should be kept together in the parent column with the item that follows it. The amount of the table that is kept with the next item depends on many factors: widow and orphan settings, row keeps, the <?tbovflow> mode of the table, etc. This command simply specifies that the very last item in the table at least should be kept with the following item.
This command can also be specified using <?tbkeep>.
This keep PI is usually applied with a priority parameter - content can be designated to be kept together as long as this doesn't result in an empty column or partial column. When this exception does occur, PTC ALD will attempt to break the page at the lowest priority it can find irrespective of the amount of resulting content that is carried over. Priority value ranges are explained below: note that APP can only ignore keep instructions with a priority below 210 if a whole column overflows, and can only ignore those below 110 if a partial column overflows, i.e. a column that has been cropped to avoid other frames, such as those containing images at the top of a column.
Priority
Usage
0
No keep applied (default value)
1 and 255
Absolute - always apply keep regardless of effect
2 - 109
Low priority, keep only if something fits in the column or partial column
110 - 209
Medium priority, keep unless this leaves a whole column empty
210 - 254
Reserved for future enhancements
Syntax
<?tbkeepn priority:n>
priority
An arbitrary figure may be applied here based on the guidelines given above.
Additional information
This is a column based keep and ensures that the item is kept within the same parent column, whether that be a frame column, a block column or a slim table column.
* 
You cannot keep from the end of a multi-column balance to the next item, because by definition they will be in different columns.