Macro Language Reference > PIs > Maths > <?tptxpenr>
  
<?tptxpenr>
Description
Specifies a penalty value for relations in Maths, to be taken into account when analyzing an equation for splitting. By default the value PTC ALD sets for relations is 500, making it quite likely that PTC ALD will hyphenate an equation at a relation since the 'unsplittable' value for a penalty is 10000.
 
This command will not function unless the general allow splits option has been activated via <?tptxsplit>.
Syntax
<?tptxpenr penalty_value:n?>
<?tptxpenr>
[no parameter]
Invoke the Maths - hyphenation - relation penalty dialog box.
penalty_value
The penalty value: a number less than or equal to 10000.
Default value: 500.
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