Macro Language Reference > PIs > Tables > <?tbamode>
  
<?tbamode>
Description
This command specifies an avoid mode for frame gutters when placing table columns in relation to frame columns. This command is only relevant when used in conjunction with <?tbacross>. An example of the use of this command is a frame spanning two tied pages to achieve a table over a two page spread.
* 
This command applies to slim table columns as well as frame columns.
This command can also be specified as <?tbacrossmode>.
Syntax
<?tbamode mode:o>
mode
0
Break across frame columns as usual
1
Attempt to fit the table columns within the frame columns whilst avoiding the frame gutters. If this is infeasible PTC ALD will ignore this command and break across the frame columns in the normal manner, irrespective of the frame gutters.
 
This option will be ineffective if the table has been rotated via <?tborient>.
Additional Information
In working out where columns should be placed, PTC ALD judges based on the following criteria:
An even spread of the table columns within the frame columns.
As little squashing of measured widths as possible.
An even balance of the size of relative widths within each of the frame columns.
Obeying <?tbcolfcnew=1> wherever possible.
Trying to avoid cells that span over the frame gutters, giving higher priority to cells that span smaller numbers of table columns.
Within each of the frame columns the relevant table columns will be squashed or stretched to fit in the usual manner.
Getvars interrogate the way that PTC ALD splits the columns:
01766(T)
Total number of amode colsets
01767(T)
Number of current amode colset
21768(S)
List of columns in current amode colset - ie "(0,1,2)"
These can be used in conjunction with<?tbcoluse> to mimic mainview table behavior in alternate views.
 
Using table rules in this setting will draw into the frame gutters because the table itself spans the gutter. But a similar effect can be achieved using cell rules of a form like <?tbcrules=1(1,0.5mm,"black","[tblr]")> and then specifying <?tbrulefc=1>.
Cells spanning the whole width of the table will also span over the frame gutters, and it’s up to you to make sure the text inside them avoids the gutters, if that’s what you want.
Related Links