op.box Command/Output Processor: Commands

op.box

Command op.box Command/Output Processor: Commands
Applicable release versions: AP
Category Output Processor: Commands (183)
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.
Syntax .box {(pos1,pos2{(,pos3,pos4)})}
Options
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.
Purpose
Related op.xbox
op.tcl.box
op.commands
runoff.box
op