op.box

Command/Output Processor: Commands, Releases: AP

Draws a box a specified column positions.

Syntax

.box {(pos1,pos2{(,pos3,pos4)})}

Description

draws a box at the column positions specified in the command and overwrites anything which occupies those positions.

The starting column position is calculated using the current left margin as the starting point. 'pos1' is the number of characters to offset from the left margin.

If 'pos3' and 'pos4' are specified, a second box is drawn from column 'pos3' to column 'pos4' ('pos3' must be greater than 'pos1', and 'pos4' must be greater than 'pos2:).

If no parameters are specified, the width of the box is determined by the left and right margins. The box is drawn on the margin and the text margins are reduced to fit inside the box.

If 'pos1' is entered, but 'pos2' is not, the right side of the box defaults to the right margin. If 'pos3' is entered, but 'pos4' is not, the right side of the box defaults to the right margin.

All text is 'boxed' until an '.xbox' command is encountered.

If two '.box' commands are specified without an '.xbox' command in between, the second '.box' command terminates the first box and begins a new box.

Example

.nf
.box 6,16
Note: Example A is shown on page n1.
.xbox

The words 'Example A' are enclosed in a box.

.box 6,16,43,53
Note: Example A is shown on page n2 and Example B is shown on page n3.
.xbox

The words 'Example A' and 'Example B' are enclosed in boxes.

See Also

Command Name Type Description
op.xbox Command Terminates the 'box' command.
op.tcl.box Command Executes TCL.command, surrounded by a box.
op.commands Definition Summary of OP commands.
runoff.box Command Draws a box a specified column positions.
op Introductory Text formatting

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.