Macro Language Reference > PIs > Text > <?tprules>
  
<?tprules>
Description
Specifies paragraph rules as an alternative to the lump property. It is used in a similar way to the <?tbrules> command, in that there are two forms of the command, each having several parameters that must be included.
The first form of the command configures the rule by firstly specifying the number of paragraph rules required, then assigning a number to each rule and finally confirming the details for each rule. This is shown below:
<?tprules=2(1,width,"colour[;radius]","flags")(2,width,
"colour[;radius]","flags")>
The second form of the <?tprules> command uses the + symbol instead of num: use this form to add cell rules to an existing set of rule properties:
<?tprules=+(width,"colour[;radius]","flags")(width,
"colour[;radius]","flags")>
Syntax
<?tprules rulecount:n? ('(' ruleno:n? thickness:uh colour:c? sides:b? radius:um? fillcolour:c? bgcolour:c? line name:s? start segment name:s? end segment name:s? cornerstyle:b ')' )+>
rulecount
If the first version of the command is used, this parameter specifies the total number of rules that are going to be defined in this command.
ruleno
If the first version of the command is used, this parameter specifies this particular rule's number, i.e. if it were the first in the list this would be 1 e.g.<?tprules=2(1,...)(2,...)> shows you wish to define the first rule out of a set of 2.
thickness
The width of the rule and valid measurement unit, e.g. 5pt or 5mm
colour
Color of the rule: can be any color name or type that is valid in PTC ALD, e.g. 50%, red or PANTONE_E_202-4_CVP (if loaded from a color book). Must be enclosed in double quotes.
sides
The sides of the object that should contain the rule. Must be enclosed in double quotes.
radius
The size of the corner rules.
fillcolour
Color of the fill within the rule definition: can be any color name or type that is valid in PTC ALD, e.g. 50%, red or PANTONE_E_202-4_CVP (if loaded from a color book). Must be enclosed in double quotes.
bgcolour
Color of the rule background: can be any color name or type that is valid in PTC ALD, e.g. 50%, red or PANTONE_E_202-4_CVP (if loaded from a color book). Must be enclosed in double quotes.
line name
The name of a particular user defined line style, created via the tlctrl macro. Must be enclosed in double quotes.
start segment name
The name of a particular user defined line segment to act as the end character for the line. Line segments are created via the tlsctrl macro. Must be enclosed in double quotes.
end segment name
The name of a particular user defined line segment to act as the start character for the line. Line segments are created via the tlsctrl macro.
cornerstyle
The type of corner to be applied to the rule.
Additional Information
Additional paragraph rules options allow the application of rules based on user-defined line styles and patterns. For further information about user defined line styles, please refer to the macros tlctrl, tlpctrl and tlsctrl
Related Links