\makebox

\makebox[width][position]{text}

The \makebox command creates a box to contain the text specified. The width of the box is specified by the optional width argument. The position of the text within the box is determined by the optional position argument.

  • c - centered (default)
  • l - flushleft
  • r - flushright

See also: Spaces and Boxes, * * * \makebox(width,height)[position]{ ... }

The \makebox command for the picture environment is similar to the normal \makebox command except that you must specify a width and height in multiples of \unitlength.

The optional argument, [position], specifies the quadrant that your text appears in. You may select up to two of the following:

  • t Moves the item to the top of the rectangle
  • b Moves the item to the bottom
  • l Moves the item to the left
  • r Moves the item to the right

See also: Environments, picture,