8.19.14 \framebox (picture)



This is the same as \makebox (picture) except that it puts a frame around the outside of the box that it creates. The reference point is the bottom left corner of the frame. This command fits with the picture environment, although you can use it outside of there, because lengths are numbers specifying the distance in terms of the \unitlength (see picture). This command is fragile (see \protect).

This example creates a frame 2.5 inches by 3 inches and puts the text in the center.

\framebox(2.5,3){test text}

The required arguments are that the rectangle has overall width rect-width units and height rect-height units.

The optional argument position specifies the position of text; see \makebox (picture) for the values that it can take.

The rule has thickness \fboxrule and there is a blank space \fboxsep between the frame and the contents of the box.

For this command, you must specify the width and height. If you want to just put a frame around some contents whose dimension is determined in some other way then either use \fbox (see \fbox & \framebox) or \frame (see \frame).

Unofficial LaTeX2e reference manual