Macro Language Reference > PIs > Tables > <?tbwcalc>
  
<?tbwcalc>
Description
Specifies the algorithm to be applied when calculating table column widths.
 
The command only has an effect when the contents of cells spanning multiple columns are wider than the sum of the columns they span.
Syntax
<?tbwcalc code:n>
code
0
Default: PTC ALD attempts to increase the width of all individual columns equally, spreading the space between them.
1
Right-most: any extra space needed for the spanning cell is applied only to the rightmost column being spanned. This value adjusts the column widths, working up in the number of columns spanned.
2
None: cells spanning multiple columns have no effect on the width of columns, so if the text within them is too wide it will need to wrap.
3
Right most: any extra space needed for the spanning cell is applied to the right-most column being spanned. This setting is similar to that defined by mode 1, with the exception that the change works from the left column to the right. This should guarantee the smallest table necessary.
Additional Information
The <?tbwcalc> command must be applied in conjunction with the <?tbhcalc> and <?tbchmode> commands when cell widths are allowed to wrap. With these commands the spanned cells can be given minimum and maximum widths in the same way that normal cells can. Use of the <?tbwcalc> command will still affect the order in which spanned columns are taken into account, but now will only affect the distribution of space to columns once those columns are at least as wide as their maximum widths.
Related Links