Macro Language Reference > PIs > Text > <?breakt>
  
<?breakt>
Description
The <?breakt> and <?breakb> commands allow you to change paragraph break settings mid-paragraph, and simplify the use of conditional settings in the paragraph style. In addition, they allow multiple actions in a single setting.
 
Example 444. Start a new page with a break command
Both the <?breakb> and <?breakt> commands share the same syntax: its simplest form would be:
<?breakt b2>
 
Example 445. Set multiple break options with cumulative values
The bit or value settings are cumulative, so if you also wanted to start a new page and start column centering you could use this pair of commands.
<?breakt b2><?breakt b7>
 
Example 446. Set multiple break options with combined values
Using the example above, 'Start new page' has a value 2 and 'Start column centering' has the value 64. These are combined to give the command:
<?breakt 66>
 
Example 447. Start a new table cell immediately with <?breakb>
The <?breakb> command can take one additional parameter to indicate that the effect should occur immediately, without waiting for an end of line or paragraph:
<?breakb b10,1>
Syntax
<?breakt bit or value:n immediate:n?>
bit or value
For each paragraph, PTC ALD stores two 32-bit numbers containing the break flags. The first number relates to top-breaks (breakt), effective at the beginning of a paragraph, and the second to bottom-breaks (breakb), effective at the end of the paragraph. Each of the numbers can hold up to 32 break flags, referenced by their corresponding binary bit numbers, 1 to 32. The current bit numbers are as follows:
Description of break flag
Bit no.
Value
Top / bottom / both
Start new column
b1
1
both
Start new page
b2
2
both
Reposition to first line
b5
16
top
Reposition to last line
b6
32
top
Start column centring
b7
64
top
Flush to column bottom
b8
128
top
Start new table cell
b10
512
both
Start new table row
b11
1024
both
Finish table
b12
2048
both
Soft column break
b16
32768
bottom
Soft page break
b17
65536
bottom
immediate
Indicates if the effect should occur immediately, without waiting for an end of line or paragraph.
 
This parameter does work for breakt but, for obvious reasons, is not as effective as for breakb.
0
Do not effect immediately
1
Effect immediately
Additional Information
PTC ALD provides several options for the placement of paragraphs, accessible from the Styles > Breaks dialog box under Current paragraph and Before next paragraph. Values are stored in the lump attribute.
For top breaks to be effective for a paragraph, they must be specified before the first printable character (or any other item which causes the style-reading process to terminate, e.g. the <?> command).
Soft break can be used to start a new column or page at the end of a line without ending the current paragraph.
Soft overflow will cause the next line to be treated as if it was too big to fit at the current location. This can be used in tables to force mid-cell breaks to occur at a certain location when the <?tbovflow=2> command is being used.
Related Links