Macro Language Reference > PIs > Text > <?trubyfmt>
  
<?trubyfmt>
Description
Sets the horizontal alignment of ruby annotations in relation to the text to which they apply.
 
The settings apply to ruby annotations applied both before and after base text.
 
Example 537. Examples of horizontal alignment of ruby text
In these examples, the same base text and ruby text have been defined.
1. To align the ruby text to the left:
<?ruby 1>Base text for ruby example<?rt 1><?trubyfmt 1>
ruby text<?ruby>
2. To centre the ruby text:
<?ruby 1>Base text for ruby example<?rt 1><?trubyfmt 2>
ruby text<?ruby>
3. To align the ruby text to the right:
<?ruby 1>Base text for ruby example<?rt 1><?trubyfmt 3>
ruby text<?ruby>
Syntax
<?trubyfmt format:n?>
<?trubyfmt>
[no parameter]
Invoke the Ruby - format dialog box.
format
0
Use the default setting
1
Flush annotations to the left
2
Center annotations
3
Flush annotations to the right
Additional Information
See <?ruby> for further details on ruby text.
Related Links