Boxes
All the predefined length parameters (see Predefined lengths) can be used in the arguments of the box-making commands.

\mbox{text}
The \mbox command creates a box just wide enough to hold the text created by its argument. The text is not broken into lines, so it can be used to prevent hyphenation.

\fbox and \framebox
Synopses:

\fbox{text}
\framebox[width][position]{text}

The \fbox and \framebox commands are like \mbox, except that they put a frame around the outside of the box being created.
In addition, the \framebox command allows for explicit specification of the box width with the optional width argument (a dimension), and positioning with the optional position argument.
Both commands produce a rule of thickness \fboxrule (default ‘.4pt’), and leave a space of \fboxsep (default ‘3pt’) between the rule and the contents of the box.
See \framebox (picture), for the \framebox command in the picture environment.

lrbox
\begin{lrbox}{cmd} text \end{lrbox}
This is the environment form of \sbox.
The text inside the environment is saved in the box cmd, which must have been declared with \newsavebox.

\makebox
Synopsis:

\makebox[width][position]{text}

The \makebox command creates a box just wide enough to contain the text specified. The width of the box can be overridden by the optional width argument. The position of the text within the box is determined by the optional position argument, which may take the following values:
c 	Centered (default).
l 	Flush left.
r 	Flush right.
s 	Stretch (justify) across entire width; text must contain stretchable space for this to work.
\makebox is also used within the picture environment see \makebox (picture).

\parbox
Synopsis:

\parbox[position][height][inner-pos]{width}{text}

The \parbox command produces a box whose contents are created in paragraph mode. It should be used to make a box small pieces of text, with nothing fancy inside. In particular, you shouldn’t use any paragraph-making environments inside a \parbox argument. For larger pieces of text, including ones containing a paragraph-making environment, you should use a minipage environment (see minipage).
\parbox has two mandatory arguments:
width 	the width of the parbox;
text 	the text that goes inside the parbox.
The optional position argument allows you to align either the top or bottom line in the parbox with the baseline of the surrounding text (default is top).
The optional height argument overrides the natural height of the box.
The inner-pos argument controls the placement of the text inside the box, as follows; if it is not specified, position is used.
t 	text is placed at the top of the box.
c 	text is centered in the box.
b 	text is placed at the bottom of the box.
s 	stretch vertically; the text must contain vertically stretchable space for this to work.

\raisebox
Synopsis:

\raisebox{distance}[height][depth]{text}

The \raisebox command raises or lowers text. The first mandatory argument specifies how high text is to be raised (or lowered if it is a negative amount). text itself is processed in LR mode.
The optional arguments height and depth are dimensions. If they are specified, LaTeX treats text as extending a certain distance above the baseline (height) or below (depth), ignoring its natural height and depth.

\savebox
Synopsis:

\savebox{\boxcmd}[width][pos]{text}

This command typeset text in a box just as with \makebox (see \makebox), except that instead of printing the resulting box, it saves it in the box labeled \boxcmd, which must have been declared with \newsavebox (see \newsavebox).

\sbox{\boxcmd}{text}
Synopsis:

\sbox{\boxcmd}{text}

\sbox types text in a box just as with \mbox (see \mbox) except that instead of the resulting box being included in the normal output, it is saved in the box labeled \boxcmd. \boxcmd must have been previously declared with \newsavebox (see \newsavebox).

\usebox{\boxcmd}
Synopsis:

\usebox{\boxcmd}

\usebox produces the box most recently saved in the bin \boxcmd by a \savebox command (see \savebox).