SETUNITS Command
SETUNITS x-pos {IN | MM | CM | POINTS | PELS | CPI} y-pos {IN | MM | CM | POINTS | PELS | LPI} [LINESP n {IN | MM | CM | POINTS | PELS | LPI}] ;
The SETUNITS command specifies the value and the unit of measurement that are the defaults for any subsequent measurement parameter in all of the commands and subcommands. These values remain the default values until another SETUNITS command is specified. The SETUNITS command should be specified as the first command in a page definition. If neither this command nor a measurement parameter is specified, the defaults identified within the following description are used.
- SETUNITS
- Specifies the value and the unit of measurement that are the defaults for any subsequent
measurement parameter in all of the commands and subcommands.
- x-pos
- Specifies the number used for horizontal measurement. A number with up to three decimal
places is used. The default is 1. The choices are IN, MM, CM, POINTS, PELS, or LPI. The default is IN.
Note: This value affects subsequent OFFSET subcommands.
- y-pos
- Specifies the number used for vertical measurement. A number with up to three decimal
places is used. The default is 1. The choices are IN, MM, CM, POINTS, PELS, or LPI. The default is IN.
Note: This value affects subsequent OFFSET subcommands.
Using CPI and LPI Units of Measurement
The CPI and LPI units of measurement make it possible to write the following command:
SETUNITS 10 CPI 6 LPI ;This command sets the units of measurement for horizontal and vertical spacing in terms of characters per inch and lines per inch. You can then use the OFFSET subcommand specifications to increment the spacing one character or one line at a time. The distance specified by n characters over and by n lines down is defined in the governing SETUNITS command. In this example, there are 10 characters per inch (CPI) and 6 lines per inch (LPI).