8.19.13 \makebox (picture)

Synopsis:

\makebox(rec-width,rec-height){text}
\makebox(rec-width,rec-height)[position]{text}

Make a box to hold text. This command fits with the picture environment, although you can use it outside of there, because rec-width and rec-height are numbers specifying distances in terms of the \unitlength (see picture). This command is similar to the normal \makebox command (see \mbox & \makebox) except here that you must specify the width and height. This command is fragile (see \protect).

This makes a box of length 3.5 times \unitlength and height 4 times \unitlength.

\put(1,2){\makebox(3.5,4){...}}

The optional argument position specifies where in the box the text appears. The default is to center it, both horizontally and vertically. To place it somewhere else, use a string with one or two of these letters.

t

Puts text the top of the box.

b

Put text at the bottom.

l

Put text on the left.

r

Put text on the right.


Unofficial LaTeX2e reference manual