Macro Language Reference > PIs > Tables > <?tbheadc>
  
<?tbheadc>
Description
This command is used to indicate the beginning and end of the table column headers, which cause text to be repeated at the top of each individual column/cell.
* 
The command is only effective when <?tbovflow=3> and the table is working in slim/flow mode.
Multiple levels of column header are permitted, by using several <?tbheadc> commands and specifying a level from 1-5 for each. This lets you have up to 5 headers running concurrently. When the table starts a new cell, all of the relevant column headers will be inserted in order, from 1 to 5.
In addition, you can change headers midway through the table. When used in conjunction with levels, you will override the specified level and all subsequent levels will be cleared. Thus you could have a main header on level 1, and sub-headers on level 2 that change for each section of the table. If a change of header occurs, whilst inserting existing headers, then the new header(s) will be used and the old ones ignored.
You can specify which columns include the header by using flags.
You can also remove existing headers, without defining new ones, midway through the table. This can be done using num=-1, with the level either specified as normal or defined as level=-1 to clear all levels.
* 
Be careful to include the <?tbheadc=0> command to terminate the header.
Syntax
<?tbheadc num:n level:n? flags:i?>
num
-1
Remove headers from this point (specify the level(s) to which this should apply if required)
0
Indicate that header will stop at the end of the current paragraph. (Headers must be a complete number of paragraphs).
1
Mark the start of the header
2
Mark the start of the header in the normal way, but skip the header para(s) when first encountered in the text.
* 
When using <?tbheadc=2> not only is the header skipped, but any changes to show string counters made during the header are also skipped. Using <?tbnsshow=1> will still cause the header to be skipped, but counter changes will run through into the main body of the table.
level
(optional)
1..5
Level of header
flags
(optional) The column that will include the header:
f
First column
m
Middle column
l
Last column
If f, l or m are not specified, PTC ALD will default to including the header on all columns.
Additional Information
Unlike with <?tbheadr>, these headers are not a table row, or even a table cell, they appear within a cell and are line based. The header line(s) will potentially be re-inserted whenever the table starts a cell, but note that this will NOT cause the commands at the very start of the header to be re-processed; just the text.
Related Links