Macro Language Reference > Macros > Document Preferences > ruler
  
ruler
Description
A control keyword used with fdpref: preferences for screen ruler settings. See also tdruler.
 
Example 101. Set ruler preference options
The macro below will set the following ruler preference options:
Show tabs
Measure horizontal measurements in mm
Measure vertical measurements in mm
Set horizontal position to 0
Set vertical position to 0
fdpref ruler 1,2,2,0,0
Syntax
ruler tabs:o horiz units:n vert units:n horiz pos:rt vert pos:rt
tabs
Show tabs/flags, on or off.
horiz units
Horizontal unit of measurement for the ruler.
1
cicero
2
mm
3
cm
4
inch
5
point
6
pica
7
divot
8
dm
vert units
Vertical unit of measurement for the ruler.
1
cicero
2
mm
3
cm
4
inch
5
point
6
pica
7
didot
8
dm
horiz pos
Horizontal screen position of the ruler.
vert pos
Vertical screen position of the ruler.
Related Links