Macro Language Reference > PIs > Text > <?ri>
  
<?ri>
Description
Use of this PI enters a relative indent into text, forcing subsequent lines of text to align from its point of insertion.
 
Example 502. Align a list with a relative indent
The <?ri> command can be placed inline in the <list.entry> element:
<list.entry>1.<?ri?>This is a list and it will align on
the ri command...
Alternatively, it can be placed inside the list entry tag along with the list number generation showstring:
<?show +x(1)$x(1).&#131;><?ri?>
Syntax
<?ri first line:n? last line:n? constant:um?>
<?ri>
[no parameter]
Indicate the start of an indent.
first line
First line to which the indent should be applied, counting the first line of the paragraph as line one.
last line
Last line to which the indent should be applied.
This can be used as <?ri> using default parameters. If used more than once in a paragraph it will cancel the previous relative indent. It can also be nested, using <?ri-> or <?ri-2> to unstack the relative indents.
constant
Indent measurement for line numbers specified in parameters 1 and 2.
Additional Information
 
Use of this code after a relative space will give an unreliable result. The space must therefore be fixed via the use of characters such as &#130; , , or tabs.
Related Links