Magic-8.3 Command Reference

#

## ruler

Create ruler markings inside the box with indicated text.

### Usage:

> ruler [text [orient]]

> > where orient is either vertical, horizontal, or auto (the default), and where text is any string. If the string contains whitespace, it must be quoted.

### Summary:

> The ruler command generates a "ruler", a set of lines indicating a dimension. It is used to annotate layouts with the indicated text. If no orientation is given, then automatic orientation it used, in which the presented dimension (the line or lines with arrowheads) is whichever box dimension (width or height) is longer. The ruler may be removed with the unmeasure command. The measure command is a specific type of ruler where the text is set to the presented box dimension.

### Implementation Notes:

> ruler is implemented as a Tcl procedure defined in the "tools" script. It generates a set of elements (lines and text) with the element add command.

### See Also:

> measure
> unmeasure

Return to command index

Last updated: March 7, 2020 at 1:06pm