<?breakb>
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 440. 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 441. 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 442. 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 443. 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
<?breakb 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 centering
|
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.
0
|
Do not effect immediately
|
1
|
Effect immediately
|
|
Additional Information
PTC ALD provides several options for the placement of paragraphs, accessible from the > dialog box under Current paragraph and Before next paragraph. Values are stored in the lump attribute.
Bottom breaks will usually be actioned at the end of the current paragraph. The exceptions to this are the soft breaks, b15 ,b16 and b17, which are effective at the end of the current line.
|
If there are no printable characters following a soft break implemented via a <?breakb> command at the end of a line, the <?breakb> command will be actioned at the end of the following line.
|
Related Links