Macro Language Reference > PIs > Tables > <?tbhcalc>
  
<?tbhcalc>
Description
Specifies the horizontal space calculation method for tables. This only has any effect when <?tbchmode>or <?tbcolhmode> are set to non-zero values. It affects the method that APP will use to determine how to allocate space to columns, when there is enough space for all minimum measured column widths to be used, but not enough for maximum measured widths. This works in conjunction with <?tbwcalc> if the table contains cells that span columns.
Syntax
<?tbhcalc code:n wide_mode:n>
code
0
This is the default method. Priority is given to columns with a higher ratio of maximum to minimum widths. This should give the effect of keeping the number of lines within each row to a minimum.
1
Space is allocated proportionately.
2
Minimum widths only are used.
code
1
PTC ALD will measure any columns as wide as possible, instead of limiting their width to the maximum width of the frame/table, during table prescan. This has the effect of increasing the priority given to columns containing long paragraphs.
Additional Information
 
Much greater control of the final look can also be gained by setting <?tbchmode> on individual rows/cells; i.e. measuring could be restricted to the table header.
Related Links