Macro Language Reference > PIs > Maths > <?tptxpend>
  
<?tptxpend>
Description
Specifies a value for the Maths default penalty, to be taken into account when analyzing an equation for splitting. The default penalty value is 10000, which instructs PTC ALD that Maths equation cannot be split at any point or under any circumstances. Changing the default penalty value to a figure under 10000 will ensure that PTC ALD can split Maths anywhere in an equation: the actual value will define how likely it is that it will be split anywhere.
 
This command will not function unless the general allow splits option has been activated via <?tptxsplit>.
Syntax
<?tptxpend penalty value:n?>
<?tptxpend>
[no parameter]
Invoke the Maths - hyphenation - def penalty dialog box.
penalty_value
The penalty value: a number less than or equal to 10000.
Default value: 10000.
Additional Information
When analyzing where to split an inline equation, PTC ALD assigns each potential split point a penalty. The lower the value of the penalty the more likely that the split will occur at that point, unless it results in an excessive amount of shrink/stretch of a line.
Anything with a penalty of 10000 or more is unsplittable, so by default PTC ALD will only allow breaks after hyphens (penalty value 50), relations (penalty value 500) and binary operators (penalty value 700). To instruct PTC ALD to break anywhere in an equation, set the default penalty (<?tptxpend>) to less that 10000; 1000 will give reasonable results whilst still meaning that breaks will almost certainly occur at hyphens, relations or binary operators if they exist.
To override the assigned penalty at a particular point within the Maths, \penalty <num> can be used at the point at which you want the break to occur. Alternatively, one of the following may be used to define a break point:
\nobreak will prevent a break at the given point (penalty value 10000)
\goodbreak will mark the place as a good place to break (penalty value 0)
\break will mark the place as the best place to break (penalty value -10000)
Related Links